Java Components For Server Development
Java Components For Server Development
Server Development
Java Server Pages
Servlets
Enterprise JavaBeans
Mark Hapner
Sr. Staff Engineer
Java Software
Agenda
• Component overview
• Service model overview
• Demo
• JSP/Servlet walk-through
• Session EJB walk-through
• Entity EJB walk-though (if time)
The Presenters
• Implement a service
– Locate and present content
– Compose and execute transactions
• Shield clients from enterprise
• Shield developers from plumbing
• Are hosted by a ‘server’
• Run in the middle-tier
• Standard packaging and deployment
• Open Architecture
Clients
• Web Browsers
– HTML
– XML
– Java (Plug-in + Applet + XML)
• Others
– Java program
– VB program
– Office app
– Notes client
Client Protocols
• Abstracts
• Aggregates
• Transforms
• Sequences
• Authenticates and Authorizes
• Communicates
• Presents
Middle-tier Server
• Introduced at JavaOne 98
• Version 0.92 in public review
• Version 1.0 available 1Q99
Servlets
• Introduced 1995
• Version 2.1 Spec available now
• Version 2.1 JSDK (ServletRunner) early
access 4Q98, FCS 1Q99
EJB
• Session EJB
– A task or tool
– Part of the client
– Non-persistent
• Entity EJB
– A business entity shared by clients
– Persistent
Session EJB
• Stateless
– No state between methods
– All instances are equivalent
– Created and deleted by server
• Stateful
– State held across methods and transactions
– Created, used and deleted by a client
– Lifetime bounded by timeout
Entity EJB