You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by "David J. M. Karlsen" <da...@davidkarlsen.com> on 2005/07/01 13:55:18 UTC

Re: Reloading the registry while running

belaran wrote:
> Hi everyone,
> 
> I would like to know if it possible to alter the hivemodule ( exemple : 
> change an implementation ) and , in the code, ask the registry ot 
> reload. The associated use case would be to update an app without 
> shutting down it...
> 
> I realize of course that such behaviour is dangerous, but i just want to 
> know if it is somehow, possible.
No - you have to reload the application or restart the JVM.


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: Reloading the registry while running

Posted by belaran <be...@gmail.com>.
Sorry I mislead you. I'm not really try do this. I realised a study of 
hivemind for the company i'm working in, and my boss ask me if I hivemind 
registry could be reloaded. I was pretty sure it was not possible, but i ask 
just to be sure...

Thanks for all your response

2005/7/2, James Carman <ja...@carmanconsulting.com>:
> 
>  Well, if you're "upgrading", I would imagine that you're changing some 
> code, right? Are you using a servlet container which does auto-reloading of 
> classes when it sees that something has changed (like Tomcat)? Then, it will 
> reload the entire webapp and therefore the registry also.
> 
>   ------------------------------
>  
> *From:* belaran [mailto:belaran@gmail.com <http://gmail.com>] 
> *Sent:* Saturday, July 02, 2005 7:05 AM
> *To:* Glen Stampoultzis
> *Cc:* hivemind-user@jakarta.apache.org
> *Subject:* Re: Reloading the registry while running
>  
>  yes i always can, but the point was more to upgrade an application while 
> it's running just by changing the registry... It's not really a good idea, 
> but i was just wandering if it's possible...
> 
> thanks for your response
>  
> 2005/7/2, Glen Stampoultzis <gs...@gmail.com>:
> 
> On 7/1/05, belaran <be...@gmail.com> wrote:
> > > No - you have to reload the application or restart the JVM.
> 
> You can create a brand new registry and close the old one however. 
>  
> 
> 
> 
> -- 
> Belaran,
> "What'do'ya mean ?"
> "As a moto, I just avoid meaning anything..." 
>  



-- 
Belaran,
"What'do'ya mean ?"
"As a moto, I just avoid meaning anything..."

RE: Reloading the registry while running

Posted by James Carman <ja...@carmanconsulting.com>.
Well, if you're "upgrading", I would imagine that you're changing some code,
right?  Are you using a servlet container which does auto-reloading of
classes when it sees that something has changed (like Tomcat)?  Then, it
will reload the entire webapp and therefore the registry also.

 

  _____  

From: belaran [mailto:belaran@gmail.com] 
Sent: Saturday, July 02, 2005 7:05 AM
To: Glen Stampoultzis
Cc: hivemind-user@jakarta.apache.org
Subject: Re: Reloading the registry while running

 

yes i always can, but the point was more to upgrade an application while
it's running just by changing the registry... It's not really a good idea,
but i was just wandering if it's possible...

thanks for your response

2005/7/2, Glen Stampoultzis <gs...@gmail.com>:

On 7/1/05, belaran <be...@gmail.com> wrote:
> > No - you have to reload the application or restart the JVM.

You can create a brand new registry and close the old one however. 




-- 
Belaran,
"What'do'ya mean ?"
"As a moto, I just avoid meaning anything..." 


RE: Reloading the registry while running

Posted by James Carman <ja...@carmanconsulting.com>.
Well, you could always try to do.

 

http://jakarta.apache.org/hivemind/hivemind/apidocs/org/apache/hivemind/serv
let/HiveMindFilter.html#rebuildRegistry(javax.servlet.http.HttpServletReques
t)

 

 

 

  _____  

From: belaran [mailto:belaran@gmail.com] 
Sent: Saturday, July 02, 2005 7:05 AM
To: Glen Stampoultzis
Cc: hivemind-user@jakarta.apache.org
Subject: Re: Reloading the registry while running

 

yes i always can, but the point was more to upgrade an application while
it's running just by changing the registry... It's not really a good idea,
but i was just wandering if it's possible...

thanks for your response

2005/7/2, Glen Stampoultzis <gs...@gmail.com>:

On 7/1/05, belaran <be...@gmail.com> wrote:
> > No - you have to reload the application or restart the JVM.

You can create a brand new registry and close the old one however. 




-- 
Belaran,
"What'do'ya mean ?"
"As a moto, I just avoid meaning anything..." 


Re: Reloading the registry while running

Posted by belaran <be...@gmail.com>.
yes i always can, but the point was more to upgrade an application while 
it's running just by changing the registry... It's not really a good idea, 
but i was just wandering if it's possible...

thanks for your response

2005/7/2, Glen Stampoultzis <gs...@gmail.com>:
> 
> On 7/1/05, belaran <be...@gmail.com> wrote:
> > > No - you have to reload the application or restart the JVM.
> 
> You can create a brand new registry and close the old one however.
> 



-- 
Belaran,
"What'do'ya mean ?"
"As a moto, I just avoid meaning anything..."

Re: Reloading the registry while running

Posted by Glen Stampoultzis <gs...@gmail.com>.
On 7/1/05, belaran <be...@gmail.com> wrote:
> > No - you have to reload the application or restart the JVM. 

You can create a brand new registry and close the old one however.

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: Reloading the registry while running

Posted by belaran <be...@gmail.com>.
Thanks for the confirmation.

2005/7/1, David J. M. Karlsen <da...@davidkarlsen.com>:
> 
> belaran wrote:
> > Hi everyone,
> >
> > I would like to know if it possible to alter the hivemodule ( exemple :
> > change an implementation ) and , in the code, ask the registry ot
> > reload. The associated use case would be to update an app without
> > shutting down it...
> >
> > I realize of course that such behaviour is dangerous, but i just want to
> > know if it is somehow, possible.
> No - you have to reload the application or restart the JVM.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
> 


-- 
Belaran,
"What'do'ya mean ?"
"As a moto, I just avoid meaning anything..."