I am trying to bind pooled objects to the environment space in tomcat 4.0 b5/b6 (I haven't used earlier releases), i.e.

ictx.rebind("java:comp/env/myObject", myObject);

onwhich i get a naming exception stating the context is readonly. I ihave tried unsucessfully to accomplish this trivial task, and have not found a solution. does anyone know if i need to do something specefic to accomplish this sort of a thing... I din't see any restriction paced on doing this under the Servlet 2.3 Specs, so it does'nt make sence. Please advise.