• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

create and finder methods

 
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?
 
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 ]
 
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 ]
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • 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
 
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--
 
Can't .... do .... plaid .... So I did this tiny ad instead:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic