Hi,
Few notes on OSGi:
- OSGi is not preferred by all
- Servicemix 5 may support non OSGi based deployment
- Mule is not interested in OSGi http://blogs.mulesoft.org/osgi-no-thanks/
- Spring is moving away from OSGi
“Rod Johnson (founder of the Spring Framework) during his key notes speech
saying that OSGi was his worse mistake in 8 years” in
http://forum.springsource.org/showthread.php?106852-What-s-the-future-of-OSGi-and-Spring-DM
- Google trend of OSGi is like JBI
http://www.google.com/trends/?q=osgi and http://www.google.com/trends/?q=jbi
Servicemix 3.4:
- Service Unit class loader ensures that each SU can load its own version of
the JAR
- No need for OSGi-fied 3pp jars
- Shared jars can be put into the shared library or the smx/lib folder
- Service Assembly can be stopped/started like OSGi bundles
- Servicemix-bean component can be used with simple bean as follows:
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
public class Test {
@PostConstruct
public void start() {
System.out.println("Start Method
invoked***************************************");
}
@PreDestroy
public void stop(){
System.out.println("Destruct Called
***********************************");
}
}
- Start() is called when the SA starts (the object is created)
- Stop() is called when the SA stops (the object is destroyed)
Sample SU/SA is attached. Please let me know your
comment.
With Best Regards,
Diwakar
http://servicemix.396122.n5.nabble.com/file/n5713347/src-genDirect.zip
src-genDirect.zip
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Is-Servicemix-3-4-still-a-good-container-for-applications-tp5713347.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.