This section describes features and functionality unique to the JRun EJB architecture.
The JRun EJB architecture features a series of interceptors, each of which manages a specific area, as the following figure shows:
One of the main JRun EJB features is stubless deployment. There is no JRun EJB deploy tool. You compile the EJBs, optionally package them in a JAR file, copy the compiled EJB interfaces to the client, and define this location to the client classpath. The JRun instance proxy handles the functionality formerly managed by the stubs.
JRun provides a flexible EJB deployment model that makes it easy to develop and deploy beans. The following table describes the features of this deployment model:
In addition to the standard setting in the ejb-jar.xml file, JRun lets you make additional JRun-specific settings in the JRun EJB deployment descriptor. Most J2EE application servers include a server-specific descriptor; the JRun EJB deployment descriptor is named jrun-ejb-jar.xml. The jrun-ejb-jar.xml file includes the following types of information:
For complete information on the jrun-ejb-jar.xml file, see the online descriptor documentation, available from the JRun documentation home page.
When running an EJB in a JRun server that is part of a cluster, JRun automatically enables load balancing and failover, ensuring high performance and reliability.
JRun enables EJB clustering by default. To disable EJB clustering, set the cluster-home and cluster-object elements in the jrun-ejb-jar.xml file to false.
Note: EJB clustering is not enabled for local beans.
For more information see JRun Administrator's Guide.
JRun provides integration with XDoclet, an open source tool that generates code and deployment descriptors for EJBs, web applications, and JSP tag libraries. Many application servers are adding support for XDoclet, and EJBs that are written using basic XDoclet tags are portable across servers.
For EJBs specifically, you can use XDoclet to do the following tasks:
To control the processing performed by XDoclet, you use a combination of jrun.xml attributes and JavaDoc-style comments in the bean implementation.
For more information on using XDoclet to develop EJBs, see Chapter 14, "EJB Programming Techniques".
The JRun Enterprise Deployment Wizard streamlines the process of developing and deploying EJBs. Using its Swing-based graphical user interface, you can create any type of EJB, or edit the deployment descriptor of existing EJBs, package them into JAR files, and deploy them to JRun. In particular, the object-relational (OR) mapping capabilities of the Enterprise Deployment Wizard let you streamline the entity bean development process.
The Enterprise Deployment Wizard runs as a stand-alone tool, or as a plug-in on top of Borland JBuilder, Sun Forte, or IntelliJ IDEA.
To start the Enterprise Deployment Wizard, run jrunwizard, found in the jrun_root/bin directory.
For more details, see the Enterprise Deployment Wizard online Help.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/jrun/4/Programmers_Guide/introejb5.htm
Comments
superna said on Feb 27, 2003 at 1:36 AM : superna said on Feb 27, 2003 at 2:08 AM :