Hi,

Well, okay but if I change my code

final Context ic = new InitialContext(); 
ic.createSubcontext("java:comp/env/jdbc");

by

InitialContext.doLookup("java:comp/env/jdbc/" + name);

and I remove Resource section inside my war context.xml


all works gracefully :)



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/javax-naming-OperationNotSupportedException-Context-is-read-only-tp4678126p4680201.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to