Hi,

 

could anyone of you maybe give me an hint how to implement transport session
management?

Here is what I did so far:

 

1. set scope = "transportsession" in services.xml

2. added two empty methods (init, destroy) to my service implementation
class (don't know how to initialize correctly - if necessary at this point)

3. Initialize the client like this:

AxisConfiguration axisconf = new AxisConfiguration(); 

axisconf.setManageTransportSession(true); 

ConfigurationContext cont = new ConfigurationContext(axisconf);

MyStub stub = new MyStub(cont,"http://localhost/services/MyWS";);

 

4. Get an exception (see below) when I try to access the MessageContext:

MessageContext cxt = MessageContext.getCurrentMessageContext();

(Line 98)          SessionContext session = cxt.getSessionContext();

 

Exception:

Exception in thread "main" java.lang.NullPointerException

        at myclient.test.holeBenutzer(test.java:98)  <--see above

        at myclient.test.main(test.java:58)

 

 

Seems like the client can't access the SessionContext, but I unfortunately
don't know why. Therefore any help would be appreciated.

 

Best Regards,
Sven Schroebler

Reply via email to