Thank you Adrian, that helped a lot. Really appreciate that!

For others, I'll summarize what I have done to get it working:

Modify config-login.xml and add a new application policy:

  |     <application-policy name = "JmsXABlueSpaceRealm">
  |        <authentication>
  |           <login-module code = 
"org.jboss.resource.security.ConfiguredIdentityLoginModule"
  |              flag = "required">
  |              <module-option name = "principal">guest</module-option>
  |              <module-option name = "userName">blsptm01</module-option>
  |              <module-option name = "password">bluespace</module-option>
  |              <module-option name = 
"managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXABlueSpace</module-option>
  |           </login-module>
  |        </authentication>
  |     </application-policy>
  | 
Create a new bluespace-jms-ds.xml that I am adding to my .ear as a nested 
deployment:

  | <connection-factories>
  |   <!-- JMS XA Resource adapter, use this to get transacted JMS in bluespace 
beans -->
  |   <tx-connection-factory>
  |     <jndi-name>JmsXABlueSpace</jndi-name>
  |     <xa-transaction/>
  |     <rar-name>jms-ra.rar</rar-name>
  |     
<connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
  |     <config-property name="SessionDefaultType" 
type="java.lang.String">javax.jms.Topic</config-property>
  |     <config-property name="JmsProviderAdapterJNDI" 
type="java.lang.String">java:/DefaultJMSProvider</config-property>
  |     <max-pool-size>20</max-pool-size>
  |     
<security-domain-and-application>JmsXABlueSpaceRealm</security-domain-and-application>
  |   </tx-connection-factory>
  | 
  | </connection-factories>
  | 
This links to the new application-policy created in login-config.xml and avoid 
having to modify the default settings for JmsXARealm or change the default 
jms-ds.xml to point to my new JmsXABlueSpaceRealm

Add user blsptm01 to jbossmq-state.xml and assign the user the 
"bluespacepublisher" and "bluespacesubscriber" role.

I am not using the createTopicSession(username, password) call anymore (was not 
so in the past and required me to change the xdoclet entries for a big number 
of publisher bean)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908884#3908884

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908884


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to