> I work with jboss2.2 which connect to postgresql 7.0.2 by its own
> jdbc driver. I insert some records into database in my session
> bean, and no error is reported by jboss or jdbc. it's seemed that
> everything is ok.
>    But when i look into the database with the psql client, all
>    inserted records disappear.How can i make jboss or postgresql
>    jdbc flush the data created into the database? Thanks in
>    advance.

I've noticed that jboss behaves differently than the Sun reference
implementation, so instead of grabbing a Connection once and using it
many times (e.g. the way Sun does it in their tutorial examples) you're
better off getting and closing the Connection once for each method.

I should point out that my experience here was with entity beans, not
session beans but I'd imagine that the behavior is similar.

There's more detailed info in my earlier post to this list (and in the
replies it generated).



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to