org.jboss.ejb
Class EjbUtil

java.lang.Object
  extended byorg.jboss.ejb.EjbUtil

public final class EjbUtil
extends java.lang.Object

Utility methods for resolving ejb-ref and ejb-local-ref within the scope of a deployment.


Constructor Summary
EjbUtil()
           
 
Method Summary
static java.lang.String findEjbLink(MBeanServer (src)  server, DeploymentInfo (src)  di, java.lang.String link)
          Resolves an <ejb-link> target for an <ejb-ref> entry and returns the name of the target in the JNDI tree.
static java.lang.String findLocalEjbLink(MBeanServer (src)  server, DeploymentInfo (src)  di, java.lang.String link)
          Resolves an <ejb-link> target for an <ejb-local-ref> entry and returns the name of the target in the JNDI tree.
static MessageDestinationMetaData (src) findMessageDestination(MBeanServer (src)  server, DeploymentInfo (src)  di, java.lang.String link)
          Resolves a <message-destination> target for a <message-destination-link> entry and returns the name of the target in the JNDI tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbUtil

public EjbUtil()
Method Detail

findEjbLink

public static java.lang.String findEjbLink(MBeanServer (src)  server,
                                           DeploymentInfo (src)  di,
                                           java.lang.String link)
Resolves an <ejb-link> target for an <ejb-ref> entry and returns the name of the target in the JNDI tree.

Parameters:
di - DeploymentInfo
link - Content of the <ejb-link> entry.
Returns:
The JNDI Entry of the target bean; null if no appropriate target could be found.

findLocalEjbLink

public static java.lang.String findLocalEjbLink(MBeanServer (src)  server,
                                                DeploymentInfo (src)  di,
                                                java.lang.String link)
Resolves an <ejb-link> target for an <ejb-local-ref> entry and returns the name of the target in the JNDI tree.

Parameters:
di - DeploymentInfo
link - Content of the <ejb-link> entry.
Returns:
The JNDI Entry of the target bean; null if no appropriate target could be found.

findMessageDestination

public static MessageDestinationMetaData (src)  findMessageDestination(MBeanServer (src)  server,
                                                                DeploymentInfo (src)  di,
                                                                java.lang.String link)
Resolves a <message-destination> target for a <message-destination-link> entry and returns the name of the target in the JNDI tree.

Parameters:
di - DeploymentInfo
link - Content of the <message-driven-link> entry.
Returns:
The JNDI Entry of the target; null if no appropriate target could be found.