• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB on glassfish without mappedBy

 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone is there who could able to deploy a MDB on glassfish that mdbs destination defines using only Activation Config, and not mappedBy att of @MessageDriven

like


without mappedBy att im getting



But defining MDB's destination using mappedBy is not portable.
http://java.sun.com/javaee/5/docs/api/javax/ejb/MessageDriven.html#mappedName()

But weirdly sun's javaee tutorial also have used mapped by attribute in their first example.
http://java.sun.com/javaee/5/docs/tutorial/doc/bnbpo.html

Any suggestions

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mappedBy ? You mean mappedName ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Glassfish documentation, it looks like the mappedName needs to be set.
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the same doubts about this theme, the mappedName reduce portability and is not recommended. Therefor is recommended you to use deployment descriptors for mapping global JNDI names instead.
This post :
http://www.coderanch.com/t/164042/java-EJB-SCBCD/certification/MessageDriven-mappedName-mandatory
argue this affirmation.


Regards,
M
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to both...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic