jQuery in Action, 2nd edition*
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3.0 Stateless Session Bean question 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 "EJB 3.0 Stateless Session Bean question" Watch "EJB 3.0 Stateless Session Bean question" New topic
Author

EJB 3.0 Stateless Session Bean question

Saeed Amer
Ranch Hand

Joined: Jan 20, 2004
Posts: 140
Hello there,

How'd I expose a method of my Stateless Session Bean in EJB 3.0? I don't seem to find any annotation to do that.

Thanks in advance,
Saeed
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

you have an interface that your bean implements. You bean is marked @Stateless, your interface can be marked @Remote or @Local. @Local is a default and you don't have to include that. But you do not have to do anything else to make methods available.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Saeed Amer
Ranch Hand

Joined: Jan 20, 2004
Posts: 140
Thank you so much for your response, Mark!

What if I have some methods that I'd not want to expose?

Thanks again and have a great weekend!
Saeed
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

Originally posted by Saeed Amer:
Thank you so much for your response, Mark!

What if I have some methods that I'd not want to expose?

Thanks again and have a great weekend!
Saeed


Don't put them in your interface and probably declare them private.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 3.0 Stateless Session Bean question