This content has been marked as final.
Show 2 replies
-
1. Re: Can a ConnectionFactory be created with a TransportConfi
jmesnil Oct 19, 2009 10:12 AM (in response to steffi)HornetQConnectionFactory has a default ctor for serialization but to be usable it must have set either its discovery address + ports or its static connectors using setStaticConnectors() method.
If you want to set a single connector you must:
create a Pair with your connector config (and null if there is no backup), add it a list and pass the list to setStaticConnectors().
hope that helps -
2. Re: Can a ConnectionFactory be created with a TransportConfi
timfox Oct 20, 2009 5:41 AM (in response to steffi)Take a look at the usermanual and examples to see how ton create a connection factory using a TransportConfiguration.