• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I protect ejb 3.0 entity with the ejb security configuration?  RSS feed

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
I know how to protect the session bean with the xml security descriptor for example:

But I wander can I do the same with entity bean ? ( the simple POJO classes )
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In short:
---------

No you can't.

Slightly longer explanation:
----------------------------

"Java persistence does not yet have a mechanism to secure access"

Workaround:
-----------

You might be able to assign privileges at the database level depending on your RDMS

Cheers,
Martijn (aka Karianna)
[ December 10, 2007: Message edited by: Martijn Verburg ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!