I changed RemoteServiceMixClient to include a "public JBIContainer getContainer()". This allows me to get the container and use it to call activateComponent() with a couple of ActivationSpec instances. That works perfectly. The issue I have remaining, which may be unimportant, is that on calling shutdown() I get an exception thrown and a java thread ends up hanging around.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xbean/classloader/DestroyableClassLoader What's the proper way to shutdown the remote JBI container instance? jsexton0 wrote: > > Here's a code fragment from what I working with. It seems real close, or > maybe it's complete nonsense, one or the other. It runs fine, it create > an endpoint, but no message is received by the receiver component > instance. The context here is obtained from a remote client instance... > > receiver = new ReceiverComponent(); > ServiceEndpoint receiverEndpoint = > componentContext.activateEndpoint(receiver.SERVICE, receiver.ENDPOINT); > InOnly exchange = > componentContext.getDeliveryChannel().createExchangeFactory().createInOnlyExchange(); > NormalizedMessage message = exchange.createMessage(); > > String xml = > "<s12:Envelope " + > " xmlns:s12='http://www.w3.org/2003/05/soap-envelope'>" > + > " <s12:Body>" + > " <data>Hello</data>" + > " </s12:Body>" + > "</s12:Envelope>"; > message.setContent(new StringSource(xml)); > > exchange.setInMessage(message); > exchange.setService(receiver.SERVICE); > exchange.setEndpoint(receiverEndpoint); > serviceMixClient.send(exchange); > > // The receiver shows up in this list... > ServiceEndpoint[] endPoints = > componentContext.getEndpoints(null); > > -- View this message in context: http://www.nabble.com/RemoteServiceMixClient---Example--tp17657659p17735051.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
