There can be two cases:
1) In the request-map you are using Java Engine. In this case of a Java
Event you can get the session object from a request object available to you
in the event by useing *getSession()* method on request object. Now you can
get all your required session infromation from the session object.
There are lots of examples that you can find in OFBiz for this approach.
2) In the request-map you are using Service engine, and in the service
definition you are using engine type of Java. In this case session object
is not available to you, but it can be made availabel by adding an IN
attribute to your service definition in the following way: <attribute
mode="IN" name="session" optional="true" type="
javax.servlet.http.HttpSession"/>.
Now you can get this session object in your Java Service from the
context map in the following way:
HttpSession session = (HttpSession)context.get("session");
I think this way you can access the session information.
On Sat, Mar 22, 2008 at 7:03 AM, Nattanicha Rittammanart <[EMAIL PROTECTED]>
wrote:
> Dear all,
> I need to work with session information. I knew that we can send
> session information to Java engine by using event. Anyway, I don't know
> how to do this. Who used to do this please tell me or tell me where I
> can read this is also OK. Thanks in advance.
>
> Nattanicha
>
--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__________________________________
Office : 509.855.4113
Mobile : +919425926892