aspose file tools*
The moose likes JBoss/WildFly and the fly likes How to Set JNDI on Classpath in Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to Set JNDI on Classpath in Linux" Watch "How to Set JNDI on Classpath in Linux" New topic
Author

How to Set JNDI on Classpath in Linux

Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
Please help me. How to Set JNDI on Classpath in Linux??

which jars i need to download?. which Environment variable i need to set?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10202
    
166

Sorry, but I don't understand the question. What do you mean by set JNDI on classpath? Can you explain a bit more on what you are trying to do? Which version of JBoss AS are you using?

[My Blog] [JavaRanch Journal]
Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
I have jb1 and jb2 installed on ame machine

jb1 contains a datasource file oracle-ds.xml

and my problem is, i want to access the ds file of jb1 from jb2 through JNDI from a WAR file.

how to do this?
Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
I am using jboss 4.x
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

saahil gupta wrote:i want to access the ds file of jb1 from jb2 through JNDI

Why would you want to do this? Why not simply copy the *-ds.xml file for jb2 and then that datasource would be available to all of your applicaitons in jb2.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Set JNDI on Classpath in Linux