Hi,
I need to call JBI endpoint from my OSGi bundle using blueprint (route to
legacy application). At first I received NPE in JbiEndpoint when deploying
bundle. After finding issue
https://issues.apache.org/jira/browse/SMXCOMP-945
<https://issues.apache.org/jira/browse/SMXCOMP-945> I installed
servicemix-camel version 2011.02.2 and it solved that problem. But now
everything works well only before SMX restart. After restart I receive NPE
in another place /JbiBinding.createJbiMessageExchange(JbiBinding.java:151)/.
The only way to fix this is to stop SMX, clean data/cache directory, start
SMX and make fresh installation of my applications. But this is very tedious
activity.
Comparing logs of fresh and not-fresh start of application I have found one
difference. When it is fresh start I see this:
/ManagementEndpointRegistry | 170 -
org.apache.servicemix.nmr.management - 1.5.0 | Registering endpoint:
org.apache.servicemix.nmr.core.InternalEndpointWrapper@9ce5306e with
properties {ENDPOINT_NAME=ID:myhost-13ab72ce48c-0:0,
javax.jbi.servicedesc.ServiceEndpoint=org.apache.servicemix.common.ExternalEndpoint@2091ad16,
jbi.external=true,
NAME={http://camel.apache.org/schema/jbi}provider:ID:myhost-13ab72ce48c-0:0,
objectClass=[Ljava.lang.String;@3bfa900e, service.id=426,
SERVICE_NAME={http://camel.apache.org/schema/jbi}provider,
UNTARGETABLE=true}/
But I cannot see anything like this for non-fresh start. Can someone advise
me?
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Can-not-call-JBI-endpoint-from-blueprint-tp5714805.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.