Hi Torsten

Does your primary key class implement the two methods
        hashCode()
        and equals(Object other) ?
This could explain your problem.

Kind regards.
H�l�ne.

"Blumreiter, Fa. Westernacher, IIPS, B" wrote:
> 
> Hi Philippe,
> 
> The only difference is that you use a different findByPrimaryKey()-method. Mine 
>expects a primaryKey-object, yours a string. Does that matter?
> 
> Torsten
> 
> -----Urspr�ngliche Nachricht-----
> Von: Philippe Durieux [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 12. Oktober 2000 11:08
> An: Blumreiter, Fa. Westernacher, IIPS, B
> Cc: '[EMAIL PROTECTED]'
> Betreff: Re: AW: Changes in Entity Bean not saved
> 
> "Blumreiter, Fa. Westernacher, IIPS, B" wrote:
> >
> > Hi,
> >
> > I am using jonas 2.1
> >
> > output of jonas when started: JOnAS Server, version 2.1, running on rmi.
> >
> > The architecture is as follows: The client contacts a session bean called
> > dispatcher which in turn works with the entity bean. Therefore I have 2
> > deployment-descriptors.
> >
> > The transaction attributes are always "Required". I tried "Required" for the
> > session bean and "Supports" for the entity bean with the same effect.
> >
> I'm afraid I cannot reproduce your problem. I have made a little example
> to
> simulate what you do, but it works fine. Here is my example:
> 
>     private static void test7() {
>         String num = "0032";
>         try {
>             utx.begin();
>             Personne p = ehome.findByPrimaryKey("Philippe Durieux");
>             p.setNumero(num);
>             Personne p2 = ehome.findByPrimaryKey("Philippe Durieux");
>             String n = p2.getNumero();
>             if (n.equals(num)) {
>                 Test.testPASS("test7");
>             } else {
>                 Test.testFAIL("test7");
>             }
>             utx.rollback();
>         } catch (Exception e) {
>             Test.testFAIL("test7:\n" + e);
>         }
>     }
> 
> Personne is an entity bean with Supports or Required transactional
> attribute.
> (Note that Supports or Required is equivalent if you are already inside
> a transaction.)
> As you can see,
> I call all this inside a transaction, exactly as you do, except that in
> your case,
> the transaction is started by the session bean container, but at least,
> it should
> be equivalent. This test pass. I use jonas 2.1.1, which is quite the
> same than
> jonas 2.1 (only very minor bugs have been corrected).
> --
> Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Bull - 1 rue de Provence - 38432 Echirolles Cedex France
> [EMAIL PROTECTED]
> -> Download our EJBServer at http://www.evidian.com/ejb <-
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".

-- 
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  mailto:[EMAIL PROTECTED]   http://www.evidian.com
  Phone: 33.4.76.29.73.53            Fax: 33.4.76.29.76.00
  Download our EJB Server JOnAS at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to