Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

doubt about <res-auth> element of <resource-ref> in context of glassfish ?

 
Ranch Hand
Posts: 924
1
Netbeans IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'am using glassfish version GlassFish Server Open Source Edition 3.1.2.2 (build 5). the specs say that if you dont specify <res-auth> element it is defaulted to Container. however the glassfish gave me an exception saying

javax.resource.ResourceException: When res-auth is specified in the runtime deployment descriptor as Application, userid/passwd cannot be null



when i explicitly included res-auth element and set its value to Container , my application worked fine .has glassfish missed the spec here or am i missing something ?
 
Creator of Enthuware JWS+ V6
Posts: 3369
306
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
as far as I remember when you define the resource ref to Application, the authentication will be handled by the resource-ref (i.e. db, or other managed resource)


If the Bean Provider sets the authenticationType element of the Resource annotation to AuthenticationType.APPLICATION or the res-auth deployment descriptor entry for a resource manager connection factory reference to Application, the container must allow the bean to perform explicit programmatic sign-on using the resource manager's API.


Regards,
Frits
 
reply
    Bookmark Topic Watch Topic
  • New Topic