APIs for advanced EJB tool development

Several APIs are made available for developers who are creating third-party development tools.

If you are simply developing your own J2EE or EJB applications and are not developing third party application development tools, you will not need to use these APIs, and you can continue working with the user interface for your application development.

Javadoc for these public APIs is included in the classes.

The following operations can be programmed to run in a headless or regular workbench:

SelectiveEJBJarImportOperation
This class is used to selectively import enterprise beans from an EJB 1.1 or EJB 2.0 JAR file into an EJB 1.1 or EJB 2.0 project. An EJB 1.1 bean can be imported into an EJB 1.1 or an EJB 2.0 project. An EJB 2.0 bean can only be imported into an EJB 2.0 project. This operation merges the deployment descriptors, extensions, and bindings, and it imports all the required classes for the selected beans into the new project.
Notes:
  • This operation does not support the import of EJB 1.1 beans from an EJB 2.0 JAR file into an EJB 1.1 project.
  • This operation does not merge any database mappings of the selected beans in the JAR file with the mappings in the destination EJB project.
Examples:
  • SelectiveEJBJarImportOperation op = new SelectiveEJBJarImportOperation(Project 
    sourceEJBproject, List enterpriseBeans, EJBJarFile jarfile);
    op.runOperation();
  • SelectiveEJBJarImportOperation op = new SelectiveEJBJarImportOperation(Project 
    sourceEJBproject, String[] enterpriseBeanNames, EJBJarFile jarfile);
    op.runOperation();
EJBProjectCreationOperation
This class is used to create a J2EE EJB project. An EJBProjectInfo object is needed to create an EJB project.
EJBCreationOperation
This class is used to create session beans and CMP or BMP entity beans

Parameters:

/**
 * @param anEjbCreationInfoProvider IEJBCreationInfoProvider
 * @param anEditModel com.ibm.etools.ejb.ejbproject.EJBEditModel
 * @param anOperationHandler com.ibm.etools.j2ee.operations.IOperationHandler
*/

Example:

EJBCreationOperation op = new EJBCreationOperation(EJBCreationModel 
anEjbCreationModel, EJBEditModel anEditModel, 
IOperationHandler anOperationHandler);
op.run(IProgressMontor monitor)
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.