My applogy that my original email didn't point out my issue clearly.

>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().
>
DeliveryChannel.sendSync() is working fine between jsr181 components via
both servicemix-http and servicemix-jms BC.
My quesiton is how to DeliveryChannel.sendSync() from jsr181 component to
lwcontainer component, or my BC approach may not be right.

I understand lwcontainer component is SE, so I need BC to access it.
So I have tried to set up servicemix-http and servicemix-jms BCs to
lwcontainer component as I did for jsr181 component,
but it doesn't work as I reported. It looks like the exchange didn't reach
to the lwcontainer component.
There is no error, and the call is blocked until the timeout has happened.

Could you please point out what wrong with this approach?

>If you want to use send(), you could create a full client.
>See
http://servicemix.goopen.org/site/client-api.html#ClientAPI-UsingClientFactory
>
Thanks, I will try this.
Even though my goal is JBI container neutral like J2EE (no servicemix
specific code in my POJO), this could be a work around.

Thanks,
Tak

>On 8/11/06, Tak <[EMAIL PROTECTED]> wrote:
>> 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#a5780380
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to