Thanks for your response. I am new to ESB technology.  Can I make same service 
receiver and processor of messages? In that case will service and targetService 
be same? How to tell the configuration which class/method should get the 
messages from jms queue?
Bruce Snyder <[EMAIL PROTECTED]> wrote:
  On 7/17/07, kumar k wrote:
> I want to write a class which can receive messages from my jms
> component i.e. messages put on this jms queue should be delivered to my class
> which will do processing for messages. My question is how do I tell
> xbean configuration that which class/method should receive the message for
> processing?Is it decided by service and end point?Has it to be a web
> service?If I want it to be a POJO what I need to specify for service and
> end point? Or something else is needed altogether?
>
> > endpoint="jms"
> targetService="test:MyConsumerService"
> targetEndpoint="myConsumer"
> role="consumer"
> destinationStyle="queue"
> jmsProviderDestinationName="queue/A"
> jndiConnectionFactoryName="ConnectionFactory"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
> defaultOperation="test:Echo" />

The service is the name of this service whereas the targetService
should be the name of the service to which you would like to send the
messages consumed from the queue. If you'd like to write your own POJO
to process the messages, I would suggest looking at using the
servicemix-bean component. This component allows you to use a POJO to
process JBI messages by implementing the MessageExchangeListener
interface.

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/


 
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
       
---------------------------------
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

Reply via email to