[Design of JCA on JBoss] - Re: JBPAPP-750 - Integration between AS and JBossMessaging 1
by adrian@jboss.org
"jesper.pedersen" wrote : I'm currently looking at
|
| http://jira.jboss.com/jira/browse/JBPAPP-750
|
| with the integration between the EAP and JBossMessaging since JBM implements both the non-XA and XA interfaces. XA mode is selected at session level.
|
| 1)
| Is the best way to handle this to extend the JmsConnectionRequestInfo class
| with XA information - f.ex. UseXA - and then use this information when
| creating the sessions in JmsManagedConnection::setup() ?
|
| Of course there will be other changes also JmsMCFProperties, ... Creating
| f.ex. a JmsXASession class may be an idea.
|
No. XA or local is a property of the connection factory deployment not the request.
anonymous wrote :
| 2)
| JmsActivation also need information about XA from JmsActivationSpec in order to create the correct connection type - so UseXA here.
|
| Any feedback on how this should be done is most welcome
If you can't determine the type from the real ConnectionFactory
then there's no portable way for you to determine what
type of jca deployment you are in. The current jms resource adapter
assumes the connection factory in the jms provider is consistent with the
connection manager choice.
This is just a testsuite issue (the idea is to test local only jms connection usage).
A simple fix (in the testsuite) would be to create a wrapper connection factory that
* only implements the non xa interfaces
* delegates to the real connection factory
* bind it into jndi with a different name
* create a LocalJMSProvider using that wrapper for the test
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142352#4142352
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142352
18 years
[Design the new POJO MicroContainer] - Re: Anonymous beans
by alesj
"alesj" wrote :
| And I guess I would also have to iterate over all the collection items that are not immutable and clone them before adding them to new collection instance.
|
I need MetaDataVisitorNode to extend JBossInterface in order to clone AbstractCollectionMetaData and AbstractMapMetaData:
| public class AbstractCollectionMetaData extends AbstractTypeMetaData
| implements Collection<MetaDataVisitorNode>, Serializable
| {
| private static final long serialVersionUID = 2L;
|
| /** The collection */
| protected List<MetaDataVisitorNode> collection = new ArrayList<MetaDataVisitorNode>();
|
| ...
|
| public class AbstractMapMetaData extends AbstractTypeMetaData
| implements Map<MetaDataVisitorNode, MetaDataVisitorNode>, Serializable
| {
| private static final long serialVersionUID = 2L;
|
| /** The map */
| private Map<MetaDataVisitorNode, MetaDataVisitorNode> map = new HashMap<MetaDataVisitorNode, MetaDataVisitorNode>();
|
So that I can iterate over the items and call item::clone().
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142331#4142331
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142331
18 years