O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Q&A

Q1:How many Java classes and interfaces must I write to create an EJB?
A1: The EJB writer must define a remote (or business) interface, a home interface, and the bean implementation itself.
Q2:Why does an EJB run inside a container?
A2: The container provides many services to the EJB, including distribution, lifecycle, naming/registration, transaction management, security/authentication, and persistence. If the container did not exist, you would have to write all the code to interact with these services yourself.
Q3:What issues surround passing an object as part of a remote method call?
A3: To be passed as an argument or return type, an object must be either serializable or remote. If it is neither of these, an error will occur at runtime. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required