• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

MDB on glassfish without mappedBy

 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mappedBy ? You mean mappedName ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From Glassfish documentation, it looks like the mappedName needs to be set.
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :
https://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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to both...
 
reply
    Bookmark Topic Watch Topic
  • New Topic