Hello,
as a follow-up on my message : the content of the dependent object is also
lost when the bean is passivated.
This clearly indicates that the content never makes it to the database and
that only some "ID" is stored.
Is anybody else using PostgreSQL to store a dependent object ?
Werner
Werner Ramaekers wrote:
> Hello,
>
> I'm using jboss-2.0-FINAL with the tomcat-3.2-b7 integrated (on Win2000
> development
> machine), PostgreSQL-7.0.3(on RedHat6.2) and JDK1.3 by SUN.
>
> I have a dependent object, a serializable object declared as a CMP field
> for an entity EJB
> and I've updated the standardjaws.xml so that it contains the correct
> mapping for storing
> java Objects as a column in the database :
>
> <mapping>
> <java-type>java.lang.Object</java-type>
> <jdbc-type>JAVA_OBJECT</jdbc-type>
> <sql-type>OID</sql-type>
> </mapping>
>
> Everything works fine as long as the jboss server is running : the
> dependent object
> is stored and can be retrieved on subsequent requests.
> In the corresponding database table column a number like 20113 is
> stored,
> this should be the OID known to postgresql.
>
> But ...
> when i shut down and restart the jboss server and retrieve the same
> entity bean the
> dependant object is empty although the OID number is still in the
> database.
> Looks like PostgreSQL stores the ID of the object and the content is
> somewhere else but not stored
> in the database but only cached in jboss.
>
> Can anybody tell me how/what/where to change to correct this problem ?
>
> Thanks
>
> Werner Ramaekers
> CTO
> Shift@
> --
> -----------------------------------------------------------------------
> crypto : One who covertly supports a certain doctrine, group, or party.
> <mailto: [EMAIL PROTECTED]> <http://www.shiftat.com>
> -----------------------------------------------------------------------
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
-----------------------------------------------------------------------
crypto : One who covertly supports a certain doctrine, group, or party.
<mailto: [EMAIL PROTECTED]> <http://www.shiftat.com>
-----------------------------------------------------------------------
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]