>>What you are trying looks like it should work.  If you try to look it up in
>>the usual JNDI way,

>>    InitialContext initContext = new InitContext();
>>    DataSource ds = (DataSource) initContext.lookup
("java:comp/env/jdbc/postgres");

>>does it actually work?  Also, what servlet container are you running on? 
Yes, it  works form myfaces BackBeans using ussual Jndi way that looks like
example you provided.
But when I use Shale it mocks initialcontext and therefore I looking for 
another way to aquire connection.

I am using Tomcat 5.5.17
-- 
View this message in context: 
http://www.nabble.com/shale%3A-jndi-lookup-error-tf2055640.html#a5671730
Sent from the Struts - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to