My Oracle Support Banner

Unable To Disable Shared Subscriptions In Oracle GlassFish Server By Setting The "useSharedSubscriptionInClusteredContainer" Property To "false" When Using JMS In A GlassFish Cluster (Doc ID 1459639.1)

Last updated on FEBRUARY 03, 2023

Applies to:

Oracle GlassFish Server - Version 3.1.2 and later
Information in this document applies to any platform.


GlassFish Message Queue Version 4.5.2 is  running in a GlassFish Server 3.1.2 cluster.  MQ is running as an Embedded Cluster.

The JMS resources were created using the following commands on GlassFish Server:

> asadmin create-jms-resource --restype javax.jms.ConnectionFactory --target cluster123 --property 'useSharedSubscriptionInClusteredContainer=false' jms/milexp/topic/EHCacheReplicationTopicFactory

> asadmin create-jms-resource --restype javax.jms.Topic --target cluster123 jms/milexp/topic/EHCacheReplicationTopic

The connection factory property "useSharedSubscriptionInClusteredContainer" is set to false to disable shared subscription.
( See ).

However, the following exception is thrown in the GlassFish Server log when trying to create a JMS connection:






To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.