[jboss-user] [EJB 3.0] - Re: persistence-context-ref always yields same object instan

2009-08-19 Thread jaikiran
anonymous wrote : If there is anything else you'd like me to test, please let 
me know.

The information you provided should be enough to reproduce this locally. I'll 
look into this and read a bit more in the spec before updating this thread 
later this week.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4250428#4250428

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250428
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: persistence-context-ref always yields same object instan

2009-08-18 Thread henk53
jaikiran wrote : anonymous wrote : Whether I do the JNDI lookup multiple 
times right after each other in the same method, or test what the JNDI lookup 
returns in multiple simultaneous requests, the result is always an object 
instance with the same ID (e.g. 
org.jboss.jpa.tx.transactionscopedentitymana...@d78f1b). 
  | 
  | Hmm, i would have expected it to return different instances in the multiple 
simultaneous requests usecase.
  | 

Me too. What I more precisely did was the following simple test:

1) Put the simple above shown code in a ServletFilter I happened to have on my 
screen that requested the EM out of JNDI.
2) Added a break-point to it, requested a page being filtered, inspected the 
identity of the instance using the Eclipse debugger.
3) While the request thread was still being suspended, I did a new request (for 
the same page) in a second tab of the same browser.
4) Observed the break-point was being hit again, but now in another thread and 
confirmed that the identity of the instance was the same one as was returned 
for the currently suspended thread.

If there is anything else you'd like me to test, please let me know.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4250133#4250133

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250133
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: persistence-context-ref always yields same object instan

2009-08-17 Thread jaikiran
anonymous wrote : Whether I do the JNDI lookup multiple times right after each 
other in the same method, or test what the JNDI lookup returns in multiple 
simultaneous requests, the result is always an object instance with the same ID 
(e.g. org.jboss.jpa.tx.transactionscopedentitymana...@d78f1b). 

Hmm, i would have expected it to return different instances in the multiple 
simultaneous requests usecase.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4250049#4250049

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250049
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user