wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Return value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Return value" Watch "Return value" New topic
Author

Return value

Tmmet Johnson
Ranch Hand

Joined: Nov 03, 2004
Posts: 56
Hi,
I am new to EJBs.I have stateless session beans.Can anyone say me whether it is ok to have return value as int in an ejb method ?
Also, can I call a singleton class's method from a bean method ?

Thanks in advance,
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

Originally posted by Tmmet Johnson:
Hi,
I am new to EJBs.I have stateless session beans.Can anyone say me whether it is ok to have return value as int in an ejb method ?


Yes, it perfectly fine.

Originally posted by Tmmet Johnson:
Also, can I call a singleton class's method from a bean method ?


Yes, you can.


[My Blog] [JavaRanch Journal]
 
Consider Paul's rocket mass heater.
 
subject: Return value
 
Similar Threads
Why return statement is valid in java constructor ?
multiple recursion and stacks
Little confusion in Finally block
return statement required
Coffee Cram - Chapter 5 (Attributes and Listeners)