I have not tried that. I think it can get really complicated and would not 
implement
that manually myself. The naive idea of making the requests wait in Tomcat can 
quickly
pile up a huge number of threads, at least in the traditional blocking 
one-thread-per-request
model.

Rather, I’d use a traditional fail-over architecture with redundant servers, 
and rely on that to
switch to the fail-over server while I restart the node on the primary server. 
But if you have
that, you might as well restart the application server as a whole.


n  Sebastian

From: binhn...@viettel.com.vn [mailto:binhn...@viettel.com.vn]
Sent: Wednesday, September 12, 2012 10:14 AM
To: dev@tuscany.apache.org
Cc: bin...@viettel.com.vn
Subject: RE: HOW TO: Hot deploy SCA service withou restart app server

Hi Sebastian,

That’s a great idea. But there’s one thing I worry when start/stop node.
I want to pause all incoming request that call the node’s services, continue 
processing all current requests before stop a node.
After start the node, it releases the pause automatically. Can you share your 
knowledge to solve it?

Best regards
Binh, Nguyen Thanh

From: Millies, Sebastian [mailto:sebastian.mill...@softwareag.com]
Sent: Wednesday, September 12, 2012 2:27 PM
To: dev@tuscany.apache.org<mailto:dev@tuscany.apache.org>
Subject: RE: HOW TO: Hot deploy SCA service withou restart app server

it’s quite easy using the Tuscany node API. I expose the start/stop methods in 
an MBean interface
and restart my nodes using JConsole. -- Sebastian

From: Raymond Feng [mailto:enjoyj...@gmail.com]
Sent: Wednesday, September 12, 2012 7:20 AM
To: dev@tuscany.apache.org<mailto:dev@tuscany.apache.org>
Cc: bin...@viettel.com.vn<mailto:bin...@viettel.com.vn>
Subject: Re: HOW TO: Hot deploy SCA service withou restart app server

At this point, a restart is required even the change only happens in the 
composite file as the start/stop is tied to web app context listener or servlet 
filter. Programmatically, you can start/stop a Tuscany node though. So you can 
potentially make the lifecycle of a composite application more dynamic. We did 
that for the OSGi enterprise services implementation based on Tuscany/SCA.

Thanks,
Raymond

On Sep 11, 2012, at 8:51 PM, Makiet wrote:

Hi,

I have some interfaces and java classes, and a composite file to expose a part 
of those interfaces as services.
One day, I want to expose one more service based on an existing interface. I 
mean no code change needed, only modify the composite file (I guessed).
How can I achieve that without restart my app server?

Best regards
Binh, Nguyen Thanh

IDS Scheer Consulting GmbH
Geschäftsführer/Managing Directors: Michael Rehm, Ivo Totev
Sitz/Registered office: Altenkesseler Straße 17, 66115 Saarbrücken, Germany - 
Registergericht/Commercial register: Saarbrücken HRB 19681
http://www.ids-scheer-consulting.com


IDS Scheer Consulting GmbH
Geschäftsführer/Managing Directors: Michael Rehm, Ivo Totev
Sitz/Registered office: Altenkesseler Straße 17, 66115 Saarbrücken, Germany - 
Registergericht/Commercial register: Saarbrücken HRB 19681
http://www.ids-scheer-consulting.com

Reply via email to