0 Replies Latest reply on Dec 10, 2002 5:40 PM by Damn

    Problem looking up ConnectionFactory from an applet.

    Damn Newbie

      Hi,
      I'm running JBoss 3.0. Trying to lookup ConnectionFactory from the applet running in Java Plug-in 1.3.1.
      The following line of code fails with the java.lang.ClassCastException exception:

      TopicConnectionFactory tcf = (TopicConnectionFactory)iniCtx.lookup("ConnectionFactory");

      So, it does retrieve ConnectionFactory, but cannot cast it to TopicConnectionFactory. Does it have anything to do with the version of JVM? JBoss is running on JDK 1.3. Applet is running in Plug-in 1.3.1.

      Thank you in advance.