did you remember to add the resource reference to ejb.xml and map it in jboss.xml?
IvanLatysh wrote: > I have Entity bean and I am getting connection using this code > > public void setEntityContext(EntityContext entityContext) throws RemoteException { > javax.naming.Context context = new javax.naming.InitialContext(); > dataSource = (DataSource) context.lookup("java:comp/env/jdbc/postmasterData"); > ... > } > > But If I am try to get dataSource same way in my Session bean I am getting Object >not found. > > Sincerely yours, Ivan Latysh. > [EMAIL PROTECTED] > http://ivan.yourmail.com > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user