I have one Message Driven Bean (MDB) in JBoss that is listening in a queue and badly receives something in this queue makes an invocation WSIF to other PC.  The reply to the order is in other machine (PC).  My problem is the following one:  If I make a invocation WSIF from a normal client, it work well.  But if the same invocation WSIF is in a MDB don�t send errors, but the anwser is not properly, looks like the request dont arrive to destiny.  It is possible make invocations WSIF inside of a MDB to other machine???  If you have some example of code that it could send me, i appreciate.

 

Thanks for helping me!!!

 

 

 

public void onMessage(Message msg)

{

 

String request = ((TextMessage) msg).getText();

                 

 

String wsdlLocation= "C:/JMSwsdl/NAAdaptorReq.wsdl";

           

try

{

      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();

      WSIFService service = factory.getService(wsdlLocation,

            null, null,

            "http://xml.apache.org/axis/wsif/samples/jms/ServiceAvailability",

            "NAAdaptorReqPortType");

                 

CreateOrder2Response stub = CreateOrder2Response)service.getStub(CreateOrder2Response.class);

 

            System.out.println("\tA efectuar pedido...");

 

            System.out.println(stub.createOrder2Response(res));

 

...

 

 

WSDL

 

...

<wsdl:service name="NAAdaptorReqService">

             <wsdl:port name="NAAdaptorReqPort" binding="impl:NAAdaptorReqJMSBinding">

                    <wsdljms:address destinationStyle="queue" jndiDestinationName="queue/A" jndiConnectionFactoryName="ConnectionFactory" initialContextFactory="org.jnp.interfaces.NamingContextFactory" jndiProviderURL="193.136.92.233"/>

             </wsdl:port>

       </wsdl:service>

 

193.136.92.146 IP from machine invocation

193.136.92.233  IP from computer where it is the reply.

 

 

 

 

Thanks a lot.

 

[EMAIL PROTECTED]

                 

 

Reply via email to