I recently was fascinated by a migration scheme presented by the Talend http://coders.talend.com/ (I guess) via talk record here and presentation from the talk made by Andrei Shakirin. I'va seen a lot publications made by his colleague Christian Schneider as well.
And, of course, the part of the subject matter is Christian's blueprint-maven-plugin. The presentation linked above says how it is possible to continuously deploy same code base to either common Java EE container like Tomcat and to OSGi container like Karaf which is exactly what I am interested in (not Tomcat but Wildfly or Glassfish for instance) So, I wonder:
- How blueprint-maven-plugin handles
@Stateful
,@Stateless
annotations and@ApplicationScoped
,@SessionScoped
,@RequestScoped
etc. on beans while producing blueprint file - Also, say I have a new code to write which would use CDI and I want that to be also deployable to Karaf. How should I then write that piece? Should I avoid @Stateful, @Stateless annotations ?
- How those annotations (if they for any reason irrelevant for the case when I deploy to OSGi) would be interpreted by that OSGi container (Karaf) since those annotations DO present in the code ?