-
1. Re: Alignment of container configuration property names
aslak May 2, 2012 2:46 AM (in response to dan.j.allen)I've had it in the back of my head to align them, but currently they attempt to follow the domain they are used in, the containers lingo if you will.
But it's a more difficult task then it might seem. e.g. bindAddress vs remoteServerAddress, vs adminHost(tho adminAddress is probably better). In some embedded/managed containers we can control the address so it's called bind, while others embedded or not, we can't(you need to setup the bindAddress in their config and only tell arquillian here it is). In GlassFish lingo it's the admin server you connect to, not the server it self. Hench also why it's adminUser/adminPassword for GlassFish.
In Tomcat it is really managerUser/managerPassword.
GlassFish adminPort, there is only one i think. If i remember correctly, glassfish multiplex different types of protocol on the same port.
-
2. Re: Alignment of container configuration property names
dan.j.allen May 2, 2012 2:59 AM (in response to aslak)After pondering this for awhile, I realized it isn't quite as divergent as I had first thought.
There are probably two really sore thumbs, as you just summarized:
Tomcat user/pass, which are just terrible property names anyway. Sounds like a JIRA is in order there.
GlassFish adminPort I'm pretty sure is a REST endpoint (or we are using it that way) so it should be adminHttpPort. Maybe a JIRA?
I was aware of the bind prefix. That part I get. The way I see it, the property should go one of two ways...it's either bind (hence local) or remoteServer (for remote). Unless I'm missing a case, there shouldn't be anything in between.
Aside from maybe a few JIRAs, what should come out of this I think is just some documentation as to how we got to the names (shouldn't take long for the basic stuff), so that third-party container adapters can align if they so choose.
-
3. Re: Alignment of container configuration property names
aslak May 2, 2012 4:02 AM (in response to dan.j.allen)Dan Allen wrote:
I was aware of the bind prefix. That part I get. The way I see it, the property should go one of two ways...it's either bind (hence local) or remoteServer (for remote). Unless I'm missing a case, there shouldn't be anything in between.
That's kinda the thing, remoteServer. what remoteServer? GlassFish has a well known termonolgy that says AdminServer. Same with JBoss 7, Management Address.
We could in theory support two sets of properties, the arquillian lingo and the container lingo. Making sure the ContainerConfgiuration can do the 'translation', it would simplify container configuration extensions, as they can 'safely' rely on x number of predefined properties to be available on a container type, while the user can rely on the container lingo as they are used to.
Might end up causing more confusion..
-
4. Re: Alignment of container configuration property names
aslak May 2, 2012 4:06 AM (in response to dan.j.allen)Dan Allen wrote:
Aside from maybe a few JIRAs, what should come out of this I think is just some documentation as to how we got to the names (shouldn't take long for the basic stuff), so that third-party container adapters can align if they so choose.
We should document our usage of bind vs remote, admin vs server etc. Atleast will give a picture to why they are named differently and make it easier for others to follow.