btw I think more about this and we really have 4 points of entry with
threads...
1- normal invocation (enters through container invoker)
2- commit through Synchronization (session and entity)
3- passivation (independant thread)
4- time outs
on ALL these 4 entries the context class loader must be set, the error we
are seeing is in 2 but all the others must be done (well 1 is done at
least).
Simone can you look into 3 (do
Thread.currentThread().setContextClassLoader(container.getClassLoader()) or
something like that, before leaving the thread do the rest since the
ejbPassivate WILL work on the bean and need that visibility on its classes).
Ole :))) we still have some issues with the timeouts and I do believe that
some calls will end up on the instance (yes?no?) if yes or if any clean up
work needs to happen on resource that are client specific then we need the
same CL to be set on the thread.
I will try to do 2 asap, if not done, feel free to do it
marc
|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of marc fleury
|Sent: Friday, October 13, 2000 3:37 PM
|To: jBoss
|Subject: RE: [jBoss-User] JNDI Problem
|
|
||Aaron Mulder wrote:
||> I've got a session bean that changes an entity bean.
|The session
||> bean has no data sources defined, though the entity does. When
||my call to
||> the session finishes, the TxCapsule calls the
||> EntitySynchronizationInterceptor which calls the BMPPersistenceManager
||> which calls store on the entity. When the entity tries to look
|up its DB
||> pool to get a connection, it fails. However, if I add a resource
||> reference to the session bean, then the entity succeeds. So it
||looks like
||> the java:comp/env environment is not being reset to that of the entity
||> when the entity is stored - it stays set to the session bean's
||> environment. Any thoughts?
||
||I think I figured it out. During the commit phase the persistence
||manager must set the right context classloader prior to calling
||ejbStore, or else you will get the above problem.
|
|of course, good catch kid.
|
|marc
|
||
||Either I will fix this on Monday (going away over the weekend), or
||someone else can take it. Should be pretty trivial to fix.
||
||/Rickard
||
||--
||Rickard �berg
||
||Email: [EMAIL PROTECTED]
||http://www.telkel.com
||http://www.jboss.org
||http://www.dreambean.com
||
||
||
||--
||--------------------------------------------------------------
||To subscribe: [EMAIL PROTECTED]
||To unsubscribe: [EMAIL PROTECTED]
||Problems?: [EMAIL PROTECTED]
||
||
|
|
|
|--
|--------------------------------------------------------------
|To subscribe: [EMAIL PROTECTED]
|To unsubscribe: [EMAIL PROTECTED]
|Problems?: [EMAIL PROTECTED]
|
|
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]