[JBoss Portal] - Re: Custom mapper for cms
by thomas.heute@jboss.com
in portal-cms-sar/META-INF/jboss-service.xml you will find where the default command mapper is defined:
| <mbean
| code="org.jboss.portal.core.controller.command.mapper.CommandFactoryDelegate"
| name="portal:commandFactory=Delegate,path=content"
| xmbean-dd=""
| xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
| <xmbean/>
| <attribute name="Path">/content</attribute>
| <depends
| optional-attribute-name="DelegatingFactory"
| proxy-type="attribute">portal:commandFactory=Delegating</depends>
| <depends
| optional-attribute-name="DelegateFactory"
| proxy-type="attribute">portal:commandFactory=CMSObject</depends>
| </mbean>
|
Here you can replace it by a command mapper of your choice.
You will see that the tragetWindowRef is defined in the mbean: portal:commandFactory=CMSObject
You can choose to replace this command factory instead of the whole command mapper.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994619#3994619
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994619
19 years, 4 months
[JCA/JBoss] - Re: encrypted dsn connection in JBOSS
by coolheartdil
Hi
I have created the *ds.xml file as
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>betcdb2ds</jndi-name>
<connection-url>jdbc:db2://db2connt.safeway.com:50000/DBU1</connection-url>
<driver-class>com.ibm.db2.jcc.DB2Driver</driver-class>
<min-pool-size>0</min-pool-size>
<type-mapping>betcdb2ds</type-mapping>
<!-- Use the security domain defined in conf/login-config.xml -->
<security-domain>EncryptDBPassword</security-domain>
</local-tx-datasource>
and put an entry in login-config.xml i have added the entry
<application-policy name = "EncryptDBPassword">
<login-module code = "org.jboss.resource.security.JaasSecurityDomainIdentityLoginModule"
flag = "required">
<module-option name = "username">BED1TC</module-option>
<module-option name = "password">8Yan5EI.jO3</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=betcdb2ds</module-option>
<!-- <module-option name = "jaasSecurityDomain">jboss.security:service=JaasSecurityDomain,domain=ServerMasterPassword</module-option>-->
</login-module>
</application-policy>
and
mbean code="org.jboss.security.plugins.JaasSecurityDomain"
name="jboss.security:service=JaasSecurityDomain,domain=ServerMasterPassword">
<!-- The opaque master password file used to decrypt the encrypted
database password key -->
{CLASS}org.jboss.security.plugins.FilePassword:${jboss.server.home.dir}/conf/server.password
abcdefgh
13
Is there anything wrong here
Cool
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994614#3994614
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994614
19 years, 4 months