-
1. Re: how to add custom ObjectStore
jhalliday Dec 10, 2008 6:16 AM (in response to mazz)There are a handful of spare names predefined for this purpose - you use one of them e.g.
public ClassName className() {
return ArjunaNames.Implementation_ObjectStore_UserDef0Store();
}
then use name="com.arjuna.ats.arjuna.coordinator.actionStore" value="UserDef0Store" in the config file.
As for the registration, it's not required to put that in the Implementations class, you can do it via
com.arjuna.ats.arjuna.gandiva.inventory.Inventory.inventory().addToList(new MyStoreSetup());
provided you make that call before doing anything else transaction related. The config file is loaded on demand the first time the transaction manager is used and at that point tries to resolve the store name. If the inventory does not have an entry for it by then, bad things will happen.
P.S. Don't use the VolatileStore in production. -
2. Re: how to add custom ObjectStore
mazz Dec 10, 2008 8:54 AM (in response to mazz)"jhalliday" wrote:
provided you make that call before doing anything else transaction related. The config file is loaded on demand the first time the transaction manager is used and at that point tries to resolve the store name.
Note: In the JBossAS integration use-case, the Transaction Manager is started VERY early in the boot sequence. Therefore, I think it would be necessary to deploy a special MBean (-service.xml) that executes that code to add to the inventory list in its start method, and then you have to modify the Transaction Manager MBean deployment so it "depends" on this new MBean service. -
3. Re: how to add custom ObjectStore
marklittle Dec 10, 2008 9:16 AM (in response to mazz)Why do you want to add a custom ObjectStore?