Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

InvocationContext METHOD  RSS feed

 
Milton Ochoa
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
 
Jaikiran Pai
Sheriff
Posts: 10447
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: 10447
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!