aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to configure JNDI entries for 2.1 EJBS in RAD 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to configure JNDI entries for 2.1 EJBS in RAD 7" Watch "How to configure JNDI entries for 2.1 EJBS in RAD 7" New topic
Author

How to configure JNDI entries for 2.1 EJBS in RAD 7

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi all,

Does anyone know how to configure JNDI for 2.1 EJBS in RAD7??The redbook unfortunately delves into facades and DTO's....very confusing.Maybe someone has some links to a simple tutorial?


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29219
    
134

Duran,
When you open the deployment descriptor editor, do you see an area for JNDI name or mapped name?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

I think I should rephrase my question.It's not really the JNDI I need help with...it's understanding how to deploy the Ejb-jar.What I have done is create a new EAR project.Then I right clicked the EAR and said->New EJB project.Then I right clicked the EAR and clicked import Ejb-jar(I didn't select the option to create a client jar)But once it's done importing the jar,there are redc crosses indicating errors next to to the ejb-jar.xml.It tells me an ejb module must contain one or more enterprise beans.My ejb-jar.xml seems to be right though(it is an example from Mastering EJB 3rd Edition anyway).I think it might be the manner in which I created the jar.Let me illustrate what I did:


As you can see I created a META-INF folder(physically,in windows) and put my ejb-jar.xml inside it.'examples' is a package that contains all the bean interfaces and the bean class.
I issued the following command jar -cf HelloWorld.jar META-INF\ejb-jar.xml.It created a jar succesfully.Viewing the jar produced the following:
META-INF/
META-INF/MANIFEST.MF
examples/
examples/Hello.java
examples/HelloBean.java
examples/HelloHome.java
examples/HelloLocal.java
examples/HelloLocalHome.java
META-INF/ejb-jar.xml


What am I doing wrong here??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure JNDI entries for 2.1 EJBS in RAD 7
 
Similar Threads
Resource Configuration of GlassFish 2.1 Application Server
JNDI NAMES?
Is it possible to configure JNDI using tomcat5.4
tomcat/ejb
struts with datasource problem