Hello! I experience a difficulty with persistence of XMBeans. I have modified a XMBean persistence example from the JBoss 4 Application Server Guide for the purpose of studying the problem. Here is the modified jboss-service.xml: <?xml version='1.0' encoding='UTF-8' ?> | | <!DOCTYPE server PUBLIC | "-//JBoss//DTD MBean Service 3.2//EN" | "http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd" | > | <server> | <mbean code="org.jboss.chap2.xmbean.JNDIMap" name="chap2.xmbean:service=JNDIMap" | xmbean-dd="file:/N:\jboss-4.0.1\server\default\deploy\jndimap-xmbean.xml"> | <depends>jboss:service=Naming</depends> | </mbean> | <mbean code="org.jboss.chap2.xmbean.JNDIMap" name="chap2.xmbean:service=JNDIMap-1" | xmbean-dd="file:/N:\jboss-4.0.1\server\default\deploy\jndimap-xmbean.xml"> | <depends>jboss:service=Naming</depends> | </mbean> | </server> When two MBean instances are used, persistence manager saves and loads them from the same file. Is it possible to change MBean persistence file location? I think, creating a duplicate of jndimap-xmbean.xml with different persistence location is not a best solution.
Further, I have tried to write a modification of an ObjectStreamPersistenceManager. I have not found any possibility to distinguish different MBean instances using metadata passed to the PersistenceManager.store(...) method. I use XMBean injection mechanism as a workaround. MBean controls persistence location by itself, but I do not like this solution. I think there should be a more simple way. Is it possible to use unique persistence locations for different instances of the same XMBean? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863906#3863906 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863906 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
