[JCA/JBoss] - Configuring ejb with jboss 4.0.3 with oracle10g
by jojiprakash
org.jboss.deployment.DeploymentException: Error while checking if table aleady exists TIMERS; - nested throwable: (java.sql.SQLException: Table not found: SYSTEM_TABLES in statement
Hi All above error getting,
I deployed an entity bean whose configuration is as follows,let met know is there any configuration issues,
ejb-jar.xml
-------------
<resource-ref>
<res-ref-name>jdbc/accountdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
ejb-jar.xml
------------
<enterprise-beans>
<ejb-name>sbi</ejb-name>
<jndi-name>AccountsJndi</jndi-name>
<resource-ref>
<res-ref-name>jdbc/accountdb</res-ref-name>
<jndi-name>java:/jboss.accountdb</jndi-name>
</resource-ref>
oracle-ds.xml
---------------
<local-tx-datasource>
<jndi-name>jboss.accountdb</jndi-name>
<connection-url>jdbc:oracle:thin:@192.168.0.4:1521:joe</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
-----------
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059565#4059565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059565
16Â years, 10Â months
[JBoss Seam] - EntityManager and Atomic Conversations problem
by superfis
I'm using atomic conversation with entityManager.flush() being called manually.
In such a conversation I can do many things with my entities, eg.:
- create new objects and persist them <- it's OK
- remove some persistent objects -< it's OK
- create and then remove not yet persisted objects!!! <- FATAL [application] javax.persistence.EntityNotFoundException: deleted entity passed to persist
How to easily manage all these operations with entities to avoid errors mentioned above?
Atomic conversations + ajax give us enough "time" to do many complicated things with entities before final flush() is being performed, but I can't find easy way to manage all this operations to extract final set of objects to persist, remove and so on.
How to handle this issue?
Slawek
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059562#4059562
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059562
16Â years, 10Â months