Hi,
  We need to implement message persistence and transactions in our
application.I have taken the bridge example from Servicemix 4.2 binaries and
modified below files to implement the requirement.

Bridge jms su:
----------------

Modified xbean.xml located at
apache-servicemix-4.2.0\examples\bridge\bridge-jms-su\src\main\resources.
  <jms:endpoint service="b:jms"
                endpoint="endpoint"
                role="provider" 
                destinationStyle="queue"
                jmsProviderDestinationName="bridge.output"
                connectionFactory="#connectionFactory" />


<jms:consumer service="b:jmsManuTransmitProcessor"
endpoint="endpoint"
targetService="b:httpMEF"
targetEndpoint="endpoint"
destinationName="bridge.output"
connectionFactory="#connectionFactory"
transacted="jms"
/>


Bridge HTTP SU:
----------------------

Added new http destination end point in xbean.xml located at
apache-servicemix-4.2.0\examples\bridge\bridge-http-su\src\main\resources

<http:endpoint service="b:httpMEF" endpoint="endpoint"
            role="provider" soap="false"
                                
locationURI="http://localhost:8080/jsp-examples/checkbox/mefACK.jsp"/>  

i have noticed below exception in the log file.

  
18:48:10,128 | WARN  | tenerContainer-3 | DefaultMessageListenerContainer  |
AbstractMessageListenerContainer  646 | Execution of JMS message listener
failed
javax.jms.JMSException: Error sending JBI exchange
        at
org.apache.servicemix.jms.endpoints.AbstractConsumerEndpoint.onMessage(AbstractConsumerEndpoint.java:580)
        at
org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint$1.onMessage(JmsConsumerEndpoint.java:505)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:518)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:479)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:451)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:241)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:982)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:974)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:876)
        at java.lang.Thread.run(Thread.java:595)


Please update me do i need to configure any attribute to handle the
requirement.

Regards,
Praveen Chakinala
-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/Servicemix-4-Bridge-example-with-messag-persistence-tp2847506p2847506.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to