You can send JBI exchanges from the jsr181 component.
See
http://servicemix.goopen.org/site/servicemix-jsr181.html#servicemix-jsr181-AccessingtheJBIbus
The only limitation is that you can not use DeliveryChannel.send() and you
have to use
DeliveryChannel.sendSync().
If you want to use send(), you could create a full client.
See
http://servicemix.goopen.org/site/client-api.html#ClientAPI-UsingClientFactory
On 8/11/06, Tak <[EMAIL PROTECTED]> wrote:
I would like to invoke InOnly MEP service from my jsr181 components.
According to this forum, jsr-181 component cannot call
DeliveryChannel.sunc() method.
So I am trying to make a lwcontainer proxy component that receives message
from serviceA's DeliveryChannel.sendSync(), and DeliveryChannel.send() it
to
target serviceB which expects InOnly MEP.
My quesiton is
How to configure lwcontainer component to access it from my code in jsr181
component?
I am using DeliveryChannel.sendSync() method, and my lw components never
get
called and sendSync call is blocked. It seems like it's waiting timeout.
I have tried find out the example, but only configuration wirings,
destinationService="someservice", are found.
Could someone please point me out what should I do for this?
What I did is:
I have setup my lwcontainer component in servicemix.xml as below:
<sm:serviceunit id="jbi">
<sm:activationSpec componentName="asyncjmssender"
service="ns:AsyncJmsSender"
endpoint="AsyncJmsSender">
<sm:component>
<bean class="blah.blah.AsyncJmsSender">
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:serviceunit>
and expose this lw component via servicemix-jms component as
<jms:endpoint
service="im:AsyncJmsSenderConsumerService"
endpoint="AsyncJmsSenderConsumerService"
targetService="im:AsyncJmsSender"
targetEndpoint="AsyncJmsSender"
role="consumer"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
destinationStyle="queue"
jmsProviderDestinationName="queue.asyncsender"
connectionFactory="#jmsFactory"/>
<jms:endpoint
service="im:AsyncJmsSenderProviderService"
endpoint="AsyncJmsSenderProviderService"
role="provider"
destinationStyle="queue"
jmsProviderDestinationName="queue.asyncsender"
connectionFactory="#jmsFactory"/>
--
View this message in context:
http://www.nabble.com/How-to-access-lwcontainer-component-from-jsr181-component--tf2091924.html#a5766361
Sent from the ServiceMix - User forum at Nabble.com.
--
Cheers,
Guillaume Nodet