This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 9955
    
163

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
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)