File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes TimerManager  Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "TimerManager  Problem" Watch "TimerManager  Problem" New topic

TimerManager Problem

Koms Alam

Joined: Jul 29, 2008
Posts: 10

I need to use TimerManager in our project. I was testing it on RAD6.0.1,
using DefaultTimerManager with JNDI name java/comp/env/tm/default.

However when I do lookup for that JNDI Name in a servlet it was giving error like this
Exception stack trace: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is ASYN0069E: TimerManager java/comp/env/tm/default is being looked up without using resource reference.

The code in servlet for look up is
InitialContext ctx = new InitialContext();
TimerManager mgr = (TimerManager)
I tried
, but that too gave error like javax.naming.NameNotFoundException: Name comp/env/tm not found in context "java:".

In web.xml corresponding resource reference entry is
I tried giving the full JNDI Name in <res-ref-name> but it did not work.

Not able to find why the error is coming. Please help.

Koms Alam
Ameer Tamboli

Joined: Oct 10, 2002
Posts: 2

Make it non-sharable.

Also don't forget to add the entry to ibm specific binding file with the JNDI name.

<resRefBindings xmi:id="ResourceRefBinding_11111111111" jndiName="tm/default">
<bindingResourceRef href="WEB-INF/web.xml#ResourceRef_11111111111"/>


Speeding has never killed anybody, what kills you is suddenly becoming stationary.
wood burning stoves
subject: TimerManager Problem
It's not a secret anymore!