[Persistence, JBoss/CMP, Hibernate, Database] - Har options x Hibernate options
by atorres
Hi, for a long time I've being using SAR deployment for my HBM mappings.
The reason is: the org.jboss.hibernate.jmx.Hibernate has only a subset of the hibernate options.
So I prefer to stick with a home-modified version of the default hibernate's jmx that let me set SessionContext's class for instance. Or Interceptors.
But I can't stop thinking, why the HAR deployer has just a subset of hibernate stand alone options? Do I really need to create my own MBean just to support the missing options?
Is there plans to support it? Becouse it just looks so easy to map all options to the HAR implementation. Just add setters and getters...
Well, meanwhile I stick with SAR becouse I don't want to make my code Jboss dependent on compilation time. But it would be nice to have HAR deployer that had all flexibility of a default hibernate.cfg.xml... or at leat could read one!
Them I would not need to extend the jboss classes to expose such options.
Thanks for all the good work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976592#3976592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976592
19 years, 7 months
[Security & JAAS/JBoss] - Showing a secured page when user is logged in
by rkiesi
Hi everybody,
We am working on a completly new portal.
We use JBOSS AS 4.0.4 and JBOSS Portal 2.4.
In the default-object.xml we define a couple of pages including one "Admin" page. This page is secured with a security-constraint (see code below).
Via an self written login portlet we populate our user with principals and roles (eighter from LDAP Servers or a relational database).
As we log in as admin and the user has the role "Admin" i hoped the page with the security-contraint would be display, but it is not!!
Am I missing something? I read throug this forum, the wiki and the adminguide and did not find a solution for this problem.
Some hint would be nice
thx rkiesi
Here the code form the default-object.xml
<deployment>
| <if-exists>keep</if-exists>
| <parent-ref>default</parent-ref>
| <page>
| <page-name>Admin</page-name>
| <security-constraint>
| <policy-permission>
| <role-name>Admin</role-name>
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
| </deployment>
|
and the principals and roles of the user after login
Principals for user admin: admin***Roles(members:Admin)***
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976589#3976589
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976589
19 years, 7 months