Bonjour St�phane,


Stephane Boisson a �crit :

> I am trying use an EJB statefull session (Valto Ejipt) from a servlet
> engine (Apache Tomcat) but this don't work for me.
> I store JNDI context, EJB home interface reference (which are also JDNI
> reference I guess) and EJB remote interface reference in the servlet
> session context.
>
> [First HTTP request]
> 1. I get a JNDI context, I store it in a servlet session variable (Ok)
>
> [Second HTTP request]
> 2. I get the JNDI context from the servlet session (OK)
> 3. I make a JNDI lookup for a statefull session EJB, I store the home
> reference in a servlet session variable (OK)
> 4. Create a instance of the statefull session EJB thanks to the Home
> interface reference an store the remote refence in a servlet session
> variable (OK)
>

Do you reallly store a reference to your session or a Handle?


> 5. Call a method of the statefull session EJB thanks to the Remote
> interface reference (OK)
>
> [Third HTTP request]
> 6. I get the remote reference from the servlet session (OK)

I think you should use a Handle to your session. It may be the 'normal' way to
'keep' an EJB session in your servlet session.

> 7. Call a method of the statefull session EJB thanks to the Remote

> ...

Benjamin

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to