-
1. Re: ObjectStoreDir location
dimitris Jan 8, 2007 12:53 PM (in response to dimitris)The xml bit was trancated:
<property name="com.arjuna.ats.arjuna.objectstore.objectStoreDir" value="PutObjectStoreDirHere"/>
-
2. Re: ObjectStoreDir location
bill.burke Jan 8, 2007 12:56 PM (in response to dimitris)can we also change the location of this jbossjta-properties.xml file?
-
3. Re: ObjectStoreDir location
kconner Jan 8, 2007 1:04 PM (in response to dimitris)"dimitris@jboss.org" wrote:
JBOSS_HOME/bin/PutObjectStoreDirHere
This is an entry that is supposed to be changed during installation.
JBossTS has no direct knowledge of the app server nor of any app server specific processing used in the config. Having said that it should be possible to modify the integration code to use the data directory as a default.
Kev -
4. Re: ObjectStoreDir location
kconner Jan 8, 2007 1:05 PM (in response to dimitris)"bill.burke@jboss.com" wrote:
can we also change the location of this jbossjta-properties.xml file?
Our only requirement at present is that it should be found on the classpath. Where would you prefer it to be picked up from? Why is conf inappropriate?
Kev -
5. Re: ObjectStoreDir location
dimitris Jan 8, 2007 1:18 PM (in response to dimitris)If you can just introduce property substitution that would be great.
-
6. Re: ObjectStoreDir location
bill.burke Jan 8, 2007 1:19 PM (in response to dimitris)I would like to be able to configure the classpath resource it is found from. The reason for this is that I'm implementing JBoss Embedded at them moment and I need a configurable, base resource path so that it is easy, for instance, to install embedded JBoss onto Tomcat.
Why not just extend the MBean that is used and override settings from there?
Then again....
Are all the properties in jbossjta-properties.xml overrideable from System properties? -
7. Re: ObjectStoreDir location
marklittle Jan 8, 2007 1:21 PM (in response to dimitris)Every property can be overridden via System.
-
8. Re: ObjectStoreDir location
bill.burke Jan 8, 2007 1:22 PM (in response to dimitris)...adding to this...
Can the classpath resource of jbossjta-properties.xml be configurable as a System Property? Or even the file or URL location of it?
THanks -
9. Re: ObjectStoreDir location
marklittle Jan 8, 2007 1:24 PM (in response to dimitris)"dimitris@jboss.org" wrote:
I've notice JBossTS when used in JBossAS, by default, uses:
JBOSS_HOME/bin/PutObjectStoreDirHere
to store tx recovery info.
We don't store data in the bin dir. Actually, I would expect the correct location to be inside every particular server config directory, because you can use the same bin to run multiple server configurations, so use something like:
JBOSS_HOME/server/default/data/object-store
I see this entry in conf/jbossjta-properties.xml:
<property name="com.arjuna.ats.arjuna.objectstore.objectStoreDir" value="PutObjectStoreDirHere"/>
In jboss xml config files we would normally use a syntax like
... ${jboss.server.data.dir}/object-store
Can we do something similar with the jbossjta-properties.xml configuration? Do it substitute system properties?
We've always encouraged users to change that setting when installing into JBoss. Putting it within the JBossAS install wasn't always guaranteed to work because, certainly back in the 3.2.x days, people would often install JBossAS into read-only directories. The object store dir must be writeable.
Do we assume that the JBossAS directory is always writeable? -
10. Re: ObjectStoreDir location
kconner Jan 8, 2007 1:25 PM (in response to dimitris)"dimitris@jboss.org" wrote:
If you can just introduce property substitution that would be great.
JBossTS is a standalone transaction manager and does not currently support this. Overriding the default value in the integration layer would, however, allow you to configure it via the mbean and therefore take advantage of the substitution support in the app server.
Kev -
11. Re: ObjectStoreDir location
marklittle Jan 8, 2007 1:26 PM (in response to dimitris)"bill.burke@jboss.com" wrote:
...adding to this...
Can the classpath resource of jbossjta-properties.xml be configurable as a System Property? Or even the file or URL location of it?
THanks
Yes, you can always specify the location of the property file explicitly via System. If it's not located there, then it starts to search the classpath and other places (e.g., cwd). -
12. Re: ObjectStoreDir location
kconner Jan 8, 2007 1:26 PM (in response to dimitris)"mark.little@jboss.com" wrote:
Do we assume that the JBossAS directory is always writeable?
The data directory is :-)
Kev -
13. Re: ObjectStoreDir location
bill.burke Jan 8, 2007 1:27 PM (in response to dimitris)And the config file location System Property is? (Thanks for being my manual)
-
14. Re: ObjectStoreDir location
marklittle Jan 8, 2007 1:30 PM (in response to dimitris)"Kevin.Conner@jboss.com" wrote:
"mark.little@jboss.com" wrote:
Do we assume that the JBossAS directory is always writeable?
The data directory is :-)
Kev
Good ;-)