• Post Reply Bookmark Topic Watch Topic
  • New Topic

Specify env-entry in ejb-jar.xml for an interceptor  RSS feed

 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I created an interceptor using annotations. I would like to inject a resource there (the validUser String):

I put the following lines in the deployment descriptor:


and this doesn't work. How can I specifiy this kind of information in the descriptor, and at the same time not loose the information specified with annotations?
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raf,

Try @Resource(name="validUser"). Otherwise, rename the entry to com.yourdomain.SecurityInterceptor/validUser.

Regards,
Reza
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reza,
works both ways, thank you.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!