SCA 1.6, starting multiple nodes on same port with WS binding having URIs with 
different service namesDo your composites contain components with the same 
names?

Thanks,
Raymond


From: Malisetti, Ramanjaneyulu 
Sent: Saturday, March 27, 2010 4:01 AM
To: [email protected] 
Subject: RE: SCA 1.6, starting multiple nodes on same port with WS binding 
having URIs with different service names


Nope, I tried In the following way, It is giving same error. Even I tried by 
changing SCAContribution object different for each node. No change

 

       scaNodeFactory = SCANodeFactory.newInstance(); 

       

            String contribName = "HelloWorldService" + "-contribution.xml";

            SCAContribution contrib = new SCAContribution(contribName, 
"target/classes");

 

            // create SCA Node

            node1 = scaNodeFactory.createSCANode("HelloWorldService", 
composite1,contrib);

            node1.start();

            

            node2 = scaNodeFactory.createSCANode("HelloWorldService", 
composite2,contrib);

            node2.start();

            

            node3 = scaNodeFactory.createSCANode("HelloWorldService", 
composite3,contrib);

            node3.start();

 

Regards

Raman

From: Raymond Feng [mailto:[email protected]] 
Sent: Saturday, March 27, 2010 1:49 AM
To: [email protected]
Subject: Re: SCA 1.6, starting multiple nodes on same port with WS binding 
having URIs with different service names

 

Can you use the same instance of SCANodeFactory to create the 3 nodes?

 

Thanks,

Raymond

 

From: Malisetti, Ramanjaneyulu 

Sent: Friday, March 26, 2010 12:50 AM

To: [email protected] 

Subject: SCA 1.6, starting multiple nodes on same port with WS binding having 
URIs with different service names

 

Hi,

          I have scenario where I have multiple implementations to the  a SCA 
Remotable interface, I would like to wrap each implementation as a SCA node and 
publish as a web service. I am trying in the following way..

Server side

                node1 = 
SCANodeFactory.newInstance().createSCANode("HelloWorldService", 
composite1,contrib); 

                //<binding.ws uri="http://localhost:8085/HelloWorldService1"/> 

                node1.start();

                

                node2 = 
SCANodeFactory.newInstance().createSCANode("HelloWorldService", 
composite2,contrib);

               //<binding.ws uri="http://localhost:8085/HelloWorldService2"/> 

                node2.start();

                

                node3 = 
SCANodeFactory.newInstance().createSCANode("HelloWorldService", 
composite3,contrib);

              //<binding.ws uri="http://localhost:8085/HelloWorldService3"/> 

                node3.start();

each composite refers different implementation of Remotable service.

All nodes are starting fine, but only last started node (node3) WSDL is 
available. WSDLs of remaining services are  not accessible. If I start client 
side nodes also similarly,

                node1 = 
SCANodeFactory.newInstance().createSCANode("HelloWorldService", 
composite1,contrib);

//node1 composite contains //<binding.ws 
uri="http://localhost:8085/HelloWorldService1"/>

                node1.start();

                

                node2 = 
SCANodeFactory.newInstance().createSCANode("HelloWorldService", 
composite2,contrib);

//node1 composite contains //<binding.ws 
uri="http://localhost:8085/HelloWorldService1"/>

                node2.start();

                

                node3 = 
SCANodeFactory.newInstance().createSCANode("HelloWorldService", 
composite3,contrib);

//node1 composite contains //<binding.ws 
uri="http://localhost:8085/HelloWorldService1"/>

                node3.start();

I am able invoke methods from node3, for remaining nodes it is giving 
org.apache.axis2.AxisFault: Transport error: 404 Error: /HelloWorldService2

Is this scenario supported in SCA ? if not, what is the best of handling such 
scenario?

I appreciate your help.

Regards

Raman

Reply via email to