• 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
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Stateful Session AfterCompletion( )....

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why accessing Resource Manager and EJB is not allowed here?
Any reason behind?
I think the client secruity context still here because
it allowed us to use isCallerinRole() method..
Thanks for helping me always......
Yours,
harvey
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Harvey,
I think that - by definition - you're in afterCompletion() *out of* a meaningful transaction context.
Best,
Phil.
 
Harvey Chan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, I agreed that the transaction should not be there anymore.
However, in the definition, the rule for accessing resource manager
and EJB is releated to EITHER transaction context OR client security
context.
So, if the client security context still there ( as proved by isCallerInRole() ), then why we can't access the recource manager ( because the rule said
OR not AND)
I started to think the specification is really confusing....
Harvey
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Harvey,
I think the restriction is just a contract provided by the spec, without this contract, that is, the developers can access resource managers and EJBs, then the developers must handle complex issues of failure recovery.
Since the spec provides such contract, the developers gain the benefits of transaction handling provided by the Container!
 
reply
    Bookmark Topic Watch Topic
  • New Topic