|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.resource.internal.Rar
public class Rar
Rar object.
Field Summary | |
---|---|
static String |
CLASS
|
static int |
DEF_EXEC_TIME
|
static int |
DEF_WRK_THREADS
|
static String |
JAO
|
static String |
JAS
|
static String |
JCD
|
static String |
JNDI_NAME
|
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,
TransactionManager txManager,
JmxService jmxService)
- 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)
Configure ActivationSpec |
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 String |
getDefaultAS()
return the current default ActivationSpec |
Object |
getFactory(String jndiname)
|
String |
getInterface(String jndiname)
Get the messagelistenerType |
Vector |
getJndinames()
|
JonasConnectorDesc |
getJonasConnectorDesc()
get the JonasConnector object for this Rar |
ResourceAdapter |
getResourceAdapter()
|
String |
getXmlContent()
get the Xml Content for this Rar |
Context |
processRar(String domainName,
JOnASResourceService rserv)
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 |
setInitialContext(Context context)
|
void |
setJMXService(JmxService jmx)
|
void |
setJonasConnectorDesc(JonasConnectorDesc jcd)
set the JonasConnector object for this Rar |
void |
setTransactionManager(TransactionManager tm)
|
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
Constructor Detail |
---|
public Rar()
public Rar(Context ctx, String jDom, String jServ, ResourceBootstrapContext btCtx, TransactionManager txManager, JmxService jmxService)
Method Detail |
---|
public void setTransactionManager(TransactionManager tm)
tm
- the TransactionManager
to setpublic void setJMXService(JmxService jmx)
jmx
- the JmxService
to setpublic void setInitialContext(Context context)
context
- the initial Context
to setpublic Context processRar(String domainName, JOnASResourceService rserv) 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)
Rar
getInterface
in interface Rar
jndiname
- jndi name of the Rar
public Vector getJndinames()
public ResourceAdapter getResourceAdapter()
getResourceAdapter
in interface Rar
public void configureAS(ActivationSpec as, List acp, List jacp, String jndiname, String ejbName) throws Exception
Rar
configureAS
in interface Rar
as
- ActivationSpec to be configuredacp
- List of activation propertiesjacp
- List of JOnAS activation propertiesjndiname
- String destination desiredejbName
- ejb Name
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 remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |