Previous Next Contents


Session Bean

The session bean wizard creates the Java code and other files needed to implement a session bean.

Related Topic

Specify Base Name and Location
Description
Decide what to name the bean and specify the directory where it is stored.

Properties
Field
Value
Example
Name
Name of the bean.
Bean1
Directory
Directory in which to store the servlet.
C:\nab\apps\HelloWld\

Related Topic

Enterprise Bean Properties
Description
The Enterprise Bean Properties dialog box allows you to specify bean properties and control descriptors.

Properties
Field
Value
Example
Bean Class Name
Implements the methods in the home and remote interface classes.

EntityBean1Bean
Bean Home Interface Name
Defines the methods that enable a client using your application to create and remove session objects.

IEntityBean1Home
Bean Remote Interface Name
Defines a user's access to a bean's methods.

IEntityBean1
Isolation Level
Specifies how much or how little a transaction can see of other, simultaneous interactions with a database.
TRANSACTION_READ_COMMITTED
Run As Mode
Defines the identity a bean uses during execution and how a bean identifies its user to other beans or resources. Most commonly, this value is Client, which means that a bean or its methods are executed using the client's identity.
CLIENT_IDENTITY
Transaction Attribute
Specifies when a bean needs to begin a transaction.
TX_MANDATORY

Related Topic

Session Bean Properties
Description
Specify the properties of the session bean including whether it is stateless or stateful and its session timeout in seconds.

Properties
Field
Description
Stateless
Stateless beans encapsulate temporary pieces of business logic needed for a limited time for a specific client.
Stateful
Stateful beans preserve information and values between clients.
Session Timeout
Indicates how long the EJB can exist without being accessed. When the timeout value is reached, the EJB is removed.


Finish
Description
Add a table to the data model.

Properties
Field
Value
Example
Driver
Database driver type.
ODBC
Data Sources
Name of the data source.
DataSource
User name
User ID required by the data source.
ksample
Password
User password required by the data source.
ksample

Related Topic
 

© Copyright 1999 Netscape Communications Corp.