• 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

InvocationContext METHOD

 
Ranch Hand
Posts: 336
Firefox Browser Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi rancher,

actiually I am studying the EJB 3 In Action.

but right now i am reading about Security, and reading the code on listing 6.7 (page 213).

in this code are using intercetors,



They use the method

context.getEJBContext().isCallerInRole("CSR");

this context "InvocationContext", no exist such method.

Can someone help me around this.

thank you in advance
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Milton Ochoa wrote:



They use the method

context.getEJBContext().isCallerInRole("CSR");


I don't see it being used in the code you posted.

Milton Ochoa wrote:
this context "InvocationContext", no exist such method.

Can someone help me around this.



Probably the "context" object is of type javax.ejb.SessionContext
 
Milton Ochoa
Ranch Hand
Posts: 336
Firefox Browser Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you have the book, please see the page 213.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Milton Ochoa wrote:if you have the book, please see the page 213.


Sorry, i don't have the book. Probably it's an error in the example. Check their errata to see if it's a known issue.
 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic