Hi
I have a CMP bean and client, when calling Create I have records written to
the DB, findByPrimary key now also works OK. I can call 'set' and 'get' OK
on parameters and all seems OK from the client, however I never write
anything other than the primary key to the DB.
Code is from CVS 2pm Sunday (gmt)
The app server output shows ejbStore being called after the Create call, and
after first call to Set a parameter but not the second.
Is this current state of code in CVS or am I missing something ?
Client requests:
System.out.print("Calling create on EnterpriseEntityHome with name
Thomas...");
templateEntityCMP = templateEntityCMPHome.create("Thomas");
if (templateEntityCMP != null) System.out.println("ok");
}
catch (Exception e) {System.out.println(e.getMessage());}
}
System.out.println("call setTitle");
templateEntityCMP.setTitle("rgfhsdf");
System.out.println("call setArtist");
templateEntityCMP.setArtist("rgfhsdf");
System.out.println("Result: Id = " + templateEntityCMP.getId());
System.out.println("Result: Artist = " +
templateEntityCMP.getArtist());
Ap server output:
[Default] org.jboss.tm.TxManager@2f729e
[TemplateEntityCMPBean] TX_SUPPORTS for create
[TemplateEntityCMPBean] TemplateEntityCMPBean.ejbCreate() called
[JAWS] Create, id is Thomas
[JAWS] SQL:SELECT COUNT(*) AS Total FROM TemplateEntityCMPBean WHERE id=?
[TemplateEntityCMPBean] Set parameter:Thomas
[JAWS] Object count:0
[JAWS] Insert
[JAWS] SQL:INSERT INTO TemplateEntityCMPBean (notes,title,artist,type,id)
VALUES
(?,?,?,?,?)
[TemplateEntityCMPBean] Set parameter:Thomas
[TemplateEntityCMPBean] TemplateEntityCMPBean.ejbPostCreate() called
[TemplateEntityCMPBean] TX_SUPPORTS for setTitle
[TemplateEntityCMPBean] TemplateEntityCMPBean.ejbStore() called
[TemplateEntityCMPBean] CURRENTSTATE Inull
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] CURRENTSTATE Irgfhsdf
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] CURRENTSTATE Inull
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] CURRENTSTATE Inull
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] CURRENTSTATE IThomas
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] Set parameter:rgfhsdf
[TemplateEntityCMPBean] TX_SUPPORTS for setArtist
[TemplateEntityCMPBean] TemplateEntityCMPBean.ejbStore() called
[TemplateEntityCMPBean] CURRENTSTATE Inull
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] CURRENTSTATE Irgfhsdf
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] CURRENTSTATE Irgfhsdf
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] CURRENTSTATE Inull
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] CURRENTSTATE IThomas
[TemplateEntityCMPBean] OLDSTATE ARRAY[Ljava.lang.Object;@381960
[TemplateEntityCMPBean] Set parameter:rgfhsdf
[TemplateEntityCMPBean] Set parameter:rgfhsdf
[TemplateEntityCMPBean] TX_SUPPORTS for getId
[TemplateEntityCMPBean] TX_SUPPORTS for getArtist
client output:
Calling create on EnterpriseEntityHome with name Thomas...ok
call setTitle
call setArtist
Result: Id = Thomas
Result: Artist = rgfhsdf
Thanks
Andy
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]