Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
Marco Ehrentreich wrote:Just out of curiosity, could you explain in short or provide an URL for this "web support" Spring-DM adds to OSGi?
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:Then how Spring-DM and a servlet container work together.
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:I understand a WAR in a servlet container's point of view, but why do we want to deploy a WAR as a OSGi bundle?Of course, we don't deploy it just to make the web extender deploy it to a servlet container.
Could you please to give a real world example that why do we use to deploy a WAR as a OSGi bundle?
Other bundles want to access Servlets, JSPs or something?
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
Marco Ehrentreich wrote:There's just a simple question left... The feature you mentioned to wrap 3rd party libraries into OSGi bundles reminds me again of the NetBeans module system. In NetBeans you have to/you should package each library JAR inside its own module in order to make it manageable with the correct version and meta data. From what you already explained I suspect that the concept will be very similar with OSGi. Can you confirm this?
Anyway, I think you already convinced me to get a copy of your book
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Marco Ehrentreich wrote:
There's just a simple question left... The feature you mentioned to wrap 3rd party libraries into OSGi bundles reminds me again of the NetBeans module system. In NetBeans you have to/you should package each library JAR inside its own module in order to make it manageable with the correct version and meta data.
Craig Walls wrote:
Which prompts me to make this statement: You don't have to convert all of your 3rd party JAR files into bundles...it's probably a good idea in general, but it's not strictly required. What you can do instead is embed a non-OSGi JAR file within a bundle that depends on it. For example, let's say that I've built an OSGi-based application that has several bundles in it, and out of all of those bundles only one of them depends on Lucene. In that case, I *could* just go ahead and embed Lucene JARs within the one bundle that needs it. I'll miss out on some of the ability to update Lucene without rebuilding and redeploying that bundle, but maybe that's okay.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:We deploy 1. to Tomcat, then the web extender needs to deploy 2. to WEB-INF/lib and 3. to WEB-INF/classes, right? Because the application will not work if there are no libs and required classes.
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:
1. Spring-DM manages to make Tomcat/Jetty running in an OSGi framework environment.
2. When using a web application, we don't access Tomcat/Jetty directly, but we access via Spring-DM which it will delegate HTTP requests to the managed servlet container (Tomcat/Jetty) - by managed I mean managed by Spring-DM.
3. At run-time, Spring-DM links dependencies that the WAR needs, so it can access libs/classes specified in META-INF/MANIFEST.MF even though they aren't in WEB-INF/lib or WEB-INF/classes.
1. Who does manage HTTP Sessions? Spring-DM or a servlet container?
2. Does Spring-DM also support EAR (EJB + WAR)?
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
Marco Ehrentreich wrote:are there modified versions of Tomcat/Jetty to run it inside an OSGi container? To me it's still unclear what impact OSGi has on a servlet container running on top of an OSGi container
Does this work transparently? Does it have an impact on the configuration, performance, security etc. of the servlet container?
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Marco Ehrentreich wrote:I guess, I'll just have to give it a try myself instead of asking you for every detail
![]()
Ivano Pagano wrote:
Marco Ehrentreich wrote:I guess, I'll just have to give it a try myself instead of asking you for every detail
![]()
In the end it was a good thing! For example I understood a good deal better all the web-app deployment stuff thanks to your detailed questions and Craig clear answers.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:
Ivano Pagano wrote:
Marco Ehrentreich wrote:I guess, I'll just have to give it a try myself instead of asking you for every detail
![]()
In the end it was a good thing! For example I understood a good deal better all the web-app deployment stuff thanks to your detailed questions and Craig clear answers.
I agree, it's a good thing to ask questions.
I think no need to worry too much, if someone answered your questions, he just liked or wanted to answer.
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
By all means...ask away! I'm doing my best to respond to all of the questions asked this week. Even if I don't know the answer, I'll at least respond to say that I read your question, but that I am unable to answer.
Consider Paul's rocket mass heater. |