[JBoss-user] [Beginners Corner] - Re: JNDI access for Oracle Datasource

2004-04-01 Thread xibin
Yes you can lookup a datasource. Make sure the JNDI name is correct. If you can view your datasource from the jndi view, you should be able to look it up. I think obtaining the datasource only makes sense on the server. Since server manages the connection pool and transactions. If you are doing

[JBoss-user] [Beginners Corner] - Re: JNDI access for Oracle Datasource

2004-04-01 Thread mlange
You can't lookup a JBoss datasource outside JBoss. The JNDI lookup is only possible within the container (java:/ prefix). -marek View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3828629#3828629 Reply to the post :

[JBoss-user] [Beginners Corner] - Re: JNDI access for Oracle Datasource

2004-04-01 Thread tklivan
mlange ... is there any way out of this? actually my issue is that I need to keep passwords secured and out of the reach of the general developers. web applications should not have this issue for my side. It is because some of our background processes runs as java clients and we would like to

[JBoss-user] [Beginners Corner] - Re: JNDI access for Oracle Datasource

2004-04-01 Thread tklivan
btw, is there such a thing as a JNDI datasource on the global namespace? How do I set it up for that and would that help for the java client? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3828636#3828636 Reply to the post :

[JBoss-user] [Beginners Corner] - Re: JNDI access for Oracle Datasource

2004-04-01 Thread tklivan
ok .. don't bother answering the questions above ... this is what I conclude : 1) It is virtually impossible to get a JNDI Datasource. 2) It is impractical also due to the J2EE implementation. EJBs would be the way to go if we need data. Since data access will fall within the Business Layer, it

[JBoss-user] [Beginners Corner] - Re: JNDI access for Oracle Datasource

2004-04-01 Thread jae77
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3828702#3828702 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828702 ---

[JBoss-user] [Beginners Corner] - Re: JNDI access for Oracle Datasource

2004-04-01 Thread Dave Lilley
jae77 wrote : http://java.sun.com/j2ee/1.4/docs/tutorial/doc/ Yea... that doesn't help much. I saw the following in Chapter 31... Specify the logical name of the database. private String dbName = java:comp/env/jdbc/SavingsAccountDB; The java:comp/env portion of the logical name is the

[JBoss-user] [Beginners Corner] - Re: JNDI access for Oracle Datasource

2004-04-01 Thread nickman
Dave; JBoss specifically puts the DataSource bindings in the java:/ namespace of JNDI to make it inaccessible to external VMs, since by definition, they cannot use any objects bound in that space. In the case of EJBs, you have two options. You can reference the java:/ namespace directly to