I think there might be a bug in our jndi implementation so you have to
look up java:/DefaultWorkManager. If this doesn't help I'll look
further.
thanks
david jencks
On Jan 18, 2009, at 12:17 PM, fladimir wrote:
Yes, I actually guessed something like that when I checked the full
stack
trace.
Thanks a lot, it deploys now fine. But the name is not found:
Caused by: javax.naming.NameNotFoundException: java:DefaultWorkManager
at
org
.apache
.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:169)
at
org
.apache
.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:603)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
In:
InitialContext initialContext = new InitialContext();
Object workManager = initialContext.lookup("java:DefaultWorkManager");
LOG.info("WORKMANAGER: " + workManager);
Any advice what name I should try? I guess it should be in
InitialContext,
no?
--
View this message in context:
http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21532415.html
Sent from the Apache Geronimo - Users mailing list archive at
Nabble.com.