[jboss-user] [JCA/JBoss] - Re: How can persist JCA Mbean's attributes using Persistenc

makas do-not-reply at jboss.com
Thu Dec 18 05:20:33 EST 2008


Sorry for cross-port.
Persistence of the attributes is necessary to I have a possibility  to edit JCA connector's parameters and that after reboot JBoss this changes  remained. 
I think to do this something like this http://www.jboss.org/community/docs/DOC-12775.
But, when I specifi  the DelegatingPersistenceManager in jboss-service.xml descriptor
<mbean code="org.jboss.resource.connectionmanager.ConnectionFactoryBindingService"
  |           name="jboss.jca:name=Aurora/baxi/green/maxi,service=ConnectionFactoryBinding"
  |           xmbean-dd="">
  |       <description>PersistentServiceExample</description>
  |          <descriptors>
  |             <persistence persistPolicy="OnUpdate"/>
  |             <persistence-manager value="org.jboss.mx.persistence.DelegatingPersistenceManager"/>      
  | 			<descriptor name="attribute-persistence-operation" value="apmCreate"></descriptor>
  | 		 </descriptors>
  |          <class>org.jboss.resource.connectionmanager.ConnectionFactoryBindingService</class>
  |          
  |          <!-- Attributes -->
  |          
  |          <attribute access="read-write" getMethod="getJndiName" setMethod="setJndiName">
  |             <name>JndiName</name>
  |             <type>java.lang.String</type>
  |          </attribute>
  | </mbean>
I catch MBeanRegistrationException which reports that this bean has been registered.
How can I say that JBoss will not regist new MBean and persist needed Mbean?

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

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



More information about the jboss-user mailing list