• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure JNDI entries for 2.1 EJBS in RAD 7

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34218
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duran,
When you open the deployment descriptor editor, do you see an area for JNDI name or mapped name?
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic