-
1. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
clebert.suconic Apr 8, 2010 6:43 PM (in response to aloubyansky)I propose to initialize jmsra above from a system property with "jms-ra.rar" being the default in case the system property hasn't been set. This way we avoid the DTD issue.
And where that system property would be initialized?
You will end up having to add a XML somewhere anyway.. since it's not acceptable adding -D at run.sh.
So, I propose some MBean or something like it that will change the defalut name. (Or set the system property if you like).
We need to be able to configure what's the default name using
We just can't rely on the -D to define the behaviour of the resource adapters on this case.
-
2. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
brian.stansberry Apr 8, 2010 6:52 PM (in response to aloubyansky)Can there be a EAP versions of our DTDs, in this case and eap-5.1 version? I think this will be a recurring problem.
-
3. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
clebert.suconic Apr 8, 2010 10:58 PM (in response to clebert.suconic)I was actually thinking.. .a System property would be good.. as long as it could be defined somewhere on the configs through some XML. As I said we will probably need some MBean that will define the system property?
If we had such property, we could have both EJB3 and EJB2 reading the same property.
-
4. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
jaikiran Apr 9, 2010 12:47 AM (in response to clebert.suconic)Clebert Suconic wrote:
As I said we will probably need some MBean that will define the system property?
MBean won't be required. We can follow this syntax in the xmls:
${some.system.property.name:defaultvalue}
The xml parsing will look for a system property named "some.system.property.name" and if not already set, then will set the value to "defaultvalue"
-
5. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
jason.greene Apr 9, 2010 1:25 AM (in response to brian.stansberry)Agreed. I don't see why we cant create an update dtd for EAP releases. The system property is a pretty ugly solution for this.
-
6. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
aloubyansky Apr 9, 2010 4:04 AM (in response to jason.greene)IMO, a separate DTD for EAP is even uglier.
DTDs to be created are jboss_6_0.dtd, jboss_5_x_eap.dtd. And in case we want to support this in 5.x non-EAP versions then also jboss_5_x.dtd.
And after that, if we want to have a common setting for both EJB2 and EJB3 we may end-up with a system property anyway.
-
7. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
clebert.suconic Apr 9, 2010 9:13 AM (in response to jaikiran)Right, and how do you set some.system.property.name without changing run.conf?
It is unacceptable to add a -D property to set this config. Whatever config we choose must be done through some XML that would be read at boot time.
A MC XML Bean setting a property would be fine since users are not meant to change it.
a System property is not.
-
8. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
jaikiran Apr 9, 2010 9:20 AM (in response to clebert.suconic)Clebert Suconic wrote:
Right, and how do you set some.system.property.name without changing run.conf?
It is unacceptable to add a -D property to set this config.
I am not saying that we should be doing it through a system property.
-
9. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
aloubyansky Apr 9, 2010 10:50 AM (in response to aloubyansky)It's true that the best place to put this in is the same xml file where the factories are defined, i.e. (standard)jboss.xml. So, jboss_6_0.dtd makes sense.
I don't like the idea of a seperate DTD for EAP though. Putting it in some other xml file and getting it later from some managed bean (which would serve just this purpose) is not nicer. IMO, a system property would be better than that.
I can't suggest anything better. So, I guess I'm gonna do the DTDs.
I won't be able to complete this earlier than Monday though. Is that ok?
-
10. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
jason.greene Apr 9, 2010 6:52 PM (in response to aloubyansky)Alexey Loubyansky wrote:
IMO, a separate DTD for EAP is even uglier.
DTDs to be created are jboss_6_0.dtd, jboss_5_x_eap.dtd. And in case we want to support this in 5.x non-EAP versions then also jboss_5_x.dtd.
Yeah the forking can create a slight mess. One thing that does help though is that once an EAP line starts, we don't do community releases on that branch. So there should only be two descriptors. We could also call EAP 5.0, jboss 5.2, and EAP 5.1 jboss 5.3 etc if we want to keep them incremental.
-
11. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
aloubyansky Apr 13, 2010 7:52 AM (in response to jason.greene)Which EAP version should this be supported in?
-
12. Re: Allow for configuring default resource adaptor name for the EJB2 MDBs
aloubyansky Apr 15, 2010 9:48 AM (in response to aloubyansky)Fixed. The default can now be set in (standard)jboss.xml like this (this is the actual quote from the current standardjboss.xml)
<!DOCTYPE jboss PUBLIC
"-//JBoss//DTD JBOSS 6.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss_6_0.dtd">
<jboss>
...
<jms-resource-adapter>jms-ra.rar</jms-resource-adapter>
...