Hi,
I need your help in the following scenario to implement.

I have a client program Client.java that want to invoke a method say 
invokeMe() of serviceA. I want to intercept the invoking messages coming to 
serviceA and do some negotiation between the client and serviceA before 
invoking method invokeMe(). For that there is a module vHandler that intercepts 
all 
messages coming to serviceA. The vHandler see the contents of the incoming 
request and search for some necessary elements in the header section of the 
incoming soap message. If the necessary elements are present in the header 
section, the vHandler allows to invoke method invokeMe(), otherwise it says not 
allowed.
So far I have achieved this but I want more than this.

I want to start a sort of negotiation between the vHandler and the Client.java, 
I mean when there is no specific elements in the header section, the vHandler 
will ask for that header and will maintain the session, and when the 
client.java send that element the vHandler will allow the invocation of the 
invokeMe() method.
May be in the mean time the Client.java can tell another service to provider 
the desired elements to the vHandler. 
Can someone kindly suggest whether Axis2 and its API's are the right solution 
(plz give me some hints too), or should I go for exploring JMS along with Axis2?

Regards,

Sardar Hussain



      

Reply via email to