org.openmdx.kernel.application.deploy.spi
Interface Deployment.Bean

All Superinterfaces:
Configuration, Deployment.AssemblyDescriptor, Deployment.Component, Deployment.Pool
All Known Subinterfaces:
Deployment.MessageDrivenBean, Deployment.SessionBean
All Known Implementing Classes:
BeanDecorator, BeanDeploymentDescriptor, MessageDrivenBeanDecorator, MessageDrivenBeanDeploymentDescriptor, SessionBeanDecorator, SessionBeanDeploymentDescriptor
Enclosing interface:
Deployment

public static interface Deployment.Bean
extends Deployment.Component, Deployment.Pool, Deployment.AssemblyDescriptor

A Java 2 Enterprise Bean


Method Summary
 void deploy(Context containerContext, Context applicationContext, Reference localReference, Reference remoteReference)
          This method deploys the Bean
 String getEjbClass()
          The ejb-classType contains the fully-qualified name of the enterprise bean's class.
 String getJndiName()
          Retrieves the JNDI name that has been configured for this bean in the deployment descriptor.
 String getLocalJndiName()
          Retrieves the local JNDI name that has been configured for this bean in the deployment descriptor.
 
Methods inherited from interface org.openmdx.kernel.application.deploy.spi.Deployment.Component
getName, populate
 
Methods inherited from interface org.openmdx.kernel.application.configuration.Configuration
validate, verify
 
Methods inherited from interface org.openmdx.kernel.application.deploy.spi.Deployment.Pool
getInitialCapacity, getMaximumCapacity, getMaximumWait
 
Methods inherited from interface org.openmdx.kernel.application.deploy.spi.Deployment.AssemblyDescriptor
getContainerTransaction
 

Method Detail

getEjbClass

String getEjbClass()
The ejb-classType contains the fully-qualified name of the enterprise bean's class. It is used by ejb-class elements.

Example:

Returns:
the EJB class name

getLocalJndiName

String getLocalJndiName()
Retrieves the local JNDI name that has been configured for this bean in the deployment descriptor.

Returns:
the local JNDI name

getJndiName

String getJndiName()
Retrieves the JNDI name that has been configured for this bean in the deployment descriptor.

Returns:
the JNDI name

deploy

void deploy(Context containerContext,
            Context applicationContext,
            Reference localReference,
            Reference remoteReference)
            throws NamingException
This method deploys the Bean

Parameters:
containerContext - components are registered in the containerContext in order to be referenced by other components. It's URL for LinkRef's is "openmdx:container".
applicationContext - components may be registered in the applicationContext for application internal link resolutions. It's URL for LinkRef's is "openmdx:application".
localReference - Reference to the EJB's local home
remoteReference - Reference to the EJB's home
Throws:
NamingException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.