File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Return value Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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: 8146
    
  52

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
return statement required
Coffee Cram - Chapter 5 (Attributes and Listeners)
multiple recursion and stacks
Why return statement is valid in java constructor ?
Little confusion in Finally block