Re: Bind Datasource to specific jndi name

2008-09-16 Thread Andreas Karalus
embedded: InitialContext context = new InitialContext(); context.bind(java:operativDS, new javax.naming.LinkRef(java:openejb/Resource/operativDS)); -David -- View this message in context: http://www.nabble.com/Bind-Datasource-to-specific-jndi-name-tp19391707p19509314.html Sent

Re: Bind Datasource to specific jndi name

2008-09-16 Thread David Blevins
On Sep 16, 2008, at 3:42 AM, Andreas Karalus wrote: Hi David, thank you for your hint, I tried this, but still got exception: In the code for intialisation of openejb: initialContext.bind(java:operativDS, new javax.naming.LinkRef(java:openejb/Resource/operativDS)); In the test Code: //

Re: Bind Datasource to specific jndi name

2008-09-15 Thread David Blevins
On Sep 9, 2008, at 5:53 AM, Andreas Karalus wrote: hello, i've configured a datasource like this Resource id=operativDS type=DataSource JdbcDriver oracle.jdbc.driver.OracleDriver JdbcUrl jdbc:oracle:thin:@localhost:1521:orcl UserNamescott Passwordtiger /Resource