[jboss-user] [Installation, Configuration & Deployment] - Re: strange! halt of jboss + DB2(XA)
richard_djs
do-not-reply at jboss.com
Tue Dec 5 21:23:28 EST 2006
Thank you for your reply.
Yesterday, I tried the deployment with db2(non xa) , it works well. I think the class is ok, there must be somthing wrong in my jboss configuation.
This are my ejb-jar.xml and db2-xa-ds.xml.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>SysmgrEJBModule</display-name>
<enterprise-beans>
<ejb-name>PostMgmtSession</ejb-name>
com.oss.sysmgr.ejbs.PostMgmtSessionHome
com.oss.sysmgr.ejbs.PostMgmtSession
<ejb-class>com.oss.sysmgr.ejbs.PostMgmtSessionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<ejb-name>PostMgmtSession</ejb-name>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- Thanks to Horia Muntean <horia at bvb.ro> -->
<!-- ===================================================================== -->
<!-- $Id: db2-xa-ds.xml,v 1.4 2004/09/15 14:37:40 loubyansky Exp $ -->
<!--
XADatasource for DB2 V8.1 (app driver)
copy $db2_install_dir/java/db2java.zip into $jboss_install_dir/server/default/lib
-->
<xa-datasource>
<jndi-name>DSTopEng</jndi-name>
<xa-datasource-class>COM.ibm.db2.jdbc.DB2XADataSource</xa-datasource-class>
<xa-datasource-property name="DatabaseName">BOSSDB2</xa-datasource-property>
<xa-datasource-property name="User">topeng</xa-datasource-property>
<xa-datasource-property name="Password">bossDB2</xa-datasource-property>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>DB2</type-mapping>
</xa-datasource>
<xa-datasource>
<jndi-name>DSAudit</jndi-name>
<xa-datasource-class>COM.ibm.db2.jdbc.DB2XADataSource</xa-datasource-class>
<xa-datasource-property name="DatabaseName">BOSSDB2</xa-datasource-property>
<xa-datasource-property name="User">USER_AUDIT</xa-datasource-property>
<xa-datasource-property name="Password">bossDB2</xa-datasource-property>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>DB2</type-mapping>
</xa-datasource>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991512#3991512
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991512
More information about the jboss-user
mailing list