From: <phr...@im...> - 2002-08-08 21:29:40
|
hi, On Thu, 8 Aug 2002 09:04:10 -0500, "Urberg, John" <ju...@ve...> said: > > ds.storeResource( > > resources[i], Thread.currentThread().getContextClassLoader() > > ); > > > >( in SessionFactoryStub.getImpl() ). Have I got it totally wrong, > > or isn't Thread.currentThread.getContextClassLoader() meant to get=20 > > the classloader used by the calling EJB? Perhaps I'm=20 > > hallucinating... i think in this case you would want to use the classloader that loaded a class that's in the same JAR as your resource, instead of the thread's classloader. eg. this.getClass().getClassLoader() the thread's context classloader would be a higher level classloader, eg the one that launched the container. viktor --=20 =20 phr...@im... --=20 http://fastmail.fm Quick as a click |