Hi All,
I have a doubt on EJB Home interfaces,And I am new to EJB ,I am refering Headfirst EJB and using Netbean IDE for learning.I am able to create a session bean and remote interface but not able to create Home interface, I also refered
http://www.netbeans.org/files/documents/4/442/J2EE-NBTutorial.pdf and I followed the instruction as said
=============================================================
Creating the ConverterBean Enterprise Bean
The enterprise bean templates automatically create all of the classes and interfaces
necessary for the enterprise bean and register the enterprise bean in the
EJB module's deployment descriptor.
1. In the Projects window, right-click the ConverterApp-EJBModule node
and choose New
→Session Bean.
2. In the EJB Name field, type
Converter. In the Package field, type converter.
Set the bean to be stateless and remote and click Finish.
C
REATING THE CONVERTER BEAN ENTERPRISE B EAN 129
The IDE creates the following classes:
‧
ConverterBean.java. The enterprise bean class. All of the EJB infrastructure
methods are generated automatically and are hidden in a code
fold.
‧
ConverterRemote.java. The remote interface . The remote interface usually
defines the business methods that a client can call. The business methods
are implemented in the enterprise bean code. Because the IDE enforces
best coding practices, it actually registers all of the business methods in a
remote business interface, which the remote interface extends.
‧
ConverterRemoteBusiness.java. The business interface . Presently this
class is empty, but as we add business methods to the bean this class will
be populated.
‧
ConverterRemoteHome.java. The home interface. A home interface
defines the methods that allow a client to create, find, or remove an enterprise
bean.
================================================
but not able to create ConverterRemoteBusiness.java and ConverterRemoteHome.java .