• Post Reply Bookmark Topic Watch Topic
  • New Topic

SessionFacade & multiple home & remote interfaces for bean

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following situation:
My SessionFacade is accessed by several different applications and I don�t want to expose all methods to these different applications. IMHO it�s legal to create several Home & Remote interfaces for this bean and bind them differently to the JNDI tree. Am I correct here ??
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup. That's legal. You're multiply deplying the bean (meaning it'll belong to several instance pools) but there's nothing wrong with that.
BTW, another option would be to deploy the bean ONCE, but have the Local and Remote Interfaces extend several "Business" interfaces. Only hand out the "Business" interfaces instead of the full interface. I think RMH describes this trick in his book.
Kyle
 
Dana Hanna
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another option would be to enable method level security and JAAS for authentication. This wouldn't hide the illegal methods from the other apps, but it would prevent them from being used.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!