Meaningless Drivel is fun!*
The moose likes Websphere and the fly likes EJB project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "EJB project " Watch "EJB project " New topic
Author

EJB project

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
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

Joined: May 26, 2003
Posts: 30586
    
154

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.


[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
ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
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

Joined: Feb 13, 2004
Posts: 443
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.
 
 
subject: EJB project