[JBoss Portal] - Re: WSRP: failed to configure remote producer
by briankous
I found that user is saved in session, but not the roles. Therefore, I changed the viewfile.jsp and pending_items.jsp so that roles are saved in the session.
I also changed the CMSPreviewServlet so that it retrieves the roles from the session and put it in JCRCMS object. Now it is working fine. The changed codes are as follows.
Following are added to the jsp's.
Set roles = new HashSet();
// Get the current authenticated subject through the JACC contract
Subject subject = (Subject)PolicyContext.getContext("javax.security.auth.Subject.container");
if (subject != null)
{
Set tmp = subject.getPrincipals(JACCPortalPrincipal.class);
JACCPortalPrincipal pp = null;
for (Iterator k = tmp.iterator(); k.hasNext();)
{
pp = (JACCPortalPrincipal) k.next();
if (pp != null)
{
break;
}
}
if (pp == null)
{
pp = new JACCPortalPrincipal(subject);
tmp.add(pp);
// Lazy create all the permission containers for the given role names
for (Iterator k = pp.getRoles().iterator(); k.hasNext();)
{
Principal role = (Principal) k.next();
roles.add(role.getName());
}
}
}
request.getSession().setAttribute("remoteRoles", roles);
Following were added to CMSPreviewServlet
Set roles = (Set)request.getSession().getAttribute("remoteRoles");
JCRCMS.setRoles(roles);
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250973#4250973
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250973
16 years, 8 months
[JBoss Messaging] - Re: JMS Bridge between IBM MQ and JBM
by vmeghraj
Hi gaohoward, Thanks for your reply. I followed the examples but there is no sample with IBM MQ. I tried with the below conf without luck.
I get the "java.lang.IllegalArgumentException: Connection factory must be XAConnectionFactory" with the following conf.
Please let me know how to make IVTCF XA enabled.
wmq.jmsra-ds.xml
---------------------
<connection-factories>
| <!-- connection factory definition -->
| <tx-connection-factory>
| <jndi-name>IVTCF</jndi-name>
| <xa-transaction />
| <rar-name>wmq.jmsra.rar</rar-name>
| <connection-definition>javax.jms.ConnectionFactory</connection-definition>
| <config-property name="channel" type="java.lang.String">WAS</config-property>
| <config-property name="queueManager" type="java.lang.String"></config-property>
| <config-property name="transportType" type="java.lang.String">BINDINGS</config-property>
| <security-domain-and-application>JmsXARealm</security-domain-and-application>
| </tx-connection-factory>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250958#4250958
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250958
16 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Re: System properties not replaced in ds.xml when properties
by gjeudy
I still get the same error even when the doubleslash is corrected:
2009-08-21 14:00:04,317 INFO [org.jboss.varia.property.SystemPropertiesService] Loaded system properties from: file:/C:/jboss-4.2.2.GA/server/default/conf/props/rdm.properties
rdm.properties
| # General properties
|
| rdm.java.naming.provider.url=localhost\:1199
| rdm.aspuc.java.naming.provider.url=nycdpdevjboss01\:1699
| rdm.userLookupEnabled=true
| rdm.seam.debug=true
| rdm.facelets.debug=true
|
| # Hibernate properties
| rdm.hibernate.jdbc.batch_size=50
|
| # Deployer properties
|
| rdm.deployer.mq.name=SYSTEM.JMS.D.RDM.INVENTORY.UPDATE
| rdm.deployer.refreshWorkspaceEnabled=true
| rdm.deployer.transactionTimeout=1800
| rdm.deployer.transactionTimeoutPerTargetDb=900
|
| # Database properties
| rdm.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:REFD10
| rdm.ds.owner.username=REFDEV
|
| rdm.xads.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:REFD10
| rdm.xads.owner.username=REFDEV
|
| rdm.odsbdev.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:DEV10
| rdm.odsbdev.ds.owner.username=REFAPPDEV
|
| rdm.odsbint.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:DEV10
| rdm.odsbint.ds.owner.username=REFAPPDEVINT
|
| rdm.odsbstg.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:DEV10
| rdm.odsbstg.ds.owner.username=REFAPPDEVSTG
|
| rdm.odsbprod.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:DEV10
| rdm.odsbprod.ds.owner.username=REFAPPDEVPROD
|
| rdm.archlinkdev.ds.connection.url=jdbc\:sqlserver\://ARCHLINKDEVSQL
|
| # MQ properties
|
| rdm.jnpPort=1199
|
| rdm.mq.topicConnectionFactory.brokerControlQueue=SYSTEM.PUBSUB.PROXY.IN
| rdm.mq.topicConnectionFactory.brokerPubQueue=ARCH.CLAIM.PROXY.JMS
| rdm.mq.topicConnectionFactory.brokerSubQueue=SYSTEM.JMS.ND.PTS.*
| rdm.mq.topicConnectionFactory.statusRefreshInterval=1000
|
| rdm.mq.brokerQueueManager=DLMQ02
| rdm.mq.hostname=nycdpdevmsgbrk01
| rdm.mq.channel=JBOSS
| rdm.mq.port=1414
I think that somehow jboss may be parsing all config files inside the EAR eagerly and set all attributes of mbeans in the same phase. This would not give the opportunity for the system properties to load before that since the properties service is itself included in the ear.. What do you think?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250941#4250941
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250941
16 years, 8 months