Hi ,

I have some issue and i hope you can help me . Here is the issue :

I have developped a web service named TestAgent which have to start some threads during its exceution.
What is the session scope that you have deploy your service ?
Depending on that the behavior would changed.
In my client I have to start differents instances of the web services in a loop.
What do you mean by starting a Web service in the client side , is it a service or service client ?
The instances of the web services are different by there configuration files but they have the same implementation. So instead of creating different instances of the web service TA , i decide to use the same Stub TestAgentTestAgentSOAP12Port_httpStub taStub in a for loop. So every instance of the web service is associated to one session .
I did not understand what do you mean here , can you please explain bit more about this.
But after the execution of the loop for i only have one active session because the previous on is destroyed. I would like to avoid Axis2 to destroyed the previous session before instanciating another web services. So can i do that maintain the previuos session ? // The instance of the web service TestAgentTestAgentSOAP12Port_httpStub taStub = new TestAgentTestAgentSOAP12Port_httpStub(URL + "TestAgent"); // Set the timeout for 60 minutes (for large files)
            Options options = taStub._getServiceClient().getOptions();
            options.setTimeOutInMilliSeconds(600000);
TestAgentUtils taUtils = new TestAgentUtils(); for (int i = 3; i >= 0; i--) {
                // get the appropriate test agent config based on its role
                int testAgentRole = i + 1;
String testAgentConfigPath = taUtils.getConfigPath(testAgentRole);

                // get the oid
String oid = taUtils.getOid(testAgentRole, testAgentConfigPath);

                // Start the test agent thru our WS with the conf
                Start swConf = new Start();
swConf.setXmlConfig(Utils.getContents(new File(testAgentConfigPath)));

// at the start taStub references a new instance of the web service TA and so a new session is created and destroyed the previous one. taStub.start(swConf); // do something

          }
Please tell me if you understand what i mean. and please tell me how to maintain the sessions and avoid every new instanciation to destroy the sessions of the previous instances of the web services. I use Axis2 version 1.2 and transportsession. Thanks in advance
One thing you could do is , first deploy the service in the server side in one of the available session. And then from the client side you can manage the session by setting an option called "option.setManageSession(true)". You can find a number of articles and tutorial which you can use as references , just ask Google.

Thank you!
Deepal
-) Harold



------------------------------------------------------------------------
Envoyé avec Yahoo! Mail <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html>.
Une boite mail plus intelligente.

------------------------------------------------------------------------
Envoyé avec Yahoo! Mail <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html>. Une boite mail plus intelligente.


--
Thanks,
Deepal
................................................................
http://blogs.deepal.org/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to