Hi,
I am trying to create a service end-point to a JMS queue (OpenJMS). If the
queue already exists I am getting an exception:

javax.jms.InvalidDestinationException: Mismatched destination properties for
destination with name=queue1
        at
org.exolab.jms.messagemgr.ConsumerManagerImpl.getDestination(ConsumerManager
Impl.java:772)

ConsumerManagerImpl.java:772 (OpenJMS code) throws exception because the
destination persistent types don't match. I wrote some progs to check
OpenJMS and they work fine. Then I checked the XFire src and noticed that in
JMSChannel.java:82, the destination is obtained using session.createQueue().
And then this destination is used to session.createConsumer(destination). I
have zeroed down the problem to this line and am hopefully correct.

Is there a way to avoid session.createQueue() and get the queue using a jndi
lookup and then provide it to JMSChannel / createConsumer?

(one way I guess would be to make the JMS queue non-persistent; but I don't
really want to do this unless it's the only way)

Appreciate any help.
Thanks,
Mayank

(XFire src is 1.2.6)



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to