IntelliJ Community . J2EEModulesSetup

 
J2EEModulesSetup 

HOME INDEX SEARCH CHANGES GO  

J2EE Support Overview

New generation J2EE support is here! The main features:
  • Each J2EE thing: Web Application, EJB Module, Enterprise Application, J2EE Connector now is represented by IDEA module. (see IDEA Module)
  • Each J2EE module can be
    • created/removed/edited (via specific custom editor)
    • compiled (or, rather, "made" through make process which include Java sources compilation, J2EE archives creation, etc)
    • deployed on the specific application server instance

See also WebLogic integration

How to setup J2EE in Aurora

  • Go to Project Properties/App Server Integration and enable "Generic Application Server"
  • J2EE tab appear in the Project view tool window

J2EE Tool Windows

J2EE Project Tool Windows

  • J2EE Tab in the Project View
    Here displayed an outline of IDEA project as J2EE modules hierarchy
    and J2EE modules can be added/removed/setup. To edit module settings, double click module or use F4(Jump to source).
    IDEA project consists of the:
    • Enterprise Applications, each displaying
      • Link to J2EE Module it contains
    • EJB Modules, each displaying
      • containing EJBs
      • Deployment descriptors
      • EJB classes
      • CMP/CMR fields
      • EJB related methods
    • Web Applications
  • Deployment view
    Here displayed deployment status of all J2EE modules in the project.
    This is also a command center where user can deploy/undeploy J2EE modules on the specific application server.
  • Application Server log
    Output of the application server logs

How to develop J2EE Applications

Create J2EE-specific module.

E.g. to create new EJB Module, go to J2EE View and select 'Add EJB module' under 'EJB Modules' node. J2EE module creation consists of several steps:
  • Location of the IDEA module (.iml) file is being asked.
    This is there your module settings will be stored
  • Module JDK, paths, libraries should be set up. E.g. for the EJB module corresponding jar (e.g. j2ee.jar or weblogic.jar) should be added to the module Libraries
  • J2EE module-specific things should be specified
    E.g. during EJB module creation, EJB version (1.x/2.x), EJB names and path to the EJB deployment descriptor can be set up.
  • At last, application server-specific info can be requested
    E.g. WebLogic integration can be interested in various WebLogic deployment descriptor file names.

Make the IDEA project

All J2EE module Java code compiled into (separate) output directories and J2EE specific archives or directory structures created.
E.g. one can set up EJB module to be compiled into c:\myejb\classes, EJB jar saved in c:\myejb\output\ejb.jar, and exploded directory structure created in c:\myejb\output\autodeploy

Deploy

J2EE Module can be deployed at the specific application server instance.
Go to Deployment View, select J2EE module(s), press Deploy/undeploy and (possibly) specify deployment settings, e.g. for WebLogic server whether to use WebLogic Deployer or auto-deploy feature.

-- AlexeyKudravtsev - 15 Sep 2003

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.