For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 2 voices, and was last updated 19 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
We have a large EJB/Web/Struts/resources.. project that I’d like to break up into multiple MyE sub-projects, but there are so many packages, I’m really not sure where to start.
I can create one or more EJB projects and Web Projects and just deploy them all in a hit-or-miss fashion until the project actually runs under WebLogic 9.2.
Is there a better way?
Running the ant script and then starting Web logic takes over 5 minutes each time. That’s over an hour a day just …. waiting.
Look forward to some suggestions.
Thanks.
M
May 31, 2007 at 1:11 pm #270928
Riyad KallaMemberMork,
In MyEclipse if you had lots of “modules” (Basically stand alone projects that serve a function. Like a web app that handles user administration, some EJBs that handle e-commerce and so on) you normally create a top-level Enterprise Application Project and add all those modules to the EAR.Then when you deploy the EAR, myeclipse hunts through the dependency tree and deploys everything necessary for you. The EAR project is more like a meta-project for the purpose of deployment organization. You don’t actually store code in the EAR.
Were you already using this? Or does this help? Maybe I misunderstood you.
May 31, 2007 at 2:44 pm #270931I probably wasn’t clear….Sorry.
What I’m doing right now each time I need to test a change is run the ant script, then re-start Weblogic. Takes over 5 minutes each time.
What I want to be able to do is save a JSP or class and have it immediately referenced in the WebLogic actively running project (like you’d do in Tomcat, for example) …. so no ear build is needed (and WL restart).
The challenge is that the project wasn’t set up this way, and I’m afraid it’s going to be tough. There are about 25 packages, some EJB some Web, libs, Struts, resources, etc..
What I’d like to do is re-create the project in MyEclipse by creating as many EJB projects and a Web Project. However, the project size is daunting. I wasn’t here when the project got started….at least it’s an Eclipse workspace! <s>
Look forward to your updated comments.
Thanks.
M
P.S. My email notification no longer works since I changed my email in the user preferences. Something seems broken there. (I have to remember to manually check this forum for replies). Thanks for checking on this.
May 31, 2007 at 2:56 pm #270933
Riyad KallaMemberMork:
1) Double check your notification preferences on your profile page here: http://www.myeclipseide.com/PNphpBB2-profile-mode-editprofile.html2) Also with regard to your problem, I’m not sure what the question is. I mean I understand what you are trying to do, I just don’t see where the questions is in your post. It sounds like you have a large project that is formed to be 1 giant project (ok got that). And it sounds like you’d like to convert it to the respective MyEclipse projects (ok got that too)… but then there isn’t a question. So if the question is “is there an automatic way to do this”, unfortunately there isn’t. If the question is “How do I do it?’ then the answer is “No way for me to know. I don’t know how the project is laid out, what it’s inter-relationships are between files, etc.”
As very broad rules of thumb, I could offer these tips… but they are so general it’s almost not helpful:
* Try and identify the “common” code that all EJBs and Web projects use. You could do this by simply looking through a few EJBs and Web resources and see if they use similar classes. These common classes can be pulled into a common bottom-level Java Project.
* If step #1 is too hard (complex dependencies) then try and pull your EJBs out into an EJB project. Forget about logical EJB projects at this point (e.g. AdminEJBs, ContentManagementEJBs, etc.) just create 1 big EJB project and pull the EJBs into it. Get that working.
* After #2, do the same with your web project-esque resources.Once you do 2 and 3, you should get a better idea of #1, where the common connection points are. And from there you can further refine the projects if you like, but atleast you can clearly see where the lines in the sand are.
Other than that, I can’t think of any other tips… maybe get a huge cup of coffee before starting? 🙂
June 1, 2007 at 8:20 am #270963Thanks for your reply.
My basic post was just how to go about creating multiple MyEclipse projects so I can hot-deploy them to WebLogic without building an ear file and restarting WebLogic each time.
I think your reply gave me the info I needed.
Thanks again!!!
— M
June 1, 2007 at 10:18 am #270970
Riyad KallaMemberGood deal, let me know how it goes. Certainly not a task for the weak of heart.
-
AuthorPosts

