File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes JNDI in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "JNDI in eclipse" Watch "JNDI in eclipse" New topic

JNDI in eclipse

Jenna Thomas

Joined: Oct 03, 2005
Posts: 27
Im trying to go through the Sun Enterprise JAVA tutorial and trying to execute the examples in eclipse/jboss. This doesnt seem to be too tough a task, plus it gives a newbie like me a chance to learn eclipse better(thats what we work on primarily at work)
However, one aspect Im stuck on is trying to add a JNDI entry for a datasource. How is this done in eclipse? Is there a plugin to be used? Ive tried to use the plugin mentioned here:

But Im not too sure that its well supported (or even working with eclipse 3!)

So, could you please tell me what works for you!
Thanks for reading!

Jenn SCJP1.5
Rob Spoor

Joined: Oct 27, 2005
Posts: 20269

As this is an Eclipse specific question I'll move this thread to our IDEs forum.

How To Ask Questions How To Answer Questions
Peter Johnson

Joined: May 14, 2008
Posts: 5852

If I understand this correctly, you are trying to run your app within JBoss AS from within Eclipse. And you are wondering how to set up a datasource. As far as I know there is no tool to do this for you (though there might be something for this in the JBoss Tools plugins for Eclipse); what I have always done is created a *-ds.xml file within the project and then used Ant to copy the *-ds.xml file to the deploy directory within JBoss AS.

JBoss In Action
I agree. Here's the link:
subject: JNDI in eclipse
jQuery in Action, 3rd edition