This content has been marked as final.
Show 8 replies
-
1. Re: JBM2 jca adapter and connection factories
timfox Jun 24, 2009 6:32 AM (in response to ataylor)When you say create a new Cf per MDB, do you mean per MDB *instance* or per MDB type?
There may be many thousands of MDB instances (of the same type) in an AS. -
2. Re: JBM2 jca adapter and connection factories
timfox Jun 24, 2009 6:36 AM (in response to ataylor)Also.. how does it work with outbound?
-
3. Re: JBM2 jca adapter and connection factories
ataylor Jun 24, 2009 6:45 AM (in response to ataylor)When you say create a new Cf per MDB, do you mean per MDB *instance* or per MDB type?
I mean per MDB activation, so per MDB deployed. -
4. Re: JBM2 jca adapter and connection factories
timfox Jun 24, 2009 6:51 AM (in response to ataylor)For inbound I think we should share the connection factory unless its overridden, in which case we create a new one for that MDB type.
The RA could maintain a "default" connection factory for use when nothing is overridden.
How does it work for outbound? Do we still use jms-ds.xml ?? -
5. Re: JBM2 jca adapter and connection factories
ataylor Jun 24, 2009 7:05 AM (in response to ataylor)For inbound I think we should share the connection factory unless its overridden, in which case we create a new one for that MDB type.
The RA could maintain a "default" connection factory for use when nothing is overridden.
+1, for this i need to add some code to check to see if anything has been overridden and some code to make sure non default factories etc are torn down when the mdb is deactivated.How does it work for outbound? Do we still use jms-ds.xml ??
yes we still use the jms-ds.xml. currently there is one connection factory per jms-ds.xml. -
6. Re: JBM2 jca adapter and connection factories
timfox Jun 24, 2009 7:07 AM (in response to ataylor)"ataylor" wrote:
yes we still use the jms-ds.xml. currently there is one connection factory per jms-ds.xml.
+1 -
7. Re: JBM2 jca adapter and connection factories
clebert.suconic Jun 24, 2009 9:16 AM (in response to ataylor)a) don't allow any overrides on the connection factory. The user would have to provide a new ra.xml file for each configuration. This is how 1.4 works and would mean removing cleberts changes, however would still be a problem with lots of MDB;s sharing a CF.
Multiple ras for multiple connections are not acceptable IMO. With 1.4, you had a way to specify another CF JNDI.
You probably just need to have the CF at the ra level created lazily (I thought it already was).
You could have two Beans, or two jms-ds.xml deployed, one overridden, one at the ra level. -
8. Re: JBM2 jca adapter and connection factories
ataylor Jun 24, 2009 9:20 AM (in response to ataylor)You probably just need to have the CF at the ra level created lazily (I thought it already was).
yes it is, but that wasn't my point.You could have two Beans, or two jms-ds.xml deployed, one overridden, one at the ra level.
not sure what you mean by this.
anyway, its sorted. b)