LocalTxConnectionMamager Rollbacks
tildahl Jun 19, 2002 10:21 PMmy Castor JCA is being listed under jboss.jca as:
service=RARDeployment,name=Castor
when I click on it I get:
MBean View [JMX RI/1.0]
MBean Name: jboss.jca:service=RARDeployment,name=Castor
MBean Java Class: org.jboss.resource.RARDeployment
Back to Agent View Reload Period in seconds:
--------------------------------------------------------------------------------
MBean description:
Description of a deployed Resource Adapter
--------------------------------------------------------------------------------
List of MBean attributes:
Name Type Access Value
AuthMechType java.lang.String RO BasicPassword
AutoStore java.lang.Boolean RO false
CommonClassPath java.lang.Boolean RO false
Configuration java.lang.String RO file:../server/default/conf/database.xml
DisplayName java.lang.String RO Castor
JndiName java.lang.String RO jdo/Motiva8JDO
LockTimeout java.lang.Integer RO 30
LoggingEnabled java.lang.Boolean RO true
ManagedConnectionFactoryClass java.lang.String RO org.exolab.castor.jdo.connector.CastorManagedConnectionFactory
ReauthenticationSupport java.lang.boolean RO false
TransactionSupport java.lang.Integer RO 1
But when i try to look it up from a client, it doesn't work: I tried to look it up in JNDI as:
java:comp/env/jdo/Motiva8JDO
java:comp/jdo/Motiva8JDO
java:jdo/Motiva8JDO
java:/jdo/Motiva8JDO
jdo/Motiva8JDO
/jdo/Motiva8JDO
I've even played with different names like just Motiva8JDO and stuff like that. No go.
I get errors like:
13:15:40,548 INFO [STDOUT] jdo not bound
javax.naming.NameNotFoundException: jdo not bound
 at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
 at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
 at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
 at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:365)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:437)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:473)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
when I try to look it up. client code just calls new InitialContext() then does the lookup.
ENCLOSED: castor-service.xml and ra.xml
<?xml version="1.0" encoding="UTF-8"?>
 jboss.jca:service=RARDeployer
 jdo/Motiva8JDO
 java:/TransactionManager
 <depends optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Motiva8JDO
 <depends optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
 <config-property>
 <config-property-name>Configuration</config-property-name>
 <config-property-type>java.lang.String</config-property-type>
 <config-property-value>file:../server/default/conf/database.xml</config-property-value>
 </config-property>
 <config-property>
 <config-property-name>JndiName</config-property-name>
 <config-property-type>java.lang.String</config-property-type>
 <config-property-value>jdo/Motiva8JDO</config-property-value>
 </config-property>
 <config-property>
 <config-property-name>LockTimeout</config-property-name>
 <config-property-type>java.lang.Integer</config-property-type>
 <config-property-value>30</config-property-value>
 </config-property>
 <config-property>
 <config-property-name>LoggingEnabled</config-property-name>
 <config-property-type>java.lang.Boolean</config-property-type>
 <config-property-value>true</config-property-value>
 </config-property>
 <config-property>
 <config-property-name>CommonClassPath</config-property-name>
 <config-property-type>java.lang.Boolean</config-property-type>
 <config-property-value>false</config-property-value>
 </config-property>
 <config-property>
 <config-property-name>AutoStore</config-property-name>
 <config-property-type>java.lang.Boolean</config-property-type>
 <config-property-value>false</config-property-value>
 </config-property>
 org.jboss.resource.security.ManyToOnePrincipalMapping
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connector PUBLIC
 '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
 'http://java.sun.com/dtd/connector_1_0.dtd'>
<!--
 Resource adaptor descriptor for using Castor in a managed environment.
-->
 <display-name>Castor</display-name>
 <vendor-name>Exolab</vendor-name>
 <spec-version>1.0</spec-version>
 <eis-type>JDO</eis-type>
 1.0
 See http://castor.exolab.org for terms and license conditions.
 <license-required>false</license-required>
 <managedconnectionfactory-class>org.exolab.castor.jdo.connector.CastorManagedConnectionFactory</managedconnectionfactory-class>
 <connectionfactory-interface>org.exolab.castor.jdo.connector.CastorConnectionFactory</connectionfactory-interface>
 <connectionfactory-impl-class>org.exolab.castor.jdo.connector.CastorConnectionFactoryImpl</connectionfactory-impl-class>
 <connection-interface>org.exolab.castor.jdo.Database</connection-interface>
 <connection-impl-class>org.exolab.castor.jdo.engine.DatabaseProxy</connection-impl-class>
 <transaction-support>LocalTransaction</transaction-support>
 <config-property>
 the url to the OJB configuration file
 <config-property-name>Configuration</config-property-name>
 <config-property-type>java.lang.String</config-property-type>
 <config-property-value>file:../server/default/conf/database.xml</config-property-value>
 </config-property>
 <config-property>
 the url to the OJB configuration file
 <config-property-name>JndiName</config-property-name>
 <config-property-type>java.lang.String</config-property-type>
 <config-property-value>jdo/Motiva8JDO</config-property-value>
 </config-property>
 <config-property>
 transaction timeout
 <config-property-name>LockTimeout</config-property-name>
 <config-property-type>java.lang.Integer</config-property-type>
 <config-property-value>30</config-property-value>
 </config-property>
 <config-property>
 the url to the OJB configuration file
 <config-property-name>LoggingEnabled</config-property-name>
 <config-property-type>java.lang.Boolean</config-property-type>
 <config-property-value>true</config-property-value>
 </config-property>
 <config-property>
 class path settings
 <config-property-name>CommonClassPath</config-property-name>
 <config-property-type>java.lang.Boolean</config-property-type>
 <config-property-value>false</config-property-value>
 </config-property>
 <config-property>
 use autostore
 <config-property-name>AutoStore</config-property-name>
 <config-property-type>java.lang.Boolean</config-property-type>
 <config-property-value>false</config-property-value>
 </config-property>
 <authentication-mechanism>
 <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
 <credential-interface>javax.resource.security.PasswordCredential</credential-interface>
 </authentication-mechanism>
 <reauthentication-support>false</reauthentication-support>
