[JBoss Portal] - Apply a role policy access to a portlet
by manui
Hi JBoss world,
I'm trying to apply a role policy in a portlet deployed in JBoss Portal v. 2.4. I want to restrict the access to my portlet depending of the role of the authenticated user (using the portal capabilities)....
I can access to user information by using
Map userInfo = (Map) rRequest.getInformations(); and get for example the locale variable, but not the role information....
So I also try with the
rRequest.isUserInRole("role") but does not work in my portlet.....
I also try by using the descriptor using
<policy-permission>
<role-name>role</role-name>
<action-name>viewrecursive</action-name>
</policy-permission>
</security-constraint>
but it stil not works....
I only want to get role information... I can program the policy inside the portlet... but I need this information....
I'm a bit lost....
Thanks for the attention
Manuel Ottaviano
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980724#3980724
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980724
19 years, 6 months
[JBoss Portal] - How apply role policy in portlet?
by manui
Hi JBoss world,
I'm trying to apply a role policy in a portlet deployed in JBoss Portal v. 2.4. I want to restrict the access to my portlet depending of the role of the authenticated user (using the portal capabilities)....
I can access to user information by using
Map userInfo = (Map) rRequest.getInformations(); and get for example the locale variable, but not the role information....
So I also try with the
rRequest.isUserInRole("role") but does not work in my portlet.....
I also try by using the descriptor using
<policy-permission>
<role-name>role</role-name>
<action-name>viewrecursive</action-name>
</policy-permission>
</security-constraint>
but it stil not works....
I only want to get role information... I can program the policy inside the portlet... but I need this information....
I'm a bit lost....
Thanks for the attention
Manuel Ottaviano
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980723#3980723
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980723
19 years, 6 months
[JBoss Messaging] - InvokerLocator already exists for listener
by dunks80
Does anyone know what this stack trace is about? I'm looping through a list of items and sending each item in the list off to a queue that has an MDB listening on it. I get maybe half way through the list and then this exception occurs. The code worked fine with JbossMQ but when I switched to JBoss messaging this started happening.
| javax.jms.IllegalStateException: InvokerLocator already exists for listener id 1436420135. Remove this listener before adding again.
| at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:91)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N6840474864420126404.invokeNext()Ljava.lang.Object;(ClientConnectionFactoryDelegate$createConnectionDelegate_N6840474864420126404.java:???)
| at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N6840474864420126404.invokeNext()Ljava.lang.Object;(ClientConnectionFactoryDelegate$createConnectionDelegate_N6840474864420126404.java:???)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(Ljava.lang.String;Ljava.lang.String;)Lorg.jboss.jms.delegate.ConnectionDelegate;(ClientConnectionFactoryDelegate.java:???)
| at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:202)
| at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:108)
| at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:103)
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980719#3980719
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980719
19 years, 6 months