org.hd.d.pg2k.svrCore
Class JNDIUtils

java.lang.Object
  extended by org.hd.d.pg2k.svrCore.JNDIUtils

public final class JNDIUtils
extends java.lang.Object

This holds some JNDI utilities.


Constructor Summary
JNDIUtils()
           
 
Method Summary
static java.lang.Object getObjref(java.lang.String shortName)
          Looks up an ejb name with an without a java:comp/env/ prefix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIUtils

public JNDIUtils()
Method Detail

getObjref

public static java.lang.Object getObjref(java.lang.String shortName)
                                  throws javax.naming.NamingException
Looks up an ejb name with an without a java:comp/env/ prefix. This hides differences in behaviour between (for example), Sun's 1.3 beta RI which uses names with the prefix throughout, and JBoss 2.2.1 WAR and command-line client access which does not, whereas inter-bean access does!

This returns a (non-null) object reference suitable for narrowing given a short name such as ejb/MyBean.

Throws:
javax.naming.NamingException

DHD Multimedia Gallery V1.60.69

Copyright (c) 1996-2012, Damon Hart-Davis. All rights reserved.