1. J2EE 4-tier architecture
1. building blocks of J2EE are:
- Java Server Pages (JSP)
- Enterprise Java Beans (EJB)
- Java Messaging Service (JMS)
- Java Database Connectivity (JDBC)
- Java Naming and Directory Interface (JNDI)
- Java Mail
- Extensible Markup Language (XML)
3. EJB local vs remote interfaces.
in distributed applications, Specifically, these are the cases where the client uses different JVM (Java Virtual Machine).
Adv: Internally, J2EE uses the Java Remote Method Invocation over Internet Inter-ORB Protocol (RMI-IIOP — see Resources) to enable remote. it also generates a large amount of overhead, with a corresponding performance hit as stubs are referenced, parameters go through the marshaling process, and objects are tossed around the network.
[Remote: Different VMs, requires JNDI]
4. EJB Types
- Session (Sateful and Stateless)
- Message Driven
- Entity Beans
6. Web Services
Java API Spec for RESTful Web Services: JAX-RS/JAX-RS2 https://jax-rs-spec.java.net/
Remote interface: http://www.conceptgo.com/gsejb/ov06.html
What’s new in JAX-RS 2.0? http://www.infoq.com/news/2013/06/Whats-New-in-JAX-RS-2.0