Win a copy of Microservices Testing (Live Project) this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Clarification List - HFEJB 196

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
Would you pls. explain below things. This is from HFEEJB -196.

1. When we have an EJBHome why we cannnot access information about the
client?

2. When we can access transaction in BMT/ CMT. Any rules or any reference
need for it.

3. Access:
Special JNDI environment - What is this JNDI environment ?

 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Says who?? Whenever a client invokes a method, you can use the context object to get the caller principal. So, that would include home business methods.

2. For BMT, you can do just about whatever you want with the UserTransaction. For CMT, it is more complicated. You should really only use the setRollbackOnly on the context object, but that's about it. I think you can get the UserTransaction, but if you invoke any methods on it, it'll throw an exception.

3. I hope you're referring to the bean's ENC. I suggest you read the J2EE tutorial to get an overview of JNDI in J2EE.
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic