-
1. Re: Programatic configuration
tomjenkinson Feb 3, 2017 4:16 PM (in response to jsantos.f58)Is it possible to share a slimmed down version of the app please?
Did you take a look at the examples in: quickstart/spring at master · jbosstm/quickstart · GitHub
-
2. Re: Programatic configuration
jsantos.f58 Feb 3, 2017 4:18 PM (in response to jsantos.f58)Problem seems to be "communicationStore" initialization. I have no easy way to access configuration for it, it seems to only use defaults, maybe properties, and old style -Dcom.arjuna.... configs. It even ignores -DObjectStoreEnvironmentBean.objectStoreDir
I fixed it just now by calling BeanPopulator.getNamedInstance(ObjectStoreEnvironmentBean.class, "communicationStore").setObjectStoreDir("/tmp/objectStore2");
-
3. Re: Programatic configuration
tomjenkinson Feb 6, 2017 8:54 AM (in response to jsantos.f58)Did you try providing a jbossts-properties.xml similar to quickstart/jbossts-properties.xml at master · jbosstm/quickstart · GitHub
-
4. Re: Programatic configuration
jsantos.f58 Feb 6, 2017 11:15 AM (in response to tomjenkinson)I did not as I need to provide it dynamically (loaded from Apache ZooKeeper, for example) and so I need to be able to do it programatically.
Like I said on my previous post, I've gotten around the problem by calling on BenPopulator directly to get the "communicationStore" bean. The bug seems to be that the "communication store" (whatever that is) is ignoring the configuration I put in ObjectStoreEnvironmentBean.
-
5. Re: Programatic configuration
tomjenkinson Feb 6, 2017 11:32 AM (in response to jsantos.f58)It's not a bug as the communication store is actually a distinct store that Narayana uses that has its own ObjectStore configuration.
There are a number of store types such as:
narayana/StoreManager.java at master · jbosstm/narayana · GitHub
This might be interesting to see:
spring-boot/NarayanaConfigurationBean.java at master · spring-projects/spring-boot · GitHub