Lorena,

If you already managed to send a MessageExchange to another JBI
endpoint from within your service, you could reuse the same approach
for putting the message in a JMS queue.  If you create a
<jms:provider/> endpoint, you can send an InOnly exchange to that
endpoint to put the message in the queue.

For handling the asynchronous processing inside ServiceMix, you can
start a new flow which starts with a <jms:consumer/> to receive the
message asynchronously and then send it to any other type of endpoint
in the ESB.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On 28 January 2010 15:56, Lorena A <[email protected]> wrote:
>
> Hi Freema,
>
> Thanks very much for your reply.
>
> I am new on this technology. So far this is what I have deployed on a sa:
>
> cxf-bc-su
> <cxfbc:consumer wsdl="classpath:service.wsdl"
>                      targetService="hello:HelloService"
>                      targetInterface="hello:Hello"/>
>
>
> cxf-se-su
>    <cxfse:endpoint>
>        <cxfse:pojo>
>          <bean class="org.apache.servicemix.examples.HelloImpl">
>                <property name="context" ref="context" />
>          </bean>
>        </cxfse:pojo>
>    </cxfse:endpoint>
>
> With this config, I am hosting a web service in the bus. The web service
> implementation (HelloImpl) does some processing and sends the message to
> another JBI component in the bus by using ServiceMixClient.
>
> Got it to work (after some nights of no sleep :>).
>
> Now the issue is that the client app can not wait for the reply of the web
> service...the processing of the request may take some processing time. I
> need to make it somehow async....so I thought about servicemix-jms
>
> All the examples I have found are based on a JMS Client app publishing the
> message on the queue.
>
> In my case the JMS Client is my web service impl (cxfse:endpoint)
>
> I looked on the links you sent...but they are little hard for me to
> understand...so I started google about cxf with jms transport....
>
> I am using servicemix 3.2.3...I can not use an upgraded version...so I am
> not sure if that feature is available....
>
>
> Can I do something like that using smx 3.2.3?
>
> Can you point me to a more concrete example how to achieve it?
>
> Thanks a  lot!!!!
>
> Lorena
>
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> You can use a cxf bc provider endpoint with jms transport to send
>> message to jms topic/queue. take a look at CxfBcJmsTest[1] to see how
>> to configure cxf bc provider with jms transport.
>>
>> And you can inject the proxy of cxf bc provider into your cxf se
>> endpoint, then invoke the cxf bc provider from your cxf-se just like
>> normal java invocation, take a look at the "Proxies" part of [2]
>>
>> [1]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcJmsTest.java
>> [2]http://servicemix.apache.org/servicemix-cxf-se.html
>>
>> Freeman
>> On 2010-1-28, at 下午12:49, Lorena A wrote:
>>
>>>
>>> Hello,
>>>
>>>
>>> The client will send a request via web service (the client does not
>>> want to
>>> use JMS), then the request needs to go to a jms bc
>>>
>>> How can I invoke jms bc from cfx-se?
>>>
>>> Any help will be greatly appreciate!
>>>
>>> Thanks, Lorena
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How-to-call-%28send-message%29-to-jms-bc-from-cxf-se-tp27351068p27351068.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/How-to-call-%28send-message%29-to-jms-bc-from-cxf-se-tp27351068p27357271.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to