Questions for the November edition of the http://airhacks.io show:
- Question about ejb scheduler vs java ee batch processing. What are pros and cons when using batch processing over ejb scheduler ? Marek
- Question about multi datasource and EJB. What is the best way to deal with EJBs
which need to use a specific database for caller/user? Should I use
Interceptors? Should I use injection with request scoped? Wesley - Statement: "You forgot to say one advantage of Spring over JEE. Spring you can deploy on any container." Mauricio
- 'How do you manage deployed microservices (status, healthchecks, restarting) locally and on servers?' Tomek
- 'How do you use Docker (what setup) locally and on servers? Tomek
- Does JSF play well with JavaScript frameworks? [Edward]
- Why It Is Impossible To Automatically Handle javax.persistence.OptimisticLockException? "...I had even more finding on optimisticLockException. I had encounter this
exception and my solution was pretty straight forward which was just retry and
it works fine with my design and the data were good. The catch is, recently I added a new table which has a relationship to the row
which was throwing the optimisticLockException. I noticed that the entry in the second table was not created because of this exception. However the record data consistency was maintained because of the retry. But I loose an important
information in my related table. Does anyone have suggestion on what to do with this kind of scenario?..." [Anuj] - can you share some updates on how to do high availability JEE apps in light of
JEE7 and tackling session stored data Ahmed
Problem of EJB3.2/ EE7
1.High Level Transaction -- Spring is better than EJB .
2. Inheritance support --- EJB is not support Inheritance but spring supports this.
3. Declarative Transaction ---EJB transaction not good but spring is very good .
4. Need Application server --- EJB doesn't run on lightweight web server like tomcat, Pivotal TC Server etc. but spring do this
5. Deployment issue ----Due to the variations in the EJB containers supported by an application server
, it is often challenging to deploy a JEE application into a different application server.
6.Interceptors ---Implementation of spring-aop with AspectJ is more easier thanEJB interceptors
7. App Server support --- EJB not support all server (webspere, weblogic,jboss,tomcat)
Exp : one ejb app develop in glassfish/jboss then can not redeploy another java ee server .
As a result , Financial app perspective -- from up to 7 points spring is scalable over ejb .