• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB project

 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic