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
debedb
Post subject: [Closed] Hot-deploy to WAS resulting in app restart  PostPosted: Apr 26, 2006 - 04:55 PM
Registered Member
Registered Member


Joined: Apr 12, 2006
Posts: 15

I have an exploded deployment, but when I change a method while stepping through it,
(not a method signature, just the body), I can stack frames are correctly dropped
and I can step through the changed methods but at the same time WAS restarts
the application. Why does it do it and how would I prevent that? I have -Xj9 specified
in JDK configuration...
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Apr 27, 2006 - 12:11 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

I'm not sure what the setting in WAS is, but in Tomcat it's a context setting called "reloadable=true", WAS probably has something similar, you can just turn that setting off.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
debedb
Post subject:   PostPosted: Apr 27, 2006 - 01:30 AM
Registered Member
Registered Member


Joined: Apr 12, 2006
Posts: 15

Do you mean reloadEnabled="true" in deployment.xml of the EAR? I have set this, yes.
(but I think my colleague who did not have this set - does not have that attribute at all
in deployedObject tag of deployment.xml - is running into the same problem).

Moreover, if I don't have it set, how would WAS know to reload classes in the first place?
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Apr 27, 2006 - 01:42 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Again, I have no idea what the setting for WebSphere is, this isn't a MyEclipse issue. So unfortunately asking me if it's the reloadEnabled=true setting, I really have no idea. You'd have to check the WAS docs, sorry.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
debedb
Post subject:   PostPosted: Apr 27, 2006 - 02:12 PM
Registered Member
Registered Member


Joined: Apr 12, 2006
Posts: 15

Looks like it's a matter of having reloadEnabled="true" in deployedObject tag of deployment.xml (or, setting reloading enabled in manual install). Per WebSphere, this actually leads to restart of an app when
new class is detected (http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/urun_rapp_inst.html). To avoid that, I removed that, and instead have reloadingEnabled="true" in ibm-web-ext.xmi for the WAR (I don't have EJBs, but similar thing applies). So far so good...
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Apr 27, 2006 - 03:55 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Very cool, thanks for the followup for other folks.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
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