on 07-18-2006 12:27 PM
I have 2004s preview version installed on my machine and am trying to connect the sample program on help.sap.com
to the default created JMS queues on the server.
If from the program , i try to view the contents of the JNDI registry, for the following code
NamingEnumeration nEnum = context.list("jmsfactory/default");
while(nEnum.hasMoreElements()){
System.out.println(nEnum.nextElement().toString());
}
i get output printed as
XAQueueConnectionFactory: com.sap.jms.client.xa.XAQueueConnectionFactory
TopicConnectionFactory: com.sap.jms.client.connection.TopicConnectionFactory
QueueConnectionFactory: com.sap.jms.client.connection.QueueConnectionFactory
XATopicConnectionFactory: com.sap.jms.client.xa.XATopicConnectionFactory
<b>Note the class for QueueConnectionFactory.</b>
if tried to execute the next statement in the code which is
queueConnectionFactory =
(QueueConnectionFactory) context.lookup("jmsfactory/default/QueueConnectionFactory");
I get a ClassCastException and the reason being, the class of the object recieved as a lookup result is
<b>com.sap.engine.services.jndi.persistent.UnsatisfiedReferenceImpl</b>
What is going wrong???
Hi,
Try putting the file sapjms.jar on your classpath.
It can be found at somewhere like :
\usr\sap\<sid>\<instance id>\j2ee\cluster\server0\bin\services\jms_provider
HTH
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.