0 Replies Latest reply on Sep 12, 2012 4:38 AM by Ri Ma

    ClassCastException call an IMS MT Connector in a Stateles EJB

    Ri Ma Newbie

      Hi

       

      We want to connect to an IBM Host using an IMS Connector from IBM. We are using JBOSS AS7 Final. and the IBM IMS Connector ims1211.rar.

       

      The Code is straightforward

       

      try{

         InitialContext ctx = new IntialContext();

         IMSManagedConnectionFactory  cf   = (IMSManagedConnectionFactory)ctx.lookup("java:/imsco");

        }catch(Exception e){

        e.printStackTrace();

      }

       

      the Resource Adapter subsystem uses following configuration

       

      ction-definition class-name="com.ibm.connector2.ims.ico.IMSManagedConnectionFactory" jndi-name="java:/imsco" pool-name="IMSConnectionFactory">

                                  <config-property name="PortNumber">

                                      9995

                                  </config-property>

                                  <config-property name="hostName">

                                     166.88.2.2

                                   </config-property>

       

      Has anybody any idea what I can do? I have deployed the application as a war file-.

       

      TIA

       

      Richi