Skip to main content

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

1 reply [Last post]
jcmldev
Offline
Joined: 2012-06-22
Points: 0

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jcmldev

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