Help me, please.

I put this code in Servlet: 

InitialContext jndiContext = new InitialContext();
  | Object obj = jndiContext.lookup("java:PostgresDS");
  | DataSource ds = (DataSource) PortableRemoteObject.narrow(obj, 
DataSource.class);
  | ...
  | 

and its work correctly. But then I put this code in application, Eclipse write:

javax.naming.NameNotFoundException: (PostgresDS not bound ...

In what difference? Why it not work in application?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038116#4038116

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038116
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to