Does anybody have ideas about dynamically loading UnicastConnectorFactory and other factory objects using Class.forName or other mechanism? I am trying to make JMS provider independant of our application.
Thanks in advance,
Typically you can do this via JNDI, if you are in a J2EE environment. Basically create Factory objects and then store them in a JNDI context.
If you don't want to use JNDI, you could use Class.forName and simply call the single-String constructor via reflection.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.