EjbRefpublic class EjbRef extends Reference Represents a reference address to an EJB. |
Fields Summary |
---|
public static final String | DEFAULT_FACTORYDefault factory for this reference. | public static final String | TYPEEJB type address type. | public static final String | REMOTERemote interface classname address type. | public static final String | LINKLink address type. |
Constructors Summary |
---|
public EjbRef(String ejbType, String home, String remote, String link)EJB Reference.
// ----------------------------------------------------------- Constructors
this(ejbType, home, remote, link, null, null);
| public EjbRef(String ejbType, String home, String remote, String link, String factory, String factoryLocation)EJB Reference.
super(home, factory, factoryLocation);
StringRefAddr refAddr = null;
if (ejbType != null) {
refAddr = new StringRefAddr(TYPE, ejbType);
add(refAddr);
}
if (remote != null) {
refAddr = new StringRefAddr(REMOTE, remote);
add(refAddr);
}
if (link != null) {
refAddr = new StringRefAddr(LINK, link);
add(refAddr);
}
|
Methods Summary |
---|
public java.lang.String | getFactoryClassName()Retrieves the class name of the factory of the object to which this
reference refers.
String factory = super.getFactoryClassName();
if (factory != null) {
return factory;
} else {
factory = System.getProperty(Context.OBJECT_FACTORIES);
if (factory != null) {
return null;
} else {
return DEFAULT_FACTORY;
}
}
|
|