org.objectweb.jonas.resource.Rar Class Reference

Collaboration diagram for org.objectweb.jonas.resource.Rar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Rar ()
 Rar (Context ctx, String jDom, String jServ, ResourceWorkManager wrkMgr, ResourceBootstrapContext btCtx)
Context processRar () throws Exception
void unRegister () throws Exception
Object getConfigObj (String jndiName)
ConnectorDesc getConnectorDesc ()
void setConnectorDesc (ConnectorDesc cd)
String getXmlContent ()
JonasConnectorDesc getJonasConnectorDesc ()
void setJonasConnectorDesc (JonasConnectorDesc jcd)
Object createFactory (String jndiName, String rarObjectName, int factoryOffset, String factoryType, ConnectorDesc conn, JonasConnectorDesc jConn) throws Exception

Static Public Member Functions

String buildModuleName (String rarFileName)
void addDefaultAS (String jndiName)
String getDefaultAS ()
void removeDefaultAS (String jndiName)
ConnectorDesc getConnectorDesc (String jndiName)
JonasConnectorDesc getJonasConnectorDesc (String jndiName)
Rar getRar (String jndiName)
Object getResourceObject (String jndiName)

Static Public Attributes

Hashtable fileName2RA = new Hashtable()
Hashtable jndiName2RA = new Hashtable()

Package Attributes

ResourceUtility ru = null

Detailed Description

Rar object
Author:
Eric Hardesty Contributor(s):

Definition at line 99 of file Rar.java.


Constructor & Destructor Documentation

org.objectweb.jonas.resource.Rar.Rar  ) 
 

  • Get the loggers
  • Get the global jndi context
  • Get the list of the resource adapters. The list is reachable in the
  • context parameter under the name RESOURCE_LIST.
  • Get the transaction manager into the jndi
  • Set the XML validation property

Definition at line 258 of file Rar.java.

org.objectweb.jonas.resource.Rar.Rar Context  ctx,
String  jDom,
String  jServ,
ResourceWorkManager  wrkMgr,
ResourceBootstrapContext  btCtx
 

  • Get the loggers
  • Get the global jndi context
  • Get the list of the resource adapters. The list is reachable in the
  • context parameter under the name RESOURCE_LIST.
  • Get the transaction manager into the jndi
  • Set the XML validation property

Definition at line 285 of file Rar.java.

References org.objectweb.jonas.jtm.TransactionService.getTransactionManager(), and org.objectweb.jonas.service.ServiceManager.getTransactionService().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas.resource.Rar.addDefaultAS String  jndiName  )  [static]
 

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

Parameters:
jndiName jndi name to add

Definition at line 1263 of file Rar.java.

String org.objectweb.jonas.resource.Rar.buildModuleName String  rarFileName  )  [static]
 

Parameters:
rarFileName String of rar file
Returns:
String of module name

Definition at line 1067 of file Rar.java.

Object org.objectweb.jonas.resource.Rar.createFactory String  jndiName,
String  rarObjectName,
int  factoryOffset,
String  factoryType,
ConnectorDesc  conn,
JonasConnectorDesc  jConn
throws Exception
 

Create the factory specified

Parameters:
jndiName name to bind the factory
rarObjectName unique name to match rar
factoryOffset factory offset in the to create
factoryType factory type to create
conn ConnectionDesc object to use for creation
jConn JonasConnectionDesc object to use for creation
Returns:
Object factory created
Exceptions:
Exception if an error occurs

Can currently assume Basic Password support since the RAR must have already been deployed correctly

Needed if a 1.5 rar and ResourceAdapterAssociation is implemented

Definition at line 1097 of file Rar.java.

References org.objectweb.jonas.resource.ResourceUtility.buildConfigProperty(), org.objectweb.jonas.resource.ResourceUtility.configurePoolParams(), org.objectweb.jonas.resource.ResourceUtility.createConnectionManager(), org.objectweb.jonas_rar.deployment.api.ConnectionDefinitionDesc.getConfigPropertyList(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getConfigPropertyList(), org.objectweb.jonas_rar.deployment.api.OutboundResourceadapterDesc.getConnectionDefinitionList(), org.objectweb.jonas_rar.deployment.api.ConnectionDefinitionDesc.getId(), org.objectweb.jonas.resource.ResourceUtility.getJcaMcfName(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getJdbcConnParamsDesc(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getJonasConfigPropertyList(), org.objectweb.jonas.resource.ResourceUtility.getJonasXML(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getLogEnabled(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getLogTopic(), org.objectweb.jonas_rar.deployment.api.ConnectionDefinitionDesc.getManagedconnectionfactoryClass(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getManagedconnectionfactoryClass(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getOutboundResourceadapterDesc(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getPoolParamsDesc(), org.objectweb.jonas.jtm.TransactionService.getTransactionManager(), org.objectweb.jonas.service.ServiceManager.getTransactionService(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getTransactionSupport(), org.objectweb.jonas.resource.ResourceUtility.JAO, org.objectweb.jonas.resource.ResourceUtility.JAS, org.objectweb.jonas.resource.ResourceUtility.JCD, org.objectweb.jonas.resource.ResourceUtility.processMCF(), and org.objectweb.jonas.resource.ResourceUtility.processSetters().

Referenced by org.objectweb.jonas.resource.ResourceObjectJNDIHandler.getObjectInstance().

Here is the call graph for this function:

Object org.objectweb.jonas.resource.Rar.getConfigObj String  jndiName  ) 
 

get the ConfigObj matching the jndiname specified

Parameters:
jndiName String of jndi name
Returns:
Object ConfigObj associated with the jndi name

Definition at line 924 of file Rar.java.

ConnectorDesc org.objectweb.jonas.resource.Rar.getConnectorDesc String  jndiName  )  [static]
 

get the RAR ConnectorDesc object matching the jndiname

Parameters:
jndiName the jndiname to lookup
Returns:
ConnectorDesc matching ConnectorDesc

Definition at line 1298 of file Rar.java.

References org.objectweb.jonas.resource.Rar.getConnectorDesc().

Here is the call graph for this function:

ConnectorDesc org.objectweb.jonas.resource.Rar.getConnectorDesc  ) 
 

get the ResourceAdapter Connector object for this Rar

Returns:
ConnectorDesc associated resource adapter connector object

Definition at line 936 of file Rar.java.

Referenced by org.objectweb.jonas.resource.Rar.getConnectorDesc().

String org.objectweb.jonas.resource.Rar.getDefaultAS  )  [static]
 

return the current default ActivationSpec

Returns:
String default ActivationSpec name

Definition at line 1271 of file Rar.java.

JonasConnectorDesc org.objectweb.jonas.resource.Rar.getJonasConnectorDesc String  jndiName  )  [static]
 

get the RAR JonasConnectorDesc object matching the jndiname

Parameters:
jndiName the jndiname to lookup
Returns:
JonasConnectorDesc matching JonasConnectorDesc

Definition at line 1314 of file Rar.java.

References org.objectweb.jonas.resource.Rar.getJonasConnectorDesc().

Here is the call graph for this function:

JonasConnectorDesc org.objectweb.jonas.resource.Rar.getJonasConnectorDesc  ) 
 

get the JonasConnector object for this Rar

Returns:
JonasConnectorDesc associated JonasConnector

Definition at line 963 of file Rar.java.

Referenced by org.objectweb.jonas.resource.Rar.getJonasConnectorDesc().

Rar org.objectweb.jonas.resource.Rar.getRar String  jndiName  )  [static]
 

get the Rar matching the jndiNname will be used in EJB container to deploy an MDB

Parameters:
jndiName jndi name to lookup
Returns:
Rar Rar object for the specified jndi name

Definition at line 1330 of file Rar.java.

Object org.objectweb.jonas.resource.Rar.getResourceObject String  jndiName  )  [static]
 

get the ResourceAdapter matching the jndiName will be used in ResourceObjectJNDIHandler class at lookup time

Parameters:
jndiName to lookup ResourceObject
Returns:
Object resourceObject corresponding to jndiName

Definition at line 1343 of file Rar.java.

References org.objectweb.jonas.resource.Rar.getFactory().

Here is the call graph for this function:

String org.objectweb.jonas.resource.Rar.getXmlContent  ) 
 

get the Xml Content for this Rar

Returns:
String Xml content of this RAR

Definition at line 954 of file Rar.java.

Context org.objectweb.jonas.resource.Rar.processRar  )  throws Exception
 

Process the resource adapter. This Resource Adapter is configured via xml files in the rar file

Definition at line 360 of file Rar.java.

References org.objectweb.jonas.resource.ResourceUtility.buildConfigProperty(), org.objectweb.jonas.resource.ResourceUtility.configurePoolParams(), org.objectweb.jonas.resource.ResourceUtility.createConnectionManager(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getAdminobjectList(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getAuthenticationMechanismList(), org.objectweb.jonas_rar.deployment.api.AuthenticationMechanismDesc.getAuthenticationMechanismType(), org.objectweb.jonas_rar.deployment.api.AdminobjectDesc.getConfigPropertyList(), org.objectweb.jonas_rar.deployment.api.ConnectionDefinitionDesc.getConfigPropertyList(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getConfigPropertyList(), org.objectweb.jonas_rar.deployment.api.OutboundResourceadapterDesc.getConnectionDefinitionList(), org.objectweb.jonas_rar.deployment.api.RarDeploymentDesc.getConnectorDesc(), org.objectweb.jonas_rar.deployment.api.AdminobjectDesc.getId(), org.objectweb.jonas_rar.deployment.api.MessagelistenerDesc.getId(), org.objectweb.jonas_rar.deployment.api.ConnectionDefinitionDesc.getId(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getInboundResourceadapterDesc(), org.objectweb.jonas.resource.ResourceUtility.getJcaMcfName(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getJdbcConnParamsDesc(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getJndiName(), org.objectweb.jonas_rar.deployment.api.JonasAdminobjectDesc.getJonasConfigPropertyList(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getJonasConfigPropertyList(), org.objectweb.jonas_rar.deployment.api.RarDeploymentDesc.getJonasConnectorDesc(), org.objectweb.jonas.resource.ResourceUtility.getJonasXML(), org.objectweb.jonas_rar.deployment.api.RarDeploymentDesc.getJOnASXmlContent(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getLogEnabled(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getLogTopic(), org.objectweb.jonas_rar.deployment.api.ConnectionDefinitionDesc.getManagedconnectionfactoryClass(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getManagedconnectionfactoryClass(), org.objectweb.jonas_rar.deployment.api.InboundResourceadapterDesc.getMessageadapterDesc(), org.objectweb.jonas_rar.deployment.api.MessageadapterDesc.getMessagelistenerList(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getOutboundResourceadapterDesc(), org.objectweb.jonas_rar.deployment.api.JonasConnectionDefinitionDesc.getPoolParamsDesc(), org.objectweb.jonas_rar.deployment.api.OutboundResourceadapterDesc.getTransactionSupport(), org.objectweb.jonas_rar.deployment.api.ResourceadapterDesc.getTransactionSupport(), org.objectweb.jonas_rar.deployment.api.RarDeploymentDesc.getXmlContent(), org.objectweb.jonas.resource.ResourceUtility.processMCF(), org.objectweb.jonas.resource.ResourceUtility.processSetters(), org.objectweb.jonas.resource.ResourceUtility.registerMBean(), and org.objectweb.jonas.resource.ResourceWorkManager.setInited().

Referenced by org.objectweb.jonas.resource.ResourceServiceImpl.createResourceAdapter().

Here is the call graph for this function:

void org.objectweb.jonas.resource.Rar.removeDefaultAS String  jndiName  )  [static]
 

remove the specified jndiName from the default AS list

Parameters:
jndiName jndi name to remove

Definition at line 1285 of file Rar.java.

void org.objectweb.jonas.resource.Rar.setConnectorDesc ConnectorDesc  cd  ) 
 

set the ResourceAdapter Connector object for this Rar

Parameters:
cd ConnectorDesc to associate with

Definition at line 945 of file Rar.java.

void org.objectweb.jonas.resource.Rar.setJonasConnectorDesc JonasConnectorDesc  jcd  ) 
 

set the JonasConnector object for this Rar

Parameters:
jcd JonasConnectorDesc to associate with

Definition at line 972 of file Rar.java.

void org.objectweb.jonas.resource.Rar.unRegister  )  throws Exception
 

Unregister the resource adapter.

Exceptions:
Exception thrown

Definition at line 799 of file Rar.java.

Referenced by org.objectweb.jonas.resource.ResourceServiceImpl.doStop(), and org.objectweb.jonas.resource.ResourceServiceImpl.unRegisterRar().


Member Data Documentation

Hashtable org.objectweb.jonas.resource.Rar.fileName2RA = new Hashtable() [static]
 

Hashtable mapping a filename to an RAR object

Definition at line 206 of file Rar.java.

Referenced by org.objectweb.jonas.resource.ResourceServiceImpl.createResourceAdapter(), org.objectweb.jonas.resource.ResourceServiceImpl.doStop(), org.objectweb.jonas.resource.ResourceServiceImpl.getDeployedRars(), and org.objectweb.jonas.resource.ResourceServiceImpl.unRegisterRar().

Hashtable org.objectweb.jonas.resource.Rar.jndiName2RA = new Hashtable() [static]
 

These hashtables associate an RAR with other objects

Definition at line 210 of file Rar.java.

Referenced by org.objectweb.jonas.resource.ResourceServiceImpl.createResourceAdapter(), and org.objectweb.jonas.resource.ResourceServiceImpl.unRegisterRar().

ResourceUtility org.objectweb.jonas.resource.Rar.ru = null [package]
 

Resource Utility factory

Definition at line 248 of file Rar.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:27 2005 for JOnAS by  doxygen 1.3.9.1