Running JCA Examples provided by official documentation

Hi all,

I am attempting to set up the following

http://servline24.eur.ad.sag/SecuredServices/document//java/ins421win/SDK/TaminoAPI4J/Documentation/inoapi/tra_xmpl.htm#jca_xmng2

I am running JBOSS 3.2.4 and using Tamino 4.2.1

I have got everything running ( see logged )


13:40:16,288 INFO [DefaultDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=DefaultDS to JNDI
name ‘java:/DefaultDS’
13:40:16,498 INFO [A] Bound to JNDI name: queue/A
13:40:16,508 INFO [B] Bound to JNDI name: queue/B
13:40:16,508 INFO [C] Bound to JNDI name: queue/C
13:40:16,508 INFO [D] Bound to JNDI name: queue/D
13:40:16,508 INFO [ex] Bound to JNDI name: queue/ex
13:40:16,558 INFO [testTopic] Bound to JNDI name: topic/testTopic
13:40:16,558 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
13:40:16,558 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
13:40:16,568 INFO [testQueue] Bound to JNDI name: queue/testQueue
13:40:16,628 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
13:40:16,678 INFO [DLQ] Bound to JNDI name: queue/DLQ
13:40:16,698 INFO [JmsXA] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=TxCM,name=JmsXA to JNDI name ‘java:/
JmsXA’
13:40:16,698 INFO [MyTaminoLocalTxConnector] createConnectionFactory(Connection Manager)
13:40:16,708 INFO [MyTaminoLocalTxConnector] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=My
TaminoLocalTxConnector to JNDI name ‘java:/MyTaminoLocalTxConnector’
13:40:16,778 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/jboss-3.2.4/server/default/deploy/jmx-console.war/
13:40:19,873 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/jboss-3.2.4/server/default/tmp/deploy/tmp26508web-console.war/
13:40:20,484 INFO [Server] JBoss (MX MicroKernel) [3.2.4 (build: CVSTag=JBoss_3_2_4 date=200406040847)] Started in 21s:341ms
13:40:20,484 INFO [Tomcat5] Saw org.jboss.system.server.started notification, starting connectors
13:40:20,614 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
13:40:20,674 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
13:40:20,684 INFO [JkMain] Jk running ID=0 time=0/30 config=null
13:48:47,332 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.4/server/default/deploy/AccountExample.ear
13:48:47,703 INFO [EjbModule] Deploying Account
13:48:47,863 INFO [EjbModule] Deploying Transfer

Everything seems to be cool, however when I attempt to execute the program, I encountered the following


C:\Software AG\Tamino\Tamino 4.2.1.1\SDK\TaminoAPI4J\examples\AccountExample>java ejb.session.stateful.TransferClient
ATTENTION: Usage: TransferClient
using default JNDI-NAME
remove the bean
Exception in thread “main” java.lang.NullPointerException
at ejb.session.stateful.TransferClient.main(Unknown Source)

I deduced that for some unknown reason, there was an error when I issue a lookup on JNDI.

Can any Java Gurus help me with this. I know I am this close to getting the program to run.

I have got the “mydb” and all the schemas and data all setup.

Thanks a million.

Sorry I should also add the following log

13:48:48,033 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.4/server/default/tmp/deploy/tmp26509AccountExample.ear-contents/AccountAndTransfer.jar

Ok I figured that I will need to run the program with the Bean JNDI names as mentioned in http://servline24.eur.ad.sag/SecuredServices/document//java/ins421win/SDK/TaminoAPI4J/Documentation/inoapi/jcaadmin_jboss.htm#jca_jboss_name

I know I can defined these bean names as system properties using "java -D XXX=XXX <program_name> " format.

Can someone tell me the value pair format ?

Thanks