users@glassfish.java.net

[gf-users] Re: Glassfish 4.0 b89 Durable Subscriptions

From: David Zhao <liang.x.zhao_at_oracle.com>
Date: Sat, 15 Nov 2014 16:06:31 +0800

Hi Chris,

Please see if the information can help.

Thanks,
David Zhao

On 11/15/14 12:58 AM, MUNDT, CHRISTOPHER J CTR USAF AFWA AFWA/SEMS RM
3250-25 wrote:
> To GF Guru's,
>
> I am running GF 4.0b89 in a cluster with 2 instances. I am trying to setup a Durable Subscription that previously worked under GF 2.1.1.
>
> In my connection factory I have the following Additional Properties set:
>
> useSharedSubscriptionInClusteredContainer true
> ClientId my-client-id
>
> Under GF 2.1.1 we used the following settings but the setter functions are not available in GF 4:
> DurableSubscriberName
> DurableSubscriptionName
> SubscriptionDurable
I am not sure where/how did you set the three properties in the old GF
2.1.1 release. But in JMS 2.0, which is implemented by GF 4, the
corresponding MDB activation properties are subscriptionDurability,
subscriptionName.
>
>
> I removed these 3 properties that don't have setters but when my app runs in GF 4, I am getting the following 2 errors:
>
>
> [2014-11-14T16:50:24.342+0000] [glassfish 4.0] [WARNING] [poolmgr.get_connection_failure] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors] [tid: _ThreadID=175 _ThreadName=cdfsiiEventJmsContainer-5] [timeMillis: 1415983824342] [levelValue: 900] [[
> RAR5117 : Failed to obtain/create connection from connection pool [ jms/CDFSIIDataNotificationDestinationFactory-Connection-Pool ]. Reason : com.sun.appserv.connectors.internal.api.PoolingException: MQRA:MC:InvalidClientIDException-[C4052]: Client ID is already in use - my-client-id user=myuser, broker=myhost:7677(65123)]]
>
>
>
> Or
>
>
>
> [2014-11-14T16:53:39.351+0000] [glassfish 4.0] [WARNING] [poolmgr.get_connection_failure] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors] [tid: _ThreadID=175 _ThreadName=cdfsiiEventJmsContainer-5] [timeMillis: 1415984019351] [levelValue: 900] [[
> RAR5117 : Failed to obtain/create connection from connection pool [ jms/CDFSIIDataNotificationDestinationFactory-Connection-Pool ]. Reason : com.sun.appserv.connectors.internal.api.PoolingException: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.]]
>
>
> Is there something different in GF 4 that I need to have to enable durable subscriptions?
Regarding to MDB, please set subscriptionDurability to Durable for
enabling it.
>
> Thanks
> Chris
>
> //SIGNED//
>
> Christopher J. Mundt, Contractor, HQ AFWA/SEMSII SEMS / NORTHROP GRUMMAN Web/App Server Administrator / Software Engineer
> (402) 232-7823
> DSN 272-7823
> christopher.mundt.ctr_at_us.af.mil
>
> J2EE AppAdmin Support Info:
> J2EE.Admin_at_us.af.mil
> Cell Phone: 402-680-2179
>
>