Hi Erik,

In the properties, where you configure the connection URI / destinations,
you usually also configure the context factory, which is different for the
new JMS client. So instead of something like this:

java.naming.factory.initial=org.apache.qpid.amqp_1_0.jms.jndi.PropertiesFileInitialCo
ntextFactory
you have to use something like this:

  java.naming.factory.initial=org.apache.qpid.jms.jndi.JmsInitialContextFactory

Regards
Jakub


On Wed, Jun 3, 2015 at 3:45 PM Erik Aschenbrenner <[email protected]>
wrote:

> Dear Qpid-Users,
>
> I just tried to use the new proton based Qpid JMS 0.2.0 client.
>
> I removed the jars of the old client (Qpid JMS 0.32) and added the jars of
> the new client to my project.
>
> When I try to start my application I'm getting this exception:
> javax.naming.NoInitialContextException: Cannot instantiate class:
> org.apache.qpid.amqp_1_0.jms.jndi.PropertiesFileInitialContextFactory [Root
> exception is java.lang.ClassNotFoundException:
> org.apache.qpid.amqp_1_0.jms.jndi.PropertiesFileInitialContextFactory]
>         at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
>
> Is there something else that has to be changed in the code to get new Qpid
> JMS client working?
>
> Regards,
> Erik
>
>
>
> --
> View this message in context:
> http://qpid.2158936.n2.nabble.com/Changing-from-old-Qpid-JMS-client-to-Qpid-JMS-0-2-0-tp7625652.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to