Presentation is loading. Please wait.

Presentation is loading. Please wait.

Current Topics in Programming Languages Lecture 15_1 George Koutsogiannakis SUMMER 2011 1.

Similar presentations


Presentation on theme: "Current Topics in Programming Languages Lecture 15_1 George Koutsogiannakis SUMMER 2011 1."— Presentation transcript:

1 Current Topics in Programming Languages Lecture 15_1 George Koutsogiannakis SUMMER 2011 1

2 EJB Modules Deployment Deploying an EJB Module There are two ways to deploy an EJB module: As part of an enterprise application. When an EJB module is part of an enterprise application, its enterprise beans can be accessed from external clients and web application modules through its remote interfaces, and by other modules in the enterprise application through its local interfaces. All of the JAR files needed for execution are packaged in the enterprise application's EAR file and the classpath to these JAR files are written in the EJB module's manifest file. This is the most common way of deploying an EJB module. As a stand-alone EJB module. Enterprise beans in a stand-alone EJB modules can only be accessed through their remote interfaces. All of the JAR files needed for execution are packaged in the EJB JAR file itself. 2

3 EJB Modules Deployment There are two commands you can use to deploy an EJB module or an enterprise application: Deploy. This stops the enterprise application, undeploys the application or stand-alone module from the application server, and deploys your local version. Run. Like Deploy, except that for enterprise applications, this command also opens the client module's default URL in the external browser. To deploy an enterprise application: In the Projects window, right-click the enterprise application project and choose Run or Deploy. To deploy a stand-alone EJB module: In the Projects window, right-click the EJB module project and choose Run or Deploy. 3

4 Undeploy You can undeploy an application from the administrative consul of the server. If changes are made to a module, undeploy and redeploy. Deployment can also be accomplished from the administrative consul 4

5 Adding a Module to an Enterprise Application EJB or web application modules can be deployed either by themselves or as a part of an enterprise application. Likewise, Java application clients can be either regular Java desktop applicaitons, or can be full Java EE application client modules. Adding an EJB module, web module, or application client module to an enterprise application lets you further configure the way those modules interact with each other. 5

6 Adding a Module to an Enterprise Application To add an existing module to an enterprise application: Open the module project and the enterprise application project. In the Projects window, right-click the enterprise application node for the Java EE application and choose Add Java EE Module. In the dialog box, select the module and click OK. 6


Download ppt "Current Topics in Programming Languages Lecture 15_1 George Koutsogiannakis SUMMER 2011 1."

Similar presentations


Ads by Google