[Users] How to provide JMS as a Service Assembly

abbenoit abbenoit at sopragroup.com
Wed Mar 16 10:40:17 CET 2011


Thanks for your replies.

I just managed to deploy my SA. 
My mistake was to name differently my namespaces within my SA.

I'm now facing another problem ...

I'd like to test my JMS SA by sending it a message I'd like the component to forward to my JORAM's queue.
I'm currently using the Sample Client to that purpose !

When sending the following message : 
"<jms><text>Hello World</text></jms>"

I get the following return code :
"receive an ERROR status :Can't retrieve a JMS connection linked to the following endpoint: {myns}sename ->senameEndpoint (INTERNAL):subdomain1/0/petals-bc-jms"

The complete stacktrace is the following :
petals at localhost:/> [Petals.Container.Components.petals-sample-client]-INFO 2010
-03-01 13:50:04,864 SampleClient try to send
[Petals.Container.Components.petals-bc-jms]-SEVERE 2010-03-01 13:50:04,864 Can't
 retrieve a JMS connection linked to the following endpoint: {myns}sename ->sena
meEndpoint (INTERNAL):subdomain1/0/petals-bc-jms
org.ow2.petals.component.framework.api.exception.PEtALSCDKException: Can't retri
eve a JMS connection linked to the following endpoint: {myns}sename ->senameEndp
oint (INTERNAL):subdomain1/0/petals-bc-jms
        at org.ow2.petals.bc.jms.listener.ServiceManager.sendJMSMessage(ServiceM
anager.java:86)
        at org.ow2.petals.bc.jms.listener.ServiceManager.onJBIMessage(ServiceMan
ager.java:57)
        at org.ow2.petals.bc.jms.listener.JBIListener.onJBIMessage(JBIListener.j
ava:63)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.p
rocessInOnlyAsProvider(MessageExchangeProcessor.java:437)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.p
rocessAsProvider(MessageExchangeProcessor.java:378)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.p
rocess(MessageExchangeProcessor.java:242)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.r
un(MessageExchangeProcessor.java:176)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.ow2.petals.component.framework.api.exception.PEtALSCDKException:
Failed to create JNDI Initial Context : Cannot instantiate class: fr.dyade.aaa.j
ndi2.client.NamingContextFactory
        at org.ow2.petals.bc.jms.connection.AbstractJMSConnectionFactory.setupCo
ntext(AbstractJMSConnectionFactory.java:150)
        at org.ow2.petals.bc.jms.connection.AbstractJMSConnectionFactory.makeObj
ect(AbstractJMSConnectionFactory.java:99)
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericOb
jectPool.java:974)
        at org.ow2.petals.bc.jms.listener.ServiceManager.sendJMSMessage(ServiceM
anager.java:82)
        ... 9 more
[Petals.Container.Components.petals-sample-client]-INFO 2010-03-01 13:50:04,864
Processing received message petals:uid:4A4B12760579CDA9FC3601607999480813

Any idea ? :D




-------------------- m2f --------------------

Subscribe/Unsubscribe emails notifications.

Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)

Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=30499#30499

-------------------- m2f --------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/eda6780f/attachment.htm>


More information about the Users mailing list