BMP entity Bean can't insert data to oracle 8i ,but other CM
some_dev May 11, 2002 11:49 PMplease help me.
i am use jboss2.4.4 with tomcat3.2.3.
is my jboss.xml configure error or
ejb-jar.xml have error.
######################################################
this is my ejb-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/dtd/ejb-jar_1_1.d$
<ejb-jar>
Sun Example Account
<display-name>SunBMP</display-name>
<enterprise-beans>
Sun Example Account
<display-name>SunBMPBean</display-name>
<ejb-name>SunBeanBMP</ejb-name>
sunejb.AccountHome
sunejb.Account
<ejb-class>sunejb.AccountEJB</ejb-class>
<persistence-type>Bean</persistence-type>
<transaction-type>Bean</transaction-type>
<prim-key-class>java.lang.String</prim-key-class>
False
<!--
<resource-ref>
<res-ref-name>bmpexam</res-ref-name>
<resource-name>java:/DefaultDS</resource-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
</resource-ref>
-->
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<ejb-name>SunBeanBMP</ejb-name>
<method-name>*</method-name>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
#######################################################
this is my jboss.xml:
<?xml version="1.0" encoding="UTF-8"?>
false
<container-configurations />
<!-- <resource-managers />-->
<resource-managers>
<!-- <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">-->
<resource-name>java:/DefaultDS</resource-name>
<resource-jndi-name>java:/DefaultDS</resource-jndi-name>
<!-- </resource-manager>-->
</resource-managers>
<enterprise-beans>
<ejb-name>SunBeanBMP</ejb-name>
<jndi-name>SunBeanBMP</jndi-name>
<configuration-name></configuration-name>
</enterprise-beans>
#######################################################
this is some part on jboss.jcml file:
......
......
<mbean ...>
....
jdbc:oracle:thin:@localhost:1521:o817
scott
10
tiger
0
.......
.......
#######################################################
this is error on console:
[INFO,Default] balance = 68.25
[INFO,Default] balance = 32.55
[ERROR,Default] Caught an exception.javax.ejb.ObjectNotFoundException: No rows found.
######################################################
if i select at database always is empty rows at that table.
please help me.and tell me how to fix this problem.