|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.resource.Rar
public class Rar
Rar object
Field Summary | |
---|---|
static String |
CLASS
|
static int |
DEF_EXEC_TIME
|
static int |
DEF_WRK_THREADS
|
static Hashtable |
fileName2RA
Hashtable mapping a filename to an RAR object |
static String |
JAO
|
static String |
JAS
|
static String |
JCD
|
static String |
JNDI_NAME
|
static Hashtable |
jndiName2RA
These hashtables associate an RAR with other objects |
JonasConnectorDesc |
jonasConn
|
String |
jonasXmlContent
|
static String |
LNK_JNDI_NAME
|
static String |
LNK_RAR_FILENAME
|
JonasConnectorDesc |
lnkJonasConn
|
static String |
OBJ_TYPE
|
String |
objectName
|
String |
pathName
|
ConnectorDesc |
raConn
|
static String |
RAR_FILENAME
|
ResourceAdapter |
resAdp
|
static String |
RESOURCE_LIST
|
String |
xmlContent
|
Constructor Summary | |
---|---|
Rar()
- Get the loggers - Get the global jndi context - Get the list of the resource adapters. |
|
Rar(Context ctx,
String jDom,
String jServ,
ResourceBootstrapContext btCtx)
- Get the loggers - Get the global jndi context - Get the list of the resource adapters. |
Method Summary | |
---|---|
static void |
addDefaultAS(String jndiName)
add a default AS to the list, the first one deployed is the default if others are added then they will become default if this one is undeployed |
static String |
buildModuleName(String rarFileName,
String appName)
|
void |
configureAS(ActivationSpec as,
List acp,
List jacp,
String jndiname,
String ejbName)
|
Object |
createFactory(String jndiName,
String rarObjectName,
int factoryOffset,
String factoryType,
ConnectorDesc conn,
JonasConnectorDesc jConn)
Create the factory specified |
Object |
getConfigObj(String jndiName)
get the ConfigObj matching the jndiname specified |
ConnectorDesc |
getConnectorDesc()
get the ResourceAdapter Connector object for this Rar |
static ConnectorDesc |
getConnectorDesc(String jndiName)
get the RAR ConnectorDesc object matching the jndiname |
static String |
getDefaultAS()
return the current default ActivationSpec |
Object |
getFactory(String jndiname)
|
String |
getInterface(String jndiname)
|
Vector |
getJndinames()
|
JonasConnectorDesc |
getJonasConnectorDesc()
get the JonasConnector object for this Rar |
static JonasConnectorDesc |
getJonasConnectorDesc(String jndiName)
get the RAR JonasConnectorDesc object matching the jndiname |
static Rar |
getRar(String jndiName)
get the Rar matching the jndiNname will be used in EJB container to deploy an MDB |
ResourceAdapter |
getResourceAdapter()
|
static Object |
getResourceObject(String jndiName)
get the ResourceAdapter matching the jndiName will be used in ResourceObjectJNDIHandler class at lookup time |
String |
getXmlContent()
get the Xml Content for this Rar |
Context |
processRar(String domainName)
Process the resource adapter. |
static void |
removeDefaultAS(String jndiName)
remove the specified jndiName from the default AS list |
void |
setConnectorDesc(ConnectorDesc cd)
set the ResourceAdapter Connector object for this Rar |
void |
setJonasConnectorDesc(JonasConnectorDesc jcd)
set the JonasConnector object for this Rar |
void |
unRegister(String domainName)
Unregister the resource adapter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLASS
public static final String JNDI_NAME
public static final String RAR_FILENAME
public static final String LNK_JNDI_NAME
public static final String LNK_RAR_FILENAME
public static final String OBJ_TYPE
public static final String RESOURCE_LIST
public static final int DEF_WRK_THREADS
public static final int DEF_EXEC_TIME
public static final String JCD
public static final String JAS
public static final String JAO
public String objectName
public String pathName
public ResourceAdapter resAdp
public ConnectorDesc raConn
public JonasConnectorDesc lnkJonasConn
public JonasConnectorDesc jonasConn
public String xmlContent
public String jonasXmlContent
public static Hashtable fileName2RA
public static Hashtable jndiName2RA
Constructor Detail |
---|
public Rar()
public Rar(Context ctx, String jDom, String jServ, ResourceBootstrapContext btCtx)
Method Detail |
---|
public Context processRar(String domainName) throws Exception
Exception
public void unRegister(String domainName) throws Exception
Exception
- thrownpublic Object getConfigObj(String jndiName)
jndiName
- String of jndi name
public ConnectorDesc getConnectorDesc()
public void setConnectorDesc(ConnectorDesc cd)
cd
- ConnectorDesc to associate withpublic String getXmlContent()
public JonasConnectorDesc getJonasConnectorDesc()
public void setJonasConnectorDesc(JonasConnectorDesc jcd)
jcd
- JonasConnectorDesc to associate withpublic Object getFactory(String jndiname)
public String getInterface(String jndiname)
public Vector getJndinames()
public ResourceAdapter getResourceAdapter()
public void configureAS(ActivationSpec as, List acp, List jacp, String jndiname, String ejbName) throws Exception
Exception
public static String buildModuleName(String rarFileName, String appName)
rarFileName
- String of rar fileappName
- the name of the application
public Object createFactory(String jndiName, String rarObjectName, int factoryOffset, String factoryType, ConnectorDesc conn, JonasConnectorDesc jConn) throws Exception
jndiName
- name to bind the factoryrarObjectName
- unique name to match rarfactoryOffset
- factory offset in the to createfactoryType
- factory type to createconn
- ConnectionDesc object to use for creationjConn
- JonasConnectionDesc object to use for creation
Exception
- if an error occurspublic static void addDefaultAS(String jndiName)
jndiName
- jndi name to addpublic static String getDefaultAS()
public static void removeDefaultAS(String jndiName)
jndiName
- jndi name to removepublic static ConnectorDesc getConnectorDesc(String jndiName)
jndiName
- the jndiname to lookup
public static JonasConnectorDesc getJonasConnectorDesc(String jndiName)
jndiName
- the jndiname to lookup
public static Rar getRar(String jndiName)
jndiName
- jndi name to lookup
public static Object getResourceObject(String jndiName)
jndiName
- to lookup ResourceObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |