Hi all,

I just tried to deploy my EJBs developed under JBoss 2.0 FINAL to Borland
Application Server 4.5 for performance testing. Well... it crashed... :)

The reason for this is that I have one findByPrimaryKey(byte[] id) method,
where id is the MD5 digest. In case of JBoss I often get problems in various
databases (at least InterBase with java.lang.Object to VARCHAR(16000)
mapping, there I get the deserialization problem in JAWS). In case of
HypersonicSQL and InstantDB everything works fine.

When I ported that beans to the BAS 4.5 with JDataStore, I get funny SQL for
that finder method. And the reason is that in case of BAS 4.5 the prim.key
finder method signature is:

   findByPrimaryKey(Object[] pks)

In documentation I found that the array should contain values for
corresponding primary key field(s) (I think that they cover the composite PK
case). I took the EJB 1.1 spec and did not find anything about the correct
signature of the PK finder (only for the unknown PK class, they say that
signature should be findByPrimaryKey(Object pks)).

So, here is my question: does the unknown PK class means the "unknown class
for the EJB server" or that's "the missing PK class descriptiong from
ejb-jar.xml"?

Can anybody say about the "right" PK finder signature?

TIA,
Roman Rokytskyy

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

Reply via email to