Verify everything on this screen!

Choosing the bean class, the home interface, and the component interface is a permanent decision! Once you’re done with the rest of the bean wizard, and the deployment descriptor is created, you’re stuck with it. If you accidentally mix up the home and component interfaces, your bean won’t work. In the RI, it won’t even deploy (some servers let you deploy structurally bad beans, which means they blow up at runtime, but the RI won’t even let you in the server door).

Be sure you have the following settings:

Enterprise Bean Class: headfirst.AdviceBean

Remote Home Interface: headfirst.AdviceHome

Remote Interface: headfirst.Advice

Click NEXT

image with no caption

Be sure your screen looks just like this before you hit the Next > button!

Get Head First EJB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.