Subversion Repositories DevTools

Rev

Rev 4472 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4472 Rev 6298
Line 337... Line 337...
337
         this.timeout=timeout;
337
         this.timeout=timeout;
338
         this.environment = env;
338
         this.environment = env;
339
      }
339
      }
340
 
340
 
341
      public void run()
341
      public void run()
342
      {
342
	      {
343
         InitialContext initialContext = null;
343
         InitialContext initialContext =null;
344
         try
344
         try
345
         {
345
         {
-
 
346
			Properties properties = new Properties();
346
			this.environment.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");         
347
	  		properties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
347
            initialContext = new InitialContext(environment);
348
	   		initialContext = new InitialContext(properties);
348
            java.lang.Object objRef = initialContext.lookup(<XDtEjbHome:homeInterface type="remote"/>.JNDI_NAME);
349
            java.lang.Object objRef = initialContext.lookup(<XDtEjbHome:homeInterface type="remote"/>.JNDI_NAME);
349
            home = (<XDtEjbHome:homeInterface type="remote"/>) PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface type="remote"/>.class);
350
            home = (<XDtEjbHome:homeInterface type="remote"/>) PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface type="remote"/>.class);
350
         
351
         
351
            synchronized( this )
352
            synchronized( this )
352
            {
353
            {