RE: [JBoss-user] Stateful Session Bean problem (newbie?)

2002-09-27 Thread Saroj Kumar

I think you need to keep that Remote reference in session so that
You get that in another JSP.

Otherwise, you will get the different SFSB.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of wonder
sonic
Sent: Friday, September 27, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Stateful Session Bean problem (newbie?)


AFAIK, a stateful session bean means, for a client, it
is the same, in the 1st point, the loginCheck.jsp
create the Object, in the 2nd point, an other JSP try
to retrieves the object... I begin to see where does
the problem comes from. But how to do what I intend
to?

It's not the same HTTP request (2 different business
methods)

half a second because the JSP is being compiled ;)

thanks for the answer :)
Wonder Sonic

 --- Stephen Coy <[EMAIL PROTECTED]> a écrit :
> How do you know that you are getting the same
> instance of the SFSB on 
> the second call?
> 
> Is the second call on the same JSP and responding to
> the same HTTP 
> request?
> If not,  how are you caching the instance reference
> between requests?
> 
> Half a second seems like a long time to be
> processing the same page.
> 
> 
> Steve Coy
> 
> On Friday, September 27, 2002, at 06:06  PM, wonder
> sonic wrote:
> 
> > Hello,
> > I've spent about 4 hours on this but I couldn't
> find
> > the problem.
> > I've got a local SFSB with one attribut : an
> Object
> > (that implements the Serializable interface).
> > I use it from a JSP (embedded JBOSS+Tomcat):
> >
> > -1- call to the SFSB => the attribut receives an
> > instance of the Object.
> > -2- call (about 500ms after) to the SFSB => the
> > attribut is now equals to null!
> >
> > The SFSB is configured to be used with XDoclet
> 1.1.2
> > with trans-type:"Required".
> > I've also a create method:
> >
> > public void ejbCreate() {}
> >
> > What should I do to make this work?
> 
> 
> 
>
---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Stateful Session Bean problem (newbie?)

2002-09-27 Thread wonder sonic

AFAIK, a stateful session bean means, for a client, it
is the same, in the 1st point, the loginCheck.jsp
create the Object, in the 2nd point, an other JSP try
to retrieves the object... I begin to see where does
the problem comes from. But how to do what I intend
to?

It's not the same HTTP request (2 different business
methods)

half a second because the JSP is being compiled ;)

thanks for the answer :)
Wonder Sonic

 --- Stephen Coy <[EMAIL PROTECTED]> a écrit :
> How do you know that you are getting the same
> instance of the SFSB on 
> the second call?
> 
> Is the second call on the same JSP and responding to
> the same HTTP 
> request?
> If not,  how are you caching the instance reference
> between requests?
> 
> Half a second seems like a long time to be
> processing the same page.
> 
> 
> Steve Coy
> 
> On Friday, September 27, 2002, at 06:06  PM, wonder
> sonic wrote:
> 
> > Hello,
> > I've spent about 4 hours on this but I couldn't
> find
> > the problem.
> > I've got a local SFSB with one attribut : an
> Object
> > (that implements the Serializable interface).
> > I use it from a JSP (embedded JBOSS+Tomcat):
> >
> > -1- call to the SFSB => the attribut receives an
> > instance of the Object.
> > -2- call (about 500ms after) to the SFSB => the
> > attribut is now equals to null!
> >
> > The SFSB is configured to be used with XDoclet
> 1.1.2
> > with trans-type:"Required".
> > I've also a create method:
> >
> > public void ejbCreate() {}
> >
> > What should I do to make this work?
> 
> 
> 
>
---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Stateful Session Bean problem (newbie?)

2002-09-27 Thread Stephen Coy

How do you know that you are getting the same instance of the SFSB on 
the second call?

Is the second call on the same JSP and responding to the same HTTP 
request?
If not,  how are you caching the instance reference between requests?

Half a second seems like a long time to be processing the same page.


Steve Coy

On Friday, September 27, 2002, at 06:06  PM, wonder sonic wrote:

> Hello,
> I've spent about 4 hours on this but I couldn't find
> the problem.
> I've got a local SFSB with one attribut : an Object
> (that implements the Serializable interface).
> I use it from a JSP (embedded JBOSS+Tomcat):
>
> -1- call to the SFSB => the attribut receives an
> instance of the Object.
> -2- call (about 500ms after) to the SFSB => the
> attribut is now equals to null!
>
> The SFSB is configured to be used with XDoclet 1.1.2
> with trans-type:"Required".
> I've also a create method:
>
> public void ejbCreate() {}
>
> What should I do to make this work?



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user