My colleague told me that using local EJB is not a good idea
I strongly disagree with this. Local the EJB - a good idea really , as they are the ideal type of bean to implement your business logic. The current harvest of EJB beans is very light, so you donβt need to avoid them because of the expected weight severity.
The biggest advantage of these types of beans is probably their automatic transaction management, which will be very useful when working with any database.
, JMS EIS. -, , . , User, , . EJB start\commit\rollback , ( , "Connection" ) , isn ' t.
EJB beans . .
, -, (@RolesAllowed), beans (, ) .
Java EE 6 -, .war( .jar .).
, : GWT Servlet ( , HTTPServlet, RPC) EJB?
, EJB. .
, EJB. , , .
, (.NET, ++ Java- AS, EJB), EJB.
, Corba (IIOP) , , , EJB , Java AS (Application Server), Java SE ( ).
, EJB , . - JNDI, , JBoss, . JBoss AS 7.
EJB Web Service. GWT Servlet , . GWT, /rpc ( GWT) .
Java- - JAX-WS JAX-RS, SOAP resp REST ( EJB btw). JAX-RS Jersey () RestEasy. Java EE 6 , . Java EE 5 JAX-RS , JAX-WS .
JAX-RS , JAX-WS ( , ).
, EJB? , , AS. ( , json/xml - ), . -, , , .
JAX-RS (bean), (-), EJB, -.