users@glassfish.java.net

SessionContext is null?

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Nov 2007 10:12:02 PST

hello,

i tried to get a SessionContext instance in a session bean:

[i] @Resource
  private SessionContext sessionContext;[/i]

but this sets only null, e.g.:

[i] public void charge()
  {
      System.out.println("SC: " + sessionContext);
      ...
   }[/i]

shows [i]null[/i].

what is wrong? i invoke the method from a jsp page.


thanks in advance

regards

ondrej


Sun Java System Application Server 9.1 (build b50g-beta3)
Linux
[Message sent by forum member 'ondrejj' (ondrejj)]

http://forums.java.net/jive/thread.jspa?messageID=245071