MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tmwr
Post subject: Mask EJB-JAR during ejbdeloy?  PostPosted: Jun 29, 2012 - 12:29 PM
Registered Member
Registered Member


Joined: Aug 16, 2011
Posts: 6

Hi there,

I have a kind of tricky question... I'm working on a EAR project with 3 EJB 3.0 projects and one legacy EJB 2.1 project which is a precomplied (and through ejbdeploy enhanced) JAR file.

When I deploy the EAR through ME Blue it packs the temp EAR and deploys it with an ejbdeploy call which ist perfectly ok.

Unfortunately the ejbdeploy task changes the legacy EJB 2.1 JAR too and it won't run afterwards. So that leads me to the idea that I want to mask out the legacy EJB 2.1 from the ejbdeploy call.

Is there any - even dirty (hacking installEAR.jacl or whatever... ;-)) - possibility to achieve this?

Or has anybody a better idea?

Thx,
Thomas
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jul 02, 2012 - 05:58 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2584

Thomas,

What mode are you deploying the project with? If you configure your server to use the in-workspace mode, EJB Deploy will *not* be run on the project when it is deployed (that mode requires that you run ejb-deploy manually).

If you need to use the classic or enhanced modes for some reason, you could go to the project properties > MyEclipse > EAR page and turn off the EJBDeploy option; this will turn it off for all your EJB projects, but IIRC it would not be required for EJB3 anyway (I'll have to confirm with my dev team).

Please let us know how it goes.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
tmwr
Post subject:   PostPosted: Jul 03, 2012 - 02:17 PM
Registered Member
Registered Member


Joined: Aug 16, 2011
Posts: 6

Brian,

thanks for your reply.

You're right, we cannot use the "in workspace" deployment for an different reason. So we use the "exploded archive" mode currently.

Meanwhile I've found the mentioned option for the EBJ deploy and this works for me. Since the EJB 3 projects are only using local interfaces for the beans and there is therfore no need to create remote stubs everything works fine.

Thx again,
Thomas
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits