How the EJB designer names EJB files You will see the files the EJB designer has generated for this bean. 4 Within the inspector, change the name of the bean to a name of your choosing. The files in the project pane are renamed to reflect the name change. How the EJB designer names EJB files The names of the files JBuilder generates when you use the EJB designer to create enterprise beans varies depending on the type of enterprise bean you are creating. In JBuilder, EJB 2.0 session beans are remote by default and EJB 2.0 entity beans are local by default. Therefore, the EJB designer generates a remote home interface for a 2.0 session bean and a local home interface for a 2.0 entity bean. In each case the name of the home interface, whether remote for a session bean or local for an entity bean, will be Home. Likewise, the interface that declares the business methods is the remote interface for a session bean and the local interface for an entity bean. For example, if you decide to generate both the local and remote interfaces for an EJB 2.0 session bean named Component, these are the files the EJB designer generates for you: ComponentHome the remote home interface ComponentBean the bean class Component the remote interface ComponentLocalHome the local home interface ComponentLocal the local interface If you do the same thing for an EJB 2.0 entity bean with the same name of Component, these are the files the EJB designer generates for you: ComponentHome the local home interface ComponentBean the bean class Component the local interface ComponentRemoteHome the remote home interface ComponentRemote the remote interface For an EJB 1.1 session or entity bean with the same name of Component, these are the files the EJB designer generates for you: ComponentHome the remote home interface ComponentBean the bean class Component the remote interface Viewing a bean s source code At any time as you work within the EJB designer, you can double-click a generated file (.java) in the project pane to see its source code. Or you can right-click the bean representation in the EJB designer and choose View Bean Source in the context menu Chapter 4: Working with the EJB designer 25
Every our account comes with web mail client, free virus scanner, free anti-spam tool, free web templates and much more. For complete list of all our virtual web hosting features check our Virtual Web Hosting section.
This entry was posted
on Tuesday, September 18th, 2007 at 9:22 am and is filed under JBuilder Blog.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.