Hi!

I'm trying to get sessions working with Axis2. I have a simple test
service (deployed as a POJO) with a login() and a count() method.
count() shall return the number of times it was called since the session
was started. login() has to be invoked before the first call to count(),
otherwise count() returns -1 (telling the client to login first).

Judging from the tutorial at
http://www.developer.com/java/web/article.php/3620661, the best way
should be to deploy my service in the "soapsession" scope. However, I
can't seem to get my service to create sessions. When I use the
"transport" scope, at least the previous service instance does not get
destroyed with every new call, but both ways, each new call creates a
new service instance. When using "soapsession", the new call first
destroys the old instance, then creates a new one and invokes it.

I have enabled session management in my service client's options, and I
am reusing the same client instance for consecutive calls, so that
should not be the problem.

Any help is appreciated.

Thanks,
Marian.

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

Reply via email to