eclipse-ee4j / eclipse-ee4j/genericmessagingra
Cannot set ClientID in the ACC
- Dominant language
- Java
- Stars
- 2
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
If you use the ACC and set clientID on a connection, you get this error:
WARNING: ACC003: Application threw an exception.
javax.jms.JMSException: Client ID cannot be set in non-ACC clients
at
com.sun.genericra.outbound.ConnectionHandle.setClientID(ConnectionHandle.java:139)
From checking the code, this appears to be because GenericJMSRA uses the system
property genericra.inAppClientContainer to determine whether it is running in an
ACC.
However if I use the ACC in both GF 2.1.2 and 3.0.1 this property is not set. So
perfectly legal code doesn't work.
If the user is expected to set this property themself this should be documented.
In addition, instructions are needed on how to do this with Glassfish 2.1.1 and
Glassfish 3.x (note that Glassfish 2.1.1 doesn't support the setting of system
properties on the appclient command line so it may be necessary to set VMARGS).
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[2.1a]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.