• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB project

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a EJB 3 project in RAD. couple silly questions :

1. The IDE automatically generates a "ejbModule" folder. Should I put my ejb source code there ? I am used to put source code in some folder like "src". Is that ok ?

2. Is the ejb-jar.xml file automatically generated by IDE inside "ejbModule" folder ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34860
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ben oliver wrote:1. The IDE automatically generates a "ejbModule" folder. Should I put my ejb source code there ? I am used to put source code in some folder like "src". Is that ok ?

Use the ejbModule folder. That's where IBM wants it to be. (In fact, we encountered a bug when directing the output to a different folder in version 7.5!)

ben oliver wrote:2. Is the ejb-jar.xml file automatically generated by IDE inside "ejbModule" folder ?

ebjModule/META-INF. Yes.
 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:
ben oliver wrote:1. The IDE automatically generates a "ejbModule" folder. Should I put my ejb source code there ? I am used to put source code in some folder like "src". Is that ok ?

Use the ejbModule folder. That's where IBM wants it to be. (In fact, we encountered a bug when directing the output to a different folder in version 7.5!)

ben oliver wrote:2. Is the ejb-jar.xml file automatically generated by IDE inside "ejbModule" folder ?

ebjModule/META-INF. Yes.


Thanks but not sure if you got my question correctly. but I am not talking about the "output" folder (for class files).. I know you said you encountered a problem when you directed output to a different directory. I am talking about the java source code. Can I use "src" as the source folder ?
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ben oliver wrote:I want to create a EJB 3 project in RAD. couple silly questions :

1. The IDE automatically generates a "ejbModule" folder. Should I put my ejb source code there ? I am used to put source code in some folder like "src". Is that ok ?


Answer #1: Yes it is absolutely fine to change ejbModule to src. I do that all the time. I am using RAD 7.5.3 and have seen no issues. You can leave it as ejbModule if you like it like that but as I said there is no issue if you change it to src.


ben oliver wrote:
2. Is the ejb-jar.xml file automatically generated by IDE inside "ejbModule" folder ?


Answer #2: No the deployment descriptor files will be generated in EJB3 project only if you opted for it. For example: If you generated the project with "interfaces in ejb client jar" the deployment descriptors will be generated. The location of the ejb-jar.xml (and addn ibm bind files) is src/META-INF or ejbModule/META-INF.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic