Charles Piazza [
http://community.jboss.org/people/dyamazon] created the discussion
"Re: Incorrect web service called when multiple one-way services deployed"
To view the discussion, visit:
http://community.jboss.org/message/566732#566732
--------------------------------------------------------------
Attached are the Eclipse projects to duplicate this issue, one for the web services and
one for the client test app. If you run these you'll see output similar to below....
*
*
*Client output:*
Calling Svc 1
Svc 1 Call Complete
Calling Svc 2
Svc 2 Call Complete
Calling Svc 2
Svc 2 Call Complete
Calling Svc 2
Svc 2 Call Complete
Calling Svc 2
Svc 2 Call Complete
Calling Svc 2
Svc 2 Call Complete
**
*Server output:*
[6.0.0.20100429-M3 "Neo"] Started in 2m:26s:986ms
09:32:56,131 INFO [STDOUT] ### TestOneWayService:TestService1:runDiff starting
09:32:56,131 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff starting
09:32:56,131 INFO [STDOUT] ...do something in Svc 1 here...
09:32:56,131 INFO [STDOUT] ...do something in Svc 2 here...
09:32:56,131 INFO [STDOUT] Svc 1 :env1:sys1:srv1:subsys1:
09:32:56,131 INFO [STDOUT] Svc 2 :env2:sys2:srv2:subsys2:
09:32:56,131 INFO [STDOUT] ### TestOneWayService:TestService1:runDiff ending
09:32:56,131 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff ending
09:33:55,990 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff starting
09:33:55,990 INFO [STDOUT] ...do something in Svc 2 here...
09:33:55,990 INFO [STDOUT] Svc 2 :env2:sys2:srv2:subsys2:
09:33:55,990 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff ending
09:34:56,006 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff starting
09:34:56,006 INFO [STDOUT] ...do something in Svc 2 here...
09:34:56,006 INFO [STDOUT] Svc 2 :env2:sys2:srv2:subsys2:
09:34:56,006 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff ending
09:35:56,022 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff starting
09:35:56,022 INFO [STDOUT] ...do something in Svc 2 here...
09:35:56,022 INFO [STDOUT] Svc 2 :env2:sys2:srv2:subsys2:
09:35:56,038 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff ending
09:36:56,039 INFO [STDOUT] ### TestOneWayService:TestService1:runDiff starting
09:36:56,039 INFO [STDOUT] ...do something in Svc 1 here...
09:36:56,039 INFO [STDOUT] Svc 1 :env2:sys2:srv2:subsys2:
09:36:56,039 INFO [STDOUT] ### TestOneWayService:TestService1:runDiff ending
Note the error condition above in red....service 1 is invoked when the client called
service 2. If you run it long enough you can see the case of service 2 being invoked for
service as well, as shown below:
09:38:58,633 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff starting
09:38:58,633 INFO [STDOUT] ...do something in Svc 2 here...
09:38:58,633 INFO [STDOUT] Svc 2 :env1:sys1:srv1:subsys1:
09:38:58,633 INFO [STDOUT] ### TestOneWayService:TestService2:runDiff ending
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/566732#566732]
Start a new discussion in JBoss Web Services at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]