Hi, try using the admin on <your server>:8082 to check wether your resource mapping really worked, under naming look for JNDI-View hth, Burkhard ----- Original Message ----- From: "Emerson Cargnin - MSA" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 17, 2002 2:05 PM Subject: Re: [JBoss-user] Finding DataSource using jboss.xml aliasing
> > Hey dan, it didn't worked, message : "jdb not bound" > by the way, in jboss console, it gives me the following message during > startup : > > 15:51:44,462 INFO [OracleDS] Bound connection factory for resource > adapter 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/OracleDS' > > > It didn't work either. > > Dan Christopherson wrote: > > > Emerson Cargnin - MSA wrote: > > > >> Code of bean trying to lookup the DS: > >> > >> private Connection conecta() throws NamingException, SQLException > >> { > >> Connection conn = null; > >> InitialContext ic = new InitialContext(); > >> DataSource ds = (DataSource)ic.lookup("jdbc/SISDS"); > > > > > > should be 'ic.lookup("java:comp/env/jdbc/SISDS")' > > > >> conn = ds.getConnection(); > >> return conn; > >> } > >> > > > > > > _______________________________________________________________ > > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ---------------------------------------------------------------------------- Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf <<< _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user