Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create and finder methods

 
Sany Bel
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should the arguments for create and finder methods for entity beans (with remote client view) be legal types for RMI-IIOP?
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will want to get confirmation from someone who isn't just a rank novice, but it seems to me that if you call a method on a remote home object and that call has an object as a parm, then your parm has to be turned into a serialized copy of that object. RMI needs to carry the serialized object, so I'd say if the parm object was disagreeable to RMI-IIOP for any reason, it wouldn't work (so yes, your parms need to be RMI-IIOP legal).
--Dale--
[ April 05, 2004: Message edited by: Dale Seng ]
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dale is right.
[ April 06, 2004: Message edited by: Vish Kumar ]
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Section 10.6.10 of the EJB specification 2.0 states

The methods defined in this interface must follow the rules for RMI-IIOP. This means that their argument and return types must be of valid types for RMI-IIOP, and their throws clauses must include the java.rmi.RemoteException.

I hope this helps
 
Anthony Castillon
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remote parameters should be any of the following:
1. Serializable objects
2. primitives
3. Arrays of primitives or Serializable
4. Instances of classes implementing Remote
anthony
 
Sany Bel
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot guys !!
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sany Bel:
Thanks a lot guys !!

Keep on asking "easy ones"!
--Dale--
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic