You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pratibhaG <pr...@in2m.com> on 2008/10/31 09:43:31 UTC

Is Message lost if destination service is not registered?

If my jms consumer is sending a message to http provider, and if it finds
that the http provider service is not registered yet, then is the message
lost?
Or is the message saved some where?

I have set transactions="jms" on jms consumer.

I don't want to lose the message.

This is the route:

from("jbi:service:http://servicemix.in2m.com/operations/errorhandler/ResolvedErrorConsumerService")
		.splitter(xpath("error/requestData/request"))
	
.to("jbi:service:http://servicemix.in2m.com/operations/errorhandler/TransformedMessageRoutingService");
				
	
from("jbi:service:http://servicemix.in2m.com/operations/errorhandler/TransformedMessageRoutingService")
		.intercept(new CustomDelegateProcessor())
	
.recipientList(header(ErrorConstants.APPLICATION_NAME).append("?mep=in-out"));

The APPLICATION_NAME is 
jbi:service:http://servicemix.in2m.com/operations/updateprofile/DirectorConsumerService

Here are the logs which explains the case

DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@183aedf dequeued
exchange: InOnly[
  id: ID:192.168.2.64-11d51db3a2c-3:0
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/errorhandler}ResolvedErrorConsumerService
  endpoint: camel192-168-2-64-11d51db3a2c-6-0
  in: <?xml version="1.0" encoding="UTF-8"?><error>
  <errorCode>4000</errorCode>
  <requestData><request>
        <updateUserProfile>
                <userName>0910user1</userName>
                <firstName>pratibhaPp</firstName>
                <lastName>ghogalePp</lastName>
                <emailAddress>pratibha.ghogale@in2m.com</emailAddress>
        </updateUserProfile>
</request></requestData>
  <message>java.net.ConnectException: Connection refused</message>
 
<service>jbi:service:http://servicemix.in2m.com/operations/updateprofile/DirectorService</service>
</error>
]
INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
updateprofile-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
updateprofile-http-consumer-su
DEBUG - CamelJbiComponent              - Received exchange: status: Active,
role: provider
DEBUG - HttpComponent                  - Initializing service unit
DEBUG - CamelJbiComponent              - Retrieved correlation id:
ID:192.168.2.64-11d51db3a2c-3:0
DEBUG - HttpComponent                  - Looking for
/home/pghogale/apache-servicemix-3.2.2/data/smx/service-assemblies/updateprofile-sa/version_1/sus/servicemix-http/updateprofile-http-consumer-su/xbean.xml:
true
DEBUG - CamelJbiEndpoint               - Received exchange: InOnly[
  id: ID:192.168.2.64-11d51db3a2c-3:0
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/errorhandler}ResolvedErrorConsumerService
  endpoint: camel192-168-2-64-11d51db3a2c-6-0
  in: <?xml version="1.0" encoding="UTF-8"?><error>
  <errorCode>4000</errorCode>
  <requestData><request>
        <updateUserProfile>
                <userName>0910user1</userName>
                <firstName>pratibhaPp</firstName>
                <lastName>ghogalePp</lastName>
                <emailAddress>pratibha.ghogale@in2m.com</emailAddress>
        </updateUserProfile>
</request></requestData>
  <message>java.net.ConnectException: Connection refused</message>
 
<service>jbi:service:http://servicemix.in2m.com/operations/updateprofile/DirectorService</service>
</error>
]
DEBUG - DeliveryChannelImpl            - SendSync
ID:192.168.2.64-11d51db3a2c-2:0 in DeliveryChannel{servicemix-camel}
DEBUG - SecuredBroker                  - send exchange with secure broker
DEBUG - SecuredBroker                  - service name
:{http://servicemix.in2m.com/operations/errorhandler}TransformedMessageRoutingService
DEBUG - SecuredBroker                  - operation name :null
DEBUG - SedaFlow                       - Called Flow send
DEBUG - DeliveryChannelImpl            - Waiting for exchange
ID:192.168.2.64-11d51db3a2c-2:0 (1d7aa64) to be answered in
DeliveryChannel{servicemix-camel} from sendSync
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@fdffb1 dequeued
exchange: InOnly[
  id: ID:192.168.2.64-11d51db3a2c-2:0
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/errorhandler}TransformedMessageRoutingService
  endpoint: camel192-168-2-64-11d51db3a2c-6-1
  in: <?xml version="1.0" encoding="UTF-8"?><request>
        <updateUserProfile>
                <userName>0910user1</userName>
                <firstName>pratibhaPp</firstName>
                <lastName>ghogalePp</lastName>
                <emailAddress>pratibha.ghogale@in2m.com</emailAddress>
        </updateUserProfile>
</request>
]
DEBUG - CamelJbiComponent              - Received exchange: status: Active,
role: provider
DEBUG - CamelJbiComponent              - Retrieved correlation id: null
DEBUG - CamelJbiEndpoint               - Received exchange: InOnly[
  id: ID:192.168.2.64-11d51db3a2c-2:0
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/errorhandler}TransformedMessageRoutingService
  endpoint: camel192-168-2-64-11d51db3a2c-6-1
  in: <?xml version="1.0" encoding="UTF-8"?><request>
        <updateUserProfile>
                <userName>0910user1</userName>
                <firstName>pratibhaPp</firstName>
                <lastName>ghogalePp</lastName>
                <emailAddress>pratibha.ghogale@in2m.com</emailAddress>
        </updateUserProfile>
</request>
]
DEBUG - DeliveryChannelImpl            - SendSync
ID:192.168.2.64-11d51db3a2c-2:1 in DeliveryChannel{servicemix-camel}
DEBUG - SecuredBroker                  - send exchange with secure broker
WARN  - DefaultBroker                  - ServiceName
({http://servicemix.in2m.com/operations/updateprofile}DirectorService)
specified for routing, but can't find it registered
WARN  - DefaultBroker                  - ServiceName
({http://servicemix.in2m.com/operations/updateprofile}DirectorService)
specified for routing, but can't find it registered
DEBUG - DeliveryChannelImpl            - Exception processing:
ID:192.168.2.64-11d51db3a2c-2:1 in DeliveryChannel{servicemix-camel}
DEBUG - DeliveryChannelImpl            - Send
ID:192.168.2.64-11d51db3a2c-2:0 in DeliveryChannel{servicemix-camel}
DEBUG - SecuredBroker                  - send exchange with secure broker
DEBUG - SedaFlow                       - Called Flow send
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1105f32 dequeued
exchange: InOnly[
  id: ID:192.168.2.64-11d51db3a2c-2:0
  status: Done
  role: consumer
  service:
{http://servicemix.in2m.com/operations/errorhandler}TransformedMessageRoutingService
  endpoint: camel192-168-2-64-11d51db3a2c-6-1
  in: <?xml version="1.0" encoding="UTF-8"?><request>
        <updateUserProfile>
                <userName>0910user1</userName>
                <firstName>pratibhaPp</firstName>
                <lastName>ghogalePp</lastName>
                <emailAddress>pratibha.ghogale@in2m.com</emailAddress>
        </updateUserProfile>
</request>
]
DEBUG - DeliveryChannelImpl            - Notifying exchange
ID:192.168.2.64-11d51db3a2c-2:0(1d7aa64) in
DeliveryChannel{servicemix-camel} from processInboundSynchronousExchange
DEBUG - DeliveryChannelImpl            - Notified:
ID:192.168.2.64-11d51db3a2c-2:0(1d7aa64) in
DeliveryChannel{servicemix-camel} from sendSync
DEBUG - DeliveryChannelImpl            - Send
ID:192.168.2.64-11d51db3a2c-3:0 in DeliveryChannel{servicemix-camel}
DEBUG - SecuredBroker                  - send exchange with secure broker
DEBUG - SedaFlow                       - Called Flow send
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1172f8f dequeued
exchange: InOnly[
  id: ID:192.168.2.64-11d51db3a2c-3:0
  status: Done
  role: consumer
  service:
{http://servicemix.in2m.com/operations/errorhandler}ResolvedErrorConsumerService
  endpoint: camel192-168-2-64-11d51db3a2c-6-0
  in: <?xml version="1.0" encoding="UTF-8"?><request>
        <updateUserProfile>
                <userName>0910user1</userName>
                <firstName>pratibhaPp</firstName>
                <lastName>ghogalePp</lastName>
                <emailAddress>pratibha.ghogale@in2m.com</emailAddress>
        </updateUserProfile>
</request>
]
DEBUG - DeliveryChannelImpl            - Notifying exchange
ID:192.168.2.64-11d51db3a2c-3:0(16cacdd) in DeliveryChannel{servicemix-jms}
from processInboundSynchronousExchange
DEBUG - DeliveryChannelImpl            - Notified:
ID:192.168.2.64-11d51db3a2c-3:0(16cacdd) in DeliveryChannel{servicemix-jms}
from sendSync

-- 
View this message in context: http://www.nabble.com/Is-Message-lost-if-destination-service-is-not-registered--tp20261892p20261892.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.