File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to find in Metro tube which servlet or web service sent request to another web service? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to find in Metro tube which servlet or web service sent request to another web service?" Watch "How to find in Metro tube which servlet or web service sent request to another web service?" New topic
Author

How to find in Metro tube which servlet or web service sent request to another web service?

Petr jcmldev
Greenhorn

Joined: Jun 22, 2012
Posts: 1
Hi Guys,

I have following question regarding use of Metro tubes:

In SOA system composed of number of Web Services deployed on multiple GlassFish servers (with Metro container); I have a tube library which is loaded on start of GlassFish and for each request message sent by any servlet or Web Service to another Web Service needs to detect address of the destination service (that is the easy bit) and which servlet or Web Service sent the request (here is the problem). This information is not contained in the packet. I would expect it should be possible to find it in the context object ClientTubelineAssemblyContext and getContainer(), however, so far I have not found out how.

Any help will be appreciated
Petr
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to find in Metro tube which servlet or web service sent request to another web service?