FeaturesPluginsDocs & SupportCommunityPartners

CDP J2EE UI Specification: EJB Module Editor (Session EJB)


Author: Jiri Kopsa

$Revision: 1.1 $
$Date: 2005/04/25 13:35:43 $
Changes: available in CVS


Overview

This is specification of a Session EJB section of the EJB Module Editor. It is presented as a mockup interlaced with specification sections (enclosed in a yellow frame).

There are still some unresolved questions.

Specification


SessionEJB1

Overview     

Name (ejb-name): 

Session Type:        Stateless              Statefull

Transaction Type:  Bean                     Container

Validation


1. All fields are required, name has to be a valid identifier.

Notes


1. Change of the ejb name should invoke a refactoring feature, that changes the ejb-name in all references within a module (or enterprise application).


EJB Implementation and Interfaces

Bean class: 

Local Interface
Component: 

Home:

Remote interface
Component:
Home:


 

Notes


1. Change classes button invokes a modal dialog, where exposure (interfaces - local/remote/both), packages and class names can be specified (basicly the same design as in the view). When the dialog is confirmed, changes are reflected to java files and the deployment descriptor is saved - it probably invokes refactoring action.

Validation


The validation is done in the "Change Classes" dialog.
The class names (including packages) must be a valid class name.



Bean Environment

EJB References

Reference Name
Linked Enterprise Bean
Interface
Description
Entity1EB
Module1.jar#Entity1
local

FooSessionSB
MyModule#FooSessionSB
remote


Components

1. Add button, opens the "Add EJB Reference dialog".
2. Remove button, removes selected ejb reference.
3. Linked Enterprise Bean should contain project name and display-name if possible (i.e. jar file name and ejb-name should be translated).

Behaviour

All the columns except Description are uneditable.

Notes


1. Type and inteface classes (values needed for ejb-jar.xml) should be determined from the referenced EJB.

Add EJB Reference dialog

|----------------------------------------------------------|
| Add EJB Reference |
|----------------------------------------------------------|
| |
| Choose Enterprise JavaBean: |
| |
| |------------------------------------------------------| |
| |[-] Module1Ejb |^| |
| | [-] MySessionEJB | | |
| | [-] Customer | | |
| |[+] Module2Ejb | | |
| | |v| |
| |------------------------------------------------------| |
| |
| Reference Name: |SessionEJB1 | |
| |
| Referenced Interface: (o) Local (o) Remote |
| |
| |
| [ OK ] [ Cancel ] |
| |
|----------------------------------------------------------|
Modules tree: All opened EJB Module projects and their Enterprise Beans will be shown (only Session Beans and Entity Beans, no childs of EJBs, no other nodes). The tree is using display-names if they are available.
Reference name
editable text field - defaults to an ejb name of selected Enterprise Bean.
Behaviour: Only available interfaces of the selected bean should be enabled!
Validation: Reference name is required and an enterprise bean has to be selected.


Environment entries

Entry name
Entry type
Entry value
Description
param1
java.lang.String very nice string



Resource references

Name
Resource type
Authentication Shareable Description
DataSource1

MailSession1



Resource environment references

Name
Resource type
Description
Topic1

Topic2



Security role references

Reference name
Linked role
Description
admin
HRdepartmentAdmin



Details


Notes


The content of this section is equal to its counterpart in EJB Module editor specification.


Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Open ESB - The Open Enterprise Service Bus Powered by