1. return types must meet rmi/iiop. which in general means no primitives.
2. simple answer... yes.. except as the primary key.
3. according to the spec... on entity beans... ALL primary keys MUST be
objects, not primitives. If you want to use primitives you wrap them in a
compund key class. so as the fields of a primary key... yes, otherwise no.
Al
----- Original Message -----
From: Boris Garbuzov <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 4:35 PM
Subject: [JBoss-user] who can state it clear about primitives?
> I think, it is time to ask a final answer about usage of primitives. In
RMI it was
> not clear too. I read, I can not use them in remote interfaces with
rmiregistry, but
> in practice it worked, and other people confirmed it. If it depends on
> implementation, let us just talk about JBoss.
> 1. Can I use primitive arguments and return types in remote interface
methods?
> 2. As persistent fields?
> 3. As a primary key and its subfields? And what would be an XML tag if
yes? Does the
> tag <prim-key-type> exist? (it was a recommendation of my EJB course
instructor,
> perhaps it exists in Orion).
>
> --------------------------------
>
>
>
> technically an rmi/iiop type... serializeable class. Long would work...
long
> wont.
>
>
> ----- Original Message -----
> From: Vinay Menon
> To: [EMAIL PROTECTED]
> Sent: Saturday, June 23, 2001 3:33 PM
> Subject: Re: [JBoss-user] primitive primary key description
>
>
> Culprit is <prim-key-type>long</prim-key-type> [the one you have flagged].
> Needs to be Java classes I believe.
>
> Vinay
>
> ----- Original Message -----
> From: Boris Garbuzov
> Sent: Saturday, June 23, 2001 8:06 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] primitive primary key description
>
> Sorry for not digging into DTDs first. I heard, to make primary key
> primitive, one has to change tag <prim-key-class> to <prim-key-type>, but
it
> does not work. But it does not work. What is a solution?
> -------------------------
> ejb-jar.xml -----------------------------------------
> <cmp-field><field-name>creationTime</field-name></cmp-field>
> <primkey-field>creationTime</primkey-field>
> <!-- can we have primary key to be a primitive? -->
> <prim-key-type>long</prim-key-type>
> --------------------------------------server log ---------------------
> [Container factory] org.jboss.ejb.DeploymentException: Error in
ejb-jar.xml
> for Entity Bean OrderEntity: expected one prim-key-class tag
>
>
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user