Hi All- I've been having a look at JIRA tasks 32 and 33: "Modify org.jboss.jms.client.JBossConnectionFactory to implement the complete set of ConnectionFactory interfaces..." and "Modify org.jboss.jms.client.JBossConnection to implement the complete set of Connection interfaces..."
Implementing the required interfaces for JBossConnectionFactory seems reasonably straightforward - it seems mainly a matter of casting to QueueConnection/TopicConnection etc. For this one I didn't seem to need change any interceptors or the delegate. I'm not sure if I haven't missed something here though. JBossConnection seems somewhat more involved. Again, some of the stuff seems just a matter of casting between TopicConnection/QueueConnection, but for the rest I just wanted to check with you that I'm along the right track. I ended up adding a member: isXAConnection which is set when constructing the object. (In a similar way to how it's done in JBoss 4). This is then checked in methods like getXASession to check whether the connection represents an XA connection. For getMetaData() I think I need to write a simple class that implements ConnectionMetaData. For get/setExceptionListener() - this seems a simple matter of just storing the listener in a member. For start() and stop(), I'm not really sure where this should be handled and would appreciate a steer in the right direction. I guess I need to implement this in some interceptor(s) but not really sure where. For close() I believe the CloseInterceptor() needs to be implemented. I noticed there's one in Jboss4, although I'm not sure if's similar enough to be (partly) re-used? There are also a set of createConnectionConsumer() methods. I notice from the spec. that these are optional, and aren't implemented in JBoss 4. Do we need consider these yet? Or should they be left for later? I can just throw NotYetSupportedException if appropriate for now. I also noticed in the design docs. that there's a ConnectionInterceptor mentioned although I'm not sure of it's exact role and if it's a place where some of this functionality should be implemented. If someone could clarify it's role and whether it's related to these tasks, that would be great. Thanks in advance. -Tim View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871885#3871885 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871885 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
