0

I'm using Apache camel with blueprint DSL and I am trying to send messages from my standalone fuse application to webmethods queue but getting the error

Caused by: javax.naming.NoInitialContextException: Unable to find the InitialContextFactory com.webmethods.jms.naming.WmJmsNamingCtxFactory.

even though I have the required web methods jar in my class path.

I even tried exposing the following jars as bundles

jms.jar,
wm-brokerclient.jar,
wm-g11nutils.jar,
wm-jmsclient.jar,
wm-jmsnaming.jar

using the command osgi:install -s file:ProjectDir/target/jarname.jar

but there is no effect with that. where am I going wrong ? Is it possible to expose web methods jars as osgi bundle?

Augustus
  • 1,479
  • 2
  • 17
  • 31

1 Answers1

0

Please use below mentioned command for installing jars as bundle .

osgi:install -s mvn:GROUP_ID/ARTIFACT_ID/VERSION

This worked for me when deploying jars in karaf console.

  • I tried this ...But I am unble to expose the webmethods broker jars as bundkes using the above command – Augustus Aug 24 '17 at 12:18