2 Replies Latest reply on Oct 30, 2009 5:14 AM by jcs_jean-claude.souvignet

    How to send message to bus in class under CX -SE  service unit ?

    jcs_jean-claude.souvignet

      hello,

       

      I use Fuse ESB 4.1.0.2.

       

      I try to send messsage to servicemix bus under web service implementation packaged in CXF-SE service unit.

       

      I try to use ServiceMixClient as explained in service mix client API but without sucsess:

       

       

      When I use ClientFactory factory = (ClientFactory) new InitialContext().lookup(ClientFactory.DEFAULT_JNDI_NAME);

      lookup failed with :

      javax.naming.NotContextException: java:comp/env/jbi/ClientFactory

       

      When i try Remote service : 

      ServiceMixClient smxClient = new RemoteServiceMixClient("tcp://localhost:61616");

      an error is send in creationInOnlyMessage()

       

       

      Does it possible to send message directly to servicemix Bus ?

       

      thanks in advence