I am running into an odd problem where my entity is not being inserted into
the database.  I ran into the problem because of a foriegn key constraint
when trying to insert another record.  I modified my code to just perform
the one insert... and still there is no record added.

Another odd bit is that the original method was marked with the 'Required'
TIO, but I kept seeing:

[OracleDB] No transaction right now.

in the log output, which didn't seem to make much sence.  I changed the TIO
to 'Supports' but still I have no records inserted.

I think that I have the data source setup properly, as I can read from it
just fine.  read-only is set to false for all entities.  jboss.conf looks
like:

<!-- Oracle DataSource -->
<mlet code="org.jboss.jdbc.XADataSourceLoader"
      archive="jboss.jar,minerva.jar"
      codebase="../lib/ext/">
    <arg type="java.lang.String" value="OracleDB">
    <arg type="java.lang.String"
value="org.jboss.minerva.xa.XADataSourceImpl">
</mlet>

for the datasource, and jboss.jcml looks like:

     <mbean name="DefaultDomain:service=XADataSource,name=OracleDB">
       <attribute name="Properties"></attribute>
       <attribute
name="URL">jdbc:oracle:thin:@wraith:1521:wraith</attribute>
       <attribute name="GCMinIdleTime">1200000</attribute>
       <attribute name="JDBCUser">plexus</attribute>
       <attribute name="MaxSize">0</attribute>
       <attribute name="Password">plexus</attribute>
       <attribute name="GCEnabled">false</attribute>
       <attribute name="InvalidateOnError">false</attribute>
       <attribute name="TimestampUsed">false</attribute>
       <attribute name="Blocking">true</attribute>
       <attribute name="GCInterval">120000</attribute>
       <attribute name="IdleTimeout">1800000</attribute>
       <attribute name="IdleTimeoutEnabled">false</attribute>
       <attribute name="LoggingEnabled">true</attribute>
       <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
       <attribute name="MinSize">0</attribute>
     </mbean>

which is mostly the default... I changed JDBCUser, Password and URL.

Any ideas?

--jason



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to