Thanks Jaime and David,

I think I followed the instruction in AxisJMSSample.pdf, and I'm using the
file-based jndi provider as methioned in the pdf file. Attached you can find
the bindings file in "JNDIStore" folder. It is fine, isn't it?

By the way, can I ask several questions?

1. We need implement request/response, if the message producer and consumer
locate in different VM, the temporary queue and JMSReplyTo mechnism will not
work, because the scope of temporary queue is connection, right?

2. There is no way to let a servlet receive message in an async way,
correct?

Thanks again,
Kevin




-----Original Message-----
From: Jaime Meritt [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 5:24 PM
To: [EMAIL PROTECTED]
Subject: RE: JMS sample can not run


Kevin,

It looks like the Connection Factory you are pulling out of JNDI is not
configured correctly.  Did you follow the steps in the document to setup
your connection factory in the JNDI repository?  Which JNDI
implementation are you using?

Since you are using SonicMQ, another option exists instead of JNDI.  You
can use the SonicMQVendorAdapter to automatically create your connection
factory upon startup as opposed to looking it up from the JNDI
repository.  This gives you the added benefit of zero-administration (no
JNDI setup).  You can try using this mechanism if the JNDI way doesn't
work.  To use the Sonic vendor adapter you need to set the system
property org.apache.axis.components.jms to the fully qualified classname
of the SonicMQVendorAdapter.  Instead of
jndi-connection-factory.properties, you should use
sonic-connection-factory.properties in the sample directory.  Let me
know how this works for you.

Thanks,
Jaime
Sonic Software Corporation

-----Original Message-----
From: Kevin Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 5:09 PM
To: [EMAIL PROTECTED]
Subject: JMS sample can not run

Hi,

I'm new to Axis, now I'm trying to run the JMS sample with SonicMQ.

But I got an exception like this:

C:\xml-axis-10\samples\jms>java samples.jms.JMSTest -c
jndi-connection-factory.p
roperties -d "MyQ" IBM PRGS
Nov 18, 2002 4:57:57 PM org.apache.axis.transport.jms.SimpleJMSListener
<init>
SEVERE: Exception:
java.lang.ClassCastException: javax.naming.Reference
        at
org.apache.axis.components.jms.JNDIVendorAdapter.getConnectionFactory
(JNDIVendorAdapter.java:106)
        at
org.apache.axis.components.jms.JNDIVendorAdapter.getQueueConnectionFa
ctory(JNDIVendorAdapter.java:86)
        at
org.apache.axis.transport.jms.JMSConnectorFactory.createConnector(JMS
ConnectorFactory.java:168)
        at
org.apache.axis.transport.jms.JMSConnectorFactory.createServerConnect
or(JMSConnectorFactory.java:101)
        at
org.apache.axis.transport.jms.SimpleJMSListener.<init>(SimpleJMSListe
ner.java:120)
        at samples.jms.JMSTest.main(JMSTest.java:115)
Exception in thread "main" java.lang.ClassCastException:
javax.naming.Reference
        at
org.apache.axis.components.jms.JNDIVendorAdapter.getConnectionFactory
(JNDIVendorAdapter.java:106)
        at
org.apache.axis.components.jms.JNDIVendorAdapter.getQueueConnectionFa
ctory(JNDIVendorAdapter.java:86)
        at
org.apache.axis.transport.jms.JMSConnectorFactory.createConnector(JMS
ConnectorFactory.java:168)
        at
org.apache.axis.transport.jms.JMSConnectorFactory.createServerConnect
or(JMSConnectorFactory.java:101)
        at
org.apache.axis.transport.jms.SimpleJMSListener.<init>(SimpleJMSListe
ner.java:120)
        at samples.jms.JMSTest.main(JMSTest.java:115)

Can anybody help out?

Thanks in advance.

Kevin



Attachment: .bindings
Description: Binary data

Reply via email to