- This topic has 5 replies, 2 voices, and was last updated 19 years, 12 months ago by Riyad Kalla.
-
AuthorPosts
-
cgogineniMemberHello,
I have a requirement where we need to keep all java source in one directory called src under project root. In MyEclipse ,How do I refer Both Web Module and EJB Module to look at above src directory which is actually at the same level as where EJB and Web Modules root .i.e under application root. So far I have created src folders under Web and EJB modules for their own source code, It went OK in development. I cannot checking that directory structure to Version control system.
I can get around by using custom ant file for build, but then I will not bee able to use other ME features like xDoclet generation and all.I appreciate your help.
Thanks
Riyad KallaMemberIn MyEclipse ,How do I refer Both Web Module and EJB Module to look at above src directory which is actually at the same level as where EJB and Web Modules root .i.e under application root.
I don’t quite understand your question. I’m going to outline the project structure *I think* you are asking about, please correct me:
+ My Web Project + /src + /WebRoot + /WEB-INF + /classes + /lib + My EJB Project + /src + /META-INF
Is this correct? Given this structure above (or the corrected structure if you can outline it) can you repeat the question? The organization above is very standard and supported by MyEclipse out-of-the-box, so I imagine your question is something different.
cgogineniMember@support-rkalla wrote:
In MyEclipse ,How do I refer Both Web Module and EJB Module to look at above src directory which is actually at the same level as where EJB and Web Modules root .i.e under application root.
I don’t quite understand your question. I’m going to outline the project structure *I think* you are asking about, please correct me:
+ My Web Project + /src + /WebRoot + /WEB-INF + /classes + /lib + My EJB Project + /src + /META-INF
Is this correct? Given this structure above (or the corrected structure if you can outline it) can you repeat the question? The organization above is very standard and supported by MyEclipse out-of-the-box, so I imagine your question is something different.
My directory structure that supposed to be
+ project-root
/src/java
/src/metadata
/build
/lib
/webrootHow do I create Web and EJB modules both look at one source directory above. Just to make the above structure work for MyEclipse I am planning to add two more directories called ejbroot and approot directories under project root. I am planning to create EJB Module with projeect directory as projectroot/ejbroot and WebModule as projectroot/webroot but src directory should be under /projectroot itself and needs to be referenced from both EJB and WebModules for MyEclipse. We already have ant script which makes EAR from above directory structure.
THanks,
Chandra
Riyad KallaMemberHow do I create Web and EJB modules both look at one source directory above.
Ahhh, you need to create 4 projects, this is very common in MyEclipse:
1) Java Project (Your base ‘library’ that you want to share)
2) Web Project (Your web project)
3) EJB Project (Your EJB project)
4) Enterprise Application Project (This is the ‘umbrella’ project that will tie the Web and EJB modules together)This type of development is covered in our Enterprise document, please read it to get a feel for hwo this works together: http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/
cgogineniMemberAll the code I have under src is either EJB’s or struts. If I have the whole source as separate java library Can I still use xDoclet driven programming for EJB interfaces generation. My bean class is going to be separate java library, not under EJB project.
Other problem is I am unable to create EJB Module without source directory.
Riyad KallaMemberChandra,
I’ve outlined what you *need* to do if you want to use MyEclipse’s deployment, debugging functionality. If you just want to use our editors, then you can continue to keep everything in a single project; however if you want to use MyEclipse to its fullest extent, you will need to break your project out into its individual modules as I’ve stated above. -
AuthorPosts