RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread David Jencks

Hi,

One problem with this is that (I think) it forces your app to rely on a
jdbc datasource persistence layer.  This is not always appropriate.  Even
if you are using a rdms for persistence, the JCA cci stuff suggests an
alternative and perhaps more db-independent access method (I haven't looked
at it much, but I think it involves using stored proc. for data access
updating and encapsulating db differences in sp syntax in the driver)

david jencks

On 2001.04.24 11:16:43 -0400 Daniel Cardin wrote:
> Anyone successfully managed using a CachedRowSet of some kind?
> 
> The way I understand it, it would be the vehicle of choice to pass data
> between the EJB and the client...
> 
> CachedRowSet crs = new CachedRowSet();
> crs.setDataSourceName("somedatasource");
> crs.setCommand("Select * from sometable");
> crs.execute();
> 
> return crs;
> 
> I'd like your thoughts/experiences with that.
> 
> Alternatively, if anyone of you uses Borland's DataExpress components,
> are TableDataSet serializable and
> transportable from EJB to client ? (This could actually prove more
> useful to me, albeit less "portable")
> 
> Cheers,
> 
> Daniel
> 
> -Message d'origine-----
> De : Guy Rouillier [mailto:[EMAIL PROTECTED]]
> Envoyé : 24 avril, 2001 11:07 
> À : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
> reference to JBoss object)
> 
> 
> From reading your text below, it sounds like you are returning a
> ResultSet
> object to the client and letting the client next() through it.  If I'm
> interpreting that properly, you should not do this.  Only the EJB on
> JBoss
> should talk to the database.  All within a single method, obtain the
> connection, execute the query, get the ResultSet, loop through the
> result
> set and do something with it, close the result set, statement and
> connection, and then return.  As to what to do with the ResultSet, you
> can
> materialize it as a set of Java objects or (as we prefer to do) and XML
> string.
> 
> - Original Message -----
> From: "René Rolander Nygaard" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 3:57 AM
> Subject: RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
> reference
> to JBoss object)
> 
> 
> > René Rolander Nygaard wrote:
> >
> > > We are getting pretty desperate regarding this question, so I
> > have to ask
> > > again!
> >
> > Dude, try rephrasing the question.  The following paragraph makes
> > no sense.
> 
> Sorry - i will try once more.
> 
> > > Through our speed-testing we are seeing more strange behaviors.
> > > It seems as JBoss looses the reference to an object if you
> speed-clicks.
> > > This can only mean that the problems occurs because the same session
> is
> > > trying to access the same object more than once.
> >
> > What is "speed-clicks"?  What does "looses the reference to an
> > object" mean?
> This was actually from my originally mail where i wrote that we
> "speed-tested" the system by clicking on a menu-item, which caused a
> reload
> in another frame on the screen.
> 
> The "looses a reference" is that we have a reference from our jsp page
> through a bean to a JBoss stateless session bean.
> We select data from a resultset, and after we cycled through all items,
> we
> try to close the connection, the statement etc. but these objects are
> null!
> We still have a reference to the JBoss stateless session bean, but we
> fear
> that it is either a different stateless bean than we started with,
> OR it has been re-initialized.
> 
> >
> >
> > > If you from a jsp page force a reload before the last page-load was
> > > finished, it seems that the reference from the jsp page through
> > to the JBoss
> > > stateless bean is lost!
> > >
> > > Can we expect that in one work-cycle we get a reference to at
> different
> > > JBoss stateless bean, and if this is the case - we cannot clean
> > up after us
> > > self.
> > >
> > > The scenario again:
> > > A jsp page gets a reference to a stateless session bean
> > > The jsp page starts traverse a resultset
> > > 
> > > The disconnect functions all fail because the objects == null!
> > > Sorry about this, but i cannot see this any other way than a
> > JBoss bug...
> >
> > Do you realise that the same JSP instance can service multiple
> req

RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread David Jencks

Hi,
I personally don't see anything wrong with this, but I am not an expert. 
Note that you have 2 separate transactions here, the first one readig the
customer data, the second rereading and updating it.  Note also that even
if you hold the reference to a SLSB remote interface between the 2 calls
you will (most likely) get 2 different instances in the container.  This is
why you can't save state data in a slsb.

Does this new example work correctly?

Thanks
David Jencks


On 2001.04.24 10:26:50 -0400 René Rolander Nygaard wrote:
> This is in fact exatly what we did. 
> This was however a test, and we just could figure out what precisly went
> wrong.
> 
> After your mail we did talk some more (here at the office) and now we got
> this simple question.
> 
> If we from our JSP call a SLSB with a findByPrimary(something), and then
> afterwards FROM JSP calls setLastName(newLastName), and the EJB ref. is
> held
> in the SLSB - can we then not be 100% it is the same EJB we just found
> earlier.
> 
> In this example, is the correct method:
> 
> customerDataHolder currCustomer = SLSB.findByPrimary (loginName)
> 
> customerDataHolder.setLastName (newLastName);
> 
> SLSB.findAndSetCustomer (customerDataHolder);
>  - and here the SLSB will make a new findByPrimary to make sure it is the
> correct customer.
>  - and afterwards call the setCustomerData method.
> 
> Please note that the bean layer is not included in this small example!
> 
> Again - thanks for your responses!
> 
>  - René Rolander Nygaard
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of David
> Jencks
> > Sent: 24. april 2001 14:42
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
> > reference to JBoss object)
> > 
> > 
> > Hi,
> > Since you don't include your code or many details it is hard for 
> > me to know
> > exactly what is happening.  You appear to be returning a ResultSet from
> a
> > SLSB.  Assuming that this result set was obtained from a db connection,
> > this is a _VERY BAD IDEA_ even if it sometimes appears to work.  
> > The result
> > sets I am familiar with depend on a connection to the database to fetch
> > more results when asked -- so they have to keep their association with
> the
> > connection, etc.  However the design philosophy of a SLSB is that any
> work
> > is done within a single method invocation.  Commit happens before you
> > return from the call. So where is the "more information" in the result
> set
> > supposed to come from (assuming snapshot or serializable transaction
> > isolation)?
> > 
> > I suggest copying the information you are interested in into a
> standalone
> > object such as a collection of data objects or an xml string.
> > 
> > If I have misunderstood your description of what you are doing I 
> > apologize.
> > 
> > David Jencks
> > 
> > 
> > On 2001.04.24 02:30:35 -0400 René Rolander Nygaard wrote:
> > > We are getting pretty desperate regarding this question, so I 
> > have to ask
> > > again!
> > > 
> > > Through our speed-testing we are seeing more strange behaviors.
> > > It seems as JBoss looses the reference to an object if you
> speed-clicks.
> > > This can only mean that the problems occurs because the same session
> is
> > > trying to access the same object more than once.
> > > 
> > > If you from a jsp page force a reload before the last page-load was
> > > finished, it seems that the reference from the jsp page through to
> the
> > > JBoss
> > > stateless bean is lost!
> > > 
> > > Can we expect that in one work-cycle we get a reference to at
> different
> > > JBoss stateless bean, and if this is the case - we cannot clean up
> after
> > > us
> > > self. 
> > > 
> > > The scenario again:
> > > A jsp page gets a reference to a stateless session bean
> > > The jsp page starts traverse a resultset
> > > 
> > > The disconnect functions all fail because the objects == null!
> > > Sorry about this, but i cannot see this any other way than a 
> > JBoss bug...
> > > 
> > > Please, please, please help us out here!!!
> > > 
> > >  - René Rolander Nygaard
> > > 
> > > 
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread Daniel Cardin

Anyone successfully managed using a CachedRowSet of some kind?

The way I understand it, it would be the vehicle of choice to pass data
between the EJB and the client...

CachedRowSet crs = new CachedRowSet();
crs.setDataSourceName("somedatasource");
crs.setCommand("Select * from sometable");
crs.execute();

return crs;

I'd like your thoughts/experiences with that.

Alternatively, if anyone of you uses Borland's DataExpress components,
are TableDataSet serializable and
transportable from EJB to client ? (This could actually prove more
useful to me, albeit less "portable")

Cheers,

Daniel

-Message d'origine-
De : Guy Rouillier [mailto:[EMAIL PROTECTED]]
Envoyé : 24 avril, 2001 11:07 
À : [EMAIL PROTECTED]
Objet : Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
reference to JBoss object)


>From reading your text below, it sounds like you are returning a
ResultSet
object to the client and letting the client next() through it.  If I'm
interpreting that properly, you should not do this.  Only the EJB on
JBoss
should talk to the database.  All within a single method, obtain the
connection, execute the query, get the ResultSet, loop through the
result
set and do something with it, close the result set, statement and
connection, and then return.  As to what to do with the ResultSet, you
can
materialize it as a set of Java objects or (as we prefer to do) and XML
string.

- Original Message -
From: "René Rolander Nygaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 3:57 AM
Subject: RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
reference
to JBoss object)


> René Rolander Nygaard wrote:
>
> > We are getting pretty desperate regarding this question, so I
> have to ask
> > again!
>
> Dude, try rephrasing the question.  The following paragraph makes
> no sense.

Sorry - i will try once more.

> > Through our speed-testing we are seeing more strange behaviors.
> > It seems as JBoss looses the reference to an object if you
speed-clicks.
> > This can only mean that the problems occurs because the same session
is
> > trying to access the same object more than once.
>
> What is "speed-clicks"?  What does "looses the reference to an
> object" mean?
This was actually from my originally mail where i wrote that we
"speed-tested" the system by clicking on a menu-item, which caused a
reload
in another frame on the screen.

The "looses a reference" is that we have a reference from our jsp page
through a bean to a JBoss stateless session bean.
We select data from a resultset, and after we cycled through all items,
we
try to close the connection, the statement etc. but these objects are
null!
We still have a reference to the JBoss stateless session bean, but we
fear
that it is either a different stateless bean than we started with,
OR it has been re-initialized.

>
>
> > If you from a jsp page force a reload before the last page-load was
> > finished, it seems that the reference from the jsp page through
> to the JBoss
> > stateless bean is lost!
> >
> > Can we expect that in one work-cycle we get a reference to at
different
> > JBoss stateless bean, and if this is the case - we cannot clean
> up after us
> > self.
> >
> > The scenario again:
> > A jsp page gets a reference to a stateless session bean
> > The jsp page starts traverse a resultset
> > 
> > The disconnect functions all fail because the objects == null!
> > Sorry about this, but i cannot see this any other way than a
> JBoss bug...
>
> Do you realise that the same JSP instance can service multiple
requests
> simultaneously.  If you are storing things in instance variables then
> the second request will overwrite them before the first completes.
This
> is basic JSP/servlet stuff.

Hmm. Yes - but here we make a  on a page object (and we also
tried
making the bean session).
Then we cycle through all data
finally we call the Close all function.
When we are running in the same jsp page, can we expect that the data
contained in one jsp page is overridden if the user click's to quickly ?
I hope this is not the case.

Thnx for the response dude! ;-)

 - René Rolander Nygaard
>
> Toby.
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread Philipp Meier

On Tue, Apr 24, 2001 at 09:57:06AM +0200, René Rolander Nygaard wrote:
> Hmm. Yes - but here we make a  on a page object (and we also tried
> making the bean session).
> Then we cycle through all data
> finally we call the Close all function.
> When we are running in the same jsp page, can we expect that the data
> contained in one jsp page is overridden if the user click's to quickly ?
> I hope this is not the case.

Have a look at <%@page isThreadSafe="false"> (see JSP-Spec.)

Regards,
-billy.


-- 
Philipp Meier  o-matic GmbH
Geschäftsführer  Pfarrer-Weiß-Weg 16-18
Tel.: +49-(0)700-66284236 89077 Ulm

 PGP signature


Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread Guy Rouillier

>From reading your text below, it sounds like you are returning a ResultSet
object to the client and letting the client next() through it.  If I'm
interpreting that properly, you should not do this.  Only the EJB on JBoss
should talk to the database.  All within a single method, obtain the
connection, execute the query, get the ResultSet, loop through the result
set and do something with it, close the result set, statement and
connection, and then return.  As to what to do with the ResultSet, you can
materialize it as a set of Java objects or (as we prefer to do) and XML
string.

- Original Message -
From: "René Rolander Nygaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 3:57 AM
Subject: RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference
to JBoss object)


> René Rolander Nygaard wrote:
>
> > We are getting pretty desperate regarding this question, so I
> have to ask
> > again!
>
> Dude, try rephrasing the question.  The following paragraph makes
> no sense.

Sorry - i will try once more.

> > Through our speed-testing we are seeing more strange behaviors.
> > It seems as JBoss looses the reference to an object if you speed-clicks.
> > This can only mean that the problems occurs because the same session is
> > trying to access the same object more than once.
>
> What is "speed-clicks"?  What does "looses the reference to an
> object" mean?
This was actually from my originally mail where i wrote that we
"speed-tested" the system by clicking on a menu-item, which caused a reload
in another frame on the screen.

The "looses a reference" is that we have a reference from our jsp page
through a bean to a JBoss stateless session bean.
We select data from a resultset, and after we cycled through all items, we
try to close the connection, the statement etc. but these objects are null!
We still have a reference to the JBoss stateless session bean, but we fear
that it is either a different stateless bean than we started with,
OR it has been re-initialized.

>
>
> > If you from a jsp page force a reload before the last page-load was
> > finished, it seems that the reference from the jsp page through
> to the JBoss
> > stateless bean is lost!
> >
> > Can we expect that in one work-cycle we get a reference to at different
> > JBoss stateless bean, and if this is the case - we cannot clean
> up after us
> > self.
> >
> > The scenario again:
> > A jsp page gets a reference to a stateless session bean
> > The jsp page starts traverse a resultset
> > 
> > The disconnect functions all fail because the objects == null!
> > Sorry about this, but i cannot see this any other way than a
> JBoss bug...
>
> Do you realise that the same JSP instance can service multiple requests
> simultaneously.  If you are storing things in instance variables then
> the second request will overwrite them before the first completes. This
> is basic JSP/servlet stuff.

Hmm. Yes - but here we make a  on a page object (and we also tried
making the bean session).
Then we cycle through all data
finally we call the Close all function.
When we are running in the same jsp page, can we expect that the data
contained in one jsp page is overridden if the user click's to quickly ?
I hope this is not the case.

Thnx for the response dude! ;-)

 - René Rolander Nygaard
>
> Toby.
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread René Rolander Nygaard

This is in fact exatly what we did. 
This was however a test, and we just could figure out what precisly went
wrong.

After your mail we did talk some more (here at the office) and now we got
this simple question.

If we from our JSP call a SLSB with a findByPrimary(something), and then
afterwards FROM JSP calls setLastName(newLastName), and the EJB ref. is held
in the SLSB - can we then not be 100% it is the same EJB we just found
earlier.

In this example, is the correct method:

customerDataHolder currCustomer = SLSB.findByPrimary (loginName)

customerDataHolder.setLastName (newLastName);

SLSB.findAndSetCustomer (customerDataHolder);
 - and here the SLSB will make a new findByPrimary to make sure it is the
correct customer.
 - and afterwards call the setCustomerData method.

Please note that the bean layer is not included in this small example!

Again - thanks for your responses!

 - René Rolander Nygaard

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
> Sent: 24. april 2001 14:42
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
> reference to JBoss object)
> 
> 
> Hi,
> Since you don't include your code or many details it is hard for 
> me to know
> exactly what is happening.  You appear to be returning a ResultSet from a
> SLSB.  Assuming that this result set was obtained from a db connection,
> this is a _VERY BAD IDEA_ even if it sometimes appears to work.  
> The result
> sets I am familiar with depend on a connection to the database to fetch
> more results when asked -- so they have to keep their association with the
> connection, etc.  However the design philosophy of a SLSB is that any work
> is done within a single method invocation.  Commit happens before you
> return from the call. So where is the "more information" in the result set
> supposed to come from (assuming snapshot or serializable transaction
> isolation)?
> 
> I suggest copying the information you are interested in into a standalone
> object such as a collection of data objects or an xml string.
> 
> If I have misunderstood your description of what you are doing I 
> apologize.
> 
> David Jencks
> 
> 
> On 2001.04.24 02:30:35 -0400 René Rolander Nygaard wrote:
> > We are getting pretty desperate regarding this question, so I 
> have to ask
> > again!
> > 
> > Through our speed-testing we are seeing more strange behaviors.
> > It seems as JBoss looses the reference to an object if you speed-clicks.
> > This can only mean that the problems occurs because the same session is
> > trying to access the same object more than once.
> > 
> > If you from a jsp page force a reload before the last page-load was
> > finished, it seems that the reference from the jsp page through to the
> > JBoss
> > stateless bean is lost!
> > 
> > Can we expect that in one work-cycle we get a reference to at different
> > JBoss stateless bean, and if this is the case - we cannot clean up after
> > us
> > self. 
> > 
> > The scenario again:
> > A jsp page gets a reference to a stateless session bean
> > The jsp page starts traverse a resultset
> > 
> > The disconnect functions all fail because the objects == null!
> > Sorry about this, but i cannot see this any other way than a 
> JBoss bug...
> > 
> > Please, please, please help us out here!!!
> > 
> >  - René Rolander Nygaard
> > 
> > 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

 winmail.dat


Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread David Jencks

Hi,
Since you don't include your code or many details it is hard for me to know
exactly what is happening.  You appear to be returning a ResultSet from a
SLSB.  Assuming that this result set was obtained from a db connection,
this is a _VERY BAD IDEA_ even if it sometimes appears to work.  The result
sets I am familiar with depend on a connection to the database to fetch
more results when asked -- so they have to keep their association with the
connection, etc.  However the design philosophy of a SLSB is that any work
is done within a single method invocation.  Commit happens before you
return from the call. So where is the "more information" in the result set
supposed to come from (assuming snapshot or serializable transaction
isolation)?

I suggest copying the information you are interested in into a standalone
object such as a collection of data objects or an xml string.

If I have misunderstood your description of what you are doing I apologize.

David Jencks


On 2001.04.24 02:30:35 -0400 René Rolander Nygaard wrote:
> We are getting pretty desperate regarding this question, so I have to ask
> again!
> 
> Through our speed-testing we are seeing more strange behaviors.
> It seems as JBoss looses the reference to an object if you speed-clicks.
> This can only mean that the problems occurs because the same session is
> trying to access the same object more than once.
> 
> If you from a jsp page force a reload before the last page-load was
> finished, it seems that the reference from the jsp page through to the
> JBoss
> stateless bean is lost!
> 
> Can we expect that in one work-cycle we get a reference to at different
> JBoss stateless bean, and if this is the case - we cannot clean up after
> us
> self. 
> 
> The scenario again:
> A jsp page gets a reference to a stateless session bean
> The jsp page starts traverse a resultset
> 
> The disconnect functions all fail because the objects == null!
> Sorry about this, but i cannot see this any other way than a JBoss bug...
> 
> Please, please, please help us out here!!!
> 
>  - René Rolander Nygaard
> 
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread Toby Allsopp

René Rolander Nygaard wrote:

>> What is "speed-clicks"?  What does "looses the reference to an 
>> object" mean?
> 
> This was actually from my originally mail where i wrote that we
> "speed-tested" the system by clicking on a menu-item, which caused a reload
> in another frame on the screen. 
> 
> The "looses a reference" is that we have a reference from our jsp page
> through a bean to a JBoss stateless session bean.
> We select data from a resultset, and after we cycled through all items, we
> try to close the connection, the statement etc. but these objects are null!
> We still have a reference to the JBoss stateless session bean, but we fear
> that it is either a different stateless bean than we started with, 
> OR it has been re-initialized.

Ok, this makes sense.  It sounds a lot like you're being bitten by 
scoping your references incorrectly, so you'll need to prove that you're 
doing things correctly.


>> Do you realise that the same JSP instance can service multiple requests 
>> simultaneously.  If you are storing things in instance variables then 
>> the second request will overwrite them before the first completes. This 
>> is basic JSP/servlet stuff.
> 
> 
> Hmm. Yes - but here we make a  on a page object (and we also tried
> making the bean session).
> Then we cycle through all data
> finally we call the Close all function.
> When we are running in the same jsp page, can we expect that the data
> contained in one jsp page is overridden if the user click's to quickly ?
> I hope this is not the case.

Please post the smallest example you can that reproduces the problem. 
I'm not familiar with the usage of , but I'm sure someone will 
take a look at your example and comment.


> Thnx for the response dude! ;-)

Do not, like, mock me!

For sure,
Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread René Rolander Nygaard

> René Rolander Nygaard wrote:
> 
> > We are getting pretty desperate regarding this question, so I 
> have to ask
> > again!
> 
> Dude, try rephrasing the question.  The following paragraph makes 
> no sense.

Sorry - i will try once more.

> > Through our speed-testing we are seeing more strange behaviors.
> > It seems as JBoss looses the reference to an object if you speed-clicks.
> > This can only mean that the problems occurs because the same session is
> > trying to access the same object more than once.
> 
> What is "speed-clicks"?  What does "looses the reference to an 
> object" mean?
This was actually from my originally mail where i wrote that we
"speed-tested" the system by clicking on a menu-item, which caused a reload
in another frame on the screen. 

The "looses a reference" is that we have a reference from our jsp page
through a bean to a JBoss stateless session bean.
We select data from a resultset, and after we cycled through all items, we
try to close the connection, the statement etc. but these objects are null!
We still have a reference to the JBoss stateless session bean, but we fear
that it is either a different stateless bean than we started with, 
OR it has been re-initialized.

> 
> 
> > If you from a jsp page force a reload before the last page-load was
> > finished, it seems that the reference from the jsp page through 
> to the JBoss
> > stateless bean is lost!
> > 
> > Can we expect that in one work-cycle we get a reference to at different
> > JBoss stateless bean, and if this is the case - we cannot clean 
> up after us
> > self. 
> > 
> > The scenario again:
> > A jsp page gets a reference to a stateless session bean
> > The jsp page starts traverse a resultset
> > 
> > The disconnect functions all fail because the objects == null!
> > Sorry about this, but i cannot see this any other way than a 
> JBoss bug...
> 
> Do you realise that the same JSP instance can service multiple requests 
> simultaneously.  If you are storing things in instance variables then 
> the second request will overwrite them before the first completes. This 
> is basic JSP/servlet stuff.

Hmm. Yes - but here we make a  on a page object (and we also tried
making the bean session).
Then we cycle through all data
finally we call the Close all function.
When we are running in the same jsp page, can we expect that the data
contained in one jsp page is overridden if the user click's to quickly ?
I hope this is not the case.

Thnx for the response dude! ;-)

 - René Rolander Nygaard
> 
> Toby.
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

 winmail.dat


Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread Toby Allsopp

René Rolander Nygaard wrote:

> We are getting pretty desperate regarding this question, so I have to ask
> again!

Dude, try rephrasing the question.  The following paragraph makes no sense.


> Through our speed-testing we are seeing more strange behaviors.
> It seems as JBoss looses the reference to an object if you speed-clicks.
> This can only mean that the problems occurs because the same session is
> trying to access the same object more than once.

What is "speed-clicks"?  What does "looses the reference to an object" mean?


> If you from a jsp page force a reload before the last page-load was
> finished, it seems that the reference from the jsp page through to the JBoss
> stateless bean is lost!
> 
> Can we expect that in one work-cycle we get a reference to at different
> JBoss stateless bean, and if this is the case - we cannot clean up after us
> self. 
> 
> The scenario again:
> A jsp page gets a reference to a stateless session bean
> The jsp page starts traverse a resultset
> 
> The disconnect functions all fail because the objects == null!
> Sorry about this, but i cannot see this any other way than a JBoss bug...

Do you realise that the same JSP instance can service multiple requests 
simultaneously.  If you are storing things in instance variables then 
the second request will overwrite them before the first completes. This 
is basic JSP/servlet stuff.

Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user