geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fladimir <publicfakeemailaddr...@yahoo.com>
Subject Re: How to get hold of a WorkManager in a web app?
Date Sun, 18 Jan 2009 20:17:10 GMT

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.


Mime
View raw message