• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Return type of business home method

 
Christian Hauser
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
The EJB 2.0 Spec states that a business home method in the remote home interface of an entity bean must have an RMI-IIOP compliant return type.

My question is now if [B][/B] is such an RMI-IIOP compliant return type. Is it?

Thanks in advance for your help.
Christian
 
Christian Hauser
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christian Hauser:

My question is now if void is such an RMI-IIOP compliant return type. Is it?


What about arrays? Should be fine in my opinion, but where can I get a list of what exactly RMI-IIOP compliant means?

Thanks,
Christian
 
B.Sathish
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Christian,
RMI-IIOP compliant is a somewhat fancy word. All it means is that thing should be "Shippable" across a network. If the return type is void, that means you are not shipping anything and you are fine

Here is your list of shippable / RMI-IIOP compliant things:

1. Primitives
2. Serializable objects
3. Arrays or collections of primitives or Serializable objects as long as the collection class is serializable
4. Stubs to Remote Objects
5. Arrays or collections of stubs to remote objects again as long as the collection class is serializable.

Note : All J2SE collection classes are Serializable (ArrayList, Vector, HashMap etc)

I recommend you to read the second chapter in Head First EJB. You'll understand better.
 
Christian Hauser
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic