You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by clairechanmyae <cl...@newgens.com.sg> on 2015/12/22 13:10:41 UTC
jms ibm mq
Hi,
I'm trying to send message from client to server using jms component but
I've been facing following error :
| ERROR | SpringOsgiExtenderThread-8 | ContextLoaderListener | 125 -
org.springframework.osgi.extender - 1.2.1 | Application context refresh
failed
(OsgiBundleXmlApplicationContext(bundle=com.mycom.test.TestAdapterFileToMQ,
config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'properties' defined in OSGi
resource[classpath:/META-INF/ipla/ipla-context.xml|bnd.id=559|bnd.sym=com.mycom.test.TestAdapterFileToMQ]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'camel-1': Invocation of init method failed; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class
[org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter]
for bean with name 'jmsQueueConnectionFactory' defined in URL
[bundle://559.0:0/META-INF/spring/Test_Adapter_Beans.xml]; nested exception
is java.lang.ClassNotFoundException:
org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter
not found from bundle [com.newgens.ntx.TestAdapterFileToMQ]
do i have to use jmstemplate as i'm using mqqueueconnectionfactory? or is
there any other way i can specify username and password for my mq connection
from client to server?
Thanks,
Claire
--
View this message in context: http://camel.465427.n5.nabble.com/jms-ibm-mq-tp5775352.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: jms ibm mq
Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hello
Looks like your bundle is missing "Import-Package:
org.springframework.jms.connection".
There's no WMQ specific problem here.
regards
Grzegorz Grzybek
2015-12-22 13:10 GMT+01:00 clairechanmyae <cl...@newgens.com.sg>:
> Hi,
>
> I'm trying to send message from client to server using jms component but
> I've been facing following error :
>
> | ERROR | SpringOsgiExtenderThread-8 | ContextLoaderListener | 125 -
> org.springframework.osgi.extender - 1.2.1 | Application context refresh
> failed
> (OsgiBundleXmlApplicationContext(bundle=com.mycom.test.TestAdapterFileToMQ,
> config=osgibundle:/META-INF/spring/*.xml))
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'properties' defined in OSGi
> resource[classpath:/META-INF/ipla/ipla-context.xml|bnd.id=559|bnd.sym=com.mycom.test.TestAdapterFileToMQ]:
> Initialization of bean failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'camel-1': Invocation of init method failed; nested exception is
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class
> [org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter]
> for bean with name 'jmsQueueConnectionFactory' defined in URL
> [bundle://559.0:0/META-INF/spring/Test_Adapter_Beans.xml]; nested exception
> is java.lang.ClassNotFoundException:
> org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter
> not found from bundle [com.newgens.ntx.TestAdapterFileToMQ]
>
> do i have to use jmstemplate as i'm using mqqueueconnectionfactory? or is
> there any other way i can specify username and password for my mq connection
> from client to server?
>
> Thanks,
> Claire
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/jms-ibm-mq-tp5775352.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: jms ibm mq
Posted by clairechanmyae <cl...@newgens.com.sg>.
thank u, yes i missed out that package.
--
View this message in context: http://camel.465427.n5.nabble.com/jms-ibm-mq-tp5775352p5775359.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: jms ibm mq
Posted by Grzegorz Grzybek <gr...@gmail.com>.
It's camel (jms component) that closes connections when necessary.
MQQueueConnectionFactory is the "resource factory" - it "produces"
connections to WebSphere MQ. Camel handles those resources well.
regards
Grzegorz Grzybek
2015-12-23 2:22 GMT+01:00 clairechanmyae <cl...@newgens.com.sg>:
> If i'm going to use MQQueueConnectionFactory, it will call createConnection?
> will it be too consuming system resource because my program doesn't close
> the connection after i got the connenection from client to server. is there
> a way to close the connection back?
>
> Thanks,
> Claire
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/jms-ibm-mq-tp5775352p5775371.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: jms ibm mq
Posted by clairechanmyae <cl...@newgens.com.sg>.
If i'm going to use MQQueueConnectionFactory, it will call createConnection?
will it be too consuming system resource because my program doesn't close
the connection after i got the connenection from client to server. is there
a way to close the connection back?
Thanks,
Claire
--
View this message in context: http://camel.465427.n5.nabble.com/jms-ibm-mq-tp5775352p5775371.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: jms ibm mq
Posted by Grzegorz Grzybek <gr...@gmail.com>.
Yes, everything looks fine, but looks like you're running your
application inside OSGi container (Karaf?). Please look at
META-INF/MANIFEST.MF of your bundle.
regards
Grzegorz
2015-12-22 13:14 GMT+01:00 clairechanmyae <cl...@newgens.com.sg>:
> Here's my bean xml file.
>
> <http://camel.465427.n5.nabble.com/file/n5775354/Capture.jpg>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/jms-ibm-mq-tp5775352p5775354.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: jms ibm mq
Posted by clairechanmyae <cl...@newgens.com.sg>.
Here's my bean xml file.
<http://camel.465427.n5.nabble.com/file/n5775354/Capture.jpg>
--
View this message in context: http://camel.465427.n5.nabble.com/jms-ibm-mq-tp5775352p5775354.html
Sent from the Camel - Users mailing list archive at Nabble.com.