Dynamic loading of Factory objects

Help
2003-03-05
2003-03-06
  • Mahantesh Nashi

    Mahantesh Nashi - 2003-03-05

    Hi all,
    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,
    mahan

     
    • Jimmy P

      Jimmy P - 2003-03-06

      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.

      -jp

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks