Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-1333

Transformation Quickfix for Portable JNDI namespace

    XMLWordPrintable

Details

    • Test Sprint - temp

    Description

      Hashtable<String, String> env = new Hashtable<String, String>();
      env.put( Context.PROVIDER_URL, "t3://localhost:7001" );
      env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
      env.put( Context.SECURITY_PRINCIPAL, "weblogic" );
      env.put( Context.SECURITY_CREDENTIALS, "weblogic" );
      Context context = new InitialContext( env );
      Service service = (Service)context.lookup( "sample.Service#" + Service.class.getName() );

      Becomes

      Context context = new InitialContext();
      Service service = (Service) context.lookup( "java:app/service/" + ServiceImpl.class.getSimpleName() );

      Attachments

        Activity

          People

            josteele John Steele
            josteele John Steele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: