eclipse-ee4j / eclipse-ee4j/genericmessagingra
getClientID throws an exception
- Dominant language
- Java
- Stars
- 2
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I was trying to redo the AS81 bug where webclient/servlet is unable be used
as a topic subscriber in cluster mode by replacing with GJMSRA (with
poolsize min=max=1)
[http://....../detail.jsf?cr=6311422](http://....../detail.jsf?cr=6311422)
/outbound/ConnectionHandle.java
116 public String getClientID() throws JMSException {
117 checkIfClosed();
118 if (!inACC())
119 throw new JMSException("Client ID cannot be set in
non-ACC clients");
120 return this.physicalJMSCon.getClientID();
_FIX_
I believe this should not be there... Copy+Paste syndrome...
_Exception_
Lookup ConnectionFactory = com.sun.genericra.outbound.ConnectionFactory@1da694
javax.jms.JMSException: Client ID cannot be set in non-ACC clients
javax.jms.JMSException: Client ID cannot be set in non-ACC clients
at
com.sun.genericra.outbound.ConnectionHandle.getClientID(ConnectionHandle.java:119)
at org.apache.jsp.mq.mq_jsp._jspService(mq_jsp.java:75)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336
_
Code (JSP)_
TopicSubscriber subscriber = null;
Topic topic = null;
try {
InitialContext ic = new InitialContext();
Object o = ic.lookup("jms/gjmsraTopicFactory");
out.println("Lookup ConnectionFactory = "+o);
fact = (TopicConnectionFactory) o;
conn = fact.createTopicConnection();
out.println("Connection clientid = "+ conn.getClientID()); <---
commenting this and i get my code working...
#### Environment
Operating System: All
Platform: Sun
#### Affected Versions
[current]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.