-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: Command + Command Handler and J2EE declarative security
PostPosted: Fri Jul 16, 2004 3:29 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
In chapter 8 of "Hibernate In Action" I see recommendations to use Command design pattern.

I like this approach, because ... (read the book:), but how to use EJB container declarative security with this design. If you have only one Session Facade Bean to handle all commands how to limit some roles to handle some commands? Is there some solution?

--
Thanks,
Leonid


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 3:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Not really, unfortunately :-(

Wait for EJB3....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 3:46 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
Thanks, will be wating...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 11:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Well, if you are on JBoss or WebLogic, there are interceptors today, they are just not standardized...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 12:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
..are anyone using J2EE's very unnecessary complex, rigid and static security model for anything usefull these days ?

Not a prank, but a real question!

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 12:52 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Interceptor stuff is very trivial and there is no problems to use it in on server or on client side http://voruta.sourceforge.net/xref/samples/ejb/

It looks like command design patern, but command is a java method information. You do not need more than one session bean in any application, this design was recommented by Microsoft and I have used it for DCOM in the past.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2004 2:44 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
max wrote:
..are anyone using J2EE's very unnecessary complex, rigid and static security model for anything usefull these days ?

Not a prank, but a real question!


Yes I used J2EE "static" security in my previous project, it is very usefull when you don't need or have no time to implement your own "dynamic" security, but the number of session facade beans were growing with the number of roles (AdminFacadeBean, ManagerFacadeBean, ....). But if you use DAO and some kind of common middleware controllers used by your session facade beans everything is not so bad :).

--
Leonid


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2004 4:31 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
"AdminFacadeBean, ManagerFacadeBean" stuff is more "static" than declarative security. As I understand "dynamic" means "depends on method paramater value".

This declarative stuff is very trivial to imolement and to customize in interceptor or in decorator.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2004 4:53 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
baliukas wrote:
"AdminFacadeBean, ManagerFacadeBean" stuff is more "static" than declarative security. As I understand "dynamic" means "depends on method paramater value".

This declarative stuff is very trivial to imolement and to customize in interceptor or in decorator.


I said if you don't need "dynamic" security or you don't have time to implement it, J2EE declarative security is the best solution. When I say "dynamic security", I mean dynamic roles, roles that could be added or deleted without editing J2EE descriptors.

--
Leonid


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.