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 Murach's Java Servlets and JSP this week in the Servlets 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: 9930
    
159

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]
 
jQuery in Action, 2nd edition
 
subject: what is the different betwen @Stateless(name="SearchFacade") and @Stateless?
 
Similar Threads
type casting Vs narrowing
JNDI/EJB3 Host?
How to version EJBs
Confusion about "mappedName"
different betwen pageContext and application in jsp