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 what is the different betwen @Stateless(name= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "what is the different betwen @Stateless(name="SearchFacade") and @Stateless?" Watch "what is the different betwen @Stateless(name="SearchFacade") and @Stateless?" New topic
Author

what is the different betwen @Stateless(name="SearchFacade") and @Stateless?

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
what is the different betwen @Stateless(name="SearchFacade") and @Stateless?


Reference
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi..



as far as i know that when we use only @Stateless annotation, then the name of our Stateless session bean would be the class name itsself.. in this instance, the name would be SearchFacadeBean
but when we fill the property name, the name of Stateless session bean would be same with the property name.. in this instance, the name would be SearchFacadeBean..

Please correct me if i'm wrong...
Thanks,..


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
i found that systax of stateless anotation is this



can nayone explain how to map this with examplee?

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

can nayone explain how to map this with examplee?

I am not really sure what you are asking here. Your post already has an example with the @Stateless. If you were asking something else, then could you please explain in a bit more detail?


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the different betwen @Stateless(name="SearchFacade") and @Stateless?
 
Similar Threads
Confusion about "mappedName"
JNDI/EJB3 Host?
How to version EJBs
type casting Vs narrowing
different betwen pageContext and application in jsp