Package org.jboss.web

Examples of org.jboss.web.WebApplication


/* 475 */     this.deploymentMap.put(warURL, webApp);
/*     */   }
/*     */
/*     */   public WebApplication getDeployedApp(String warUrl)
/*     */   {
/* 484 */     WebApplication appInfo = (WebApplication)this.deploymentMap.get(warUrl);
/* 485 */     return appInfo;
/*     */   }
View Full Code Here


/* 484 */     WebApplication appInfo = (WebApplication)this.deploymentMap.get(warUrl);
/* 485 */     return appInfo;
/*     */   }
/*     */
/*     */   public WebApplication removeDeployedApp(String warURL) {
/* 489 */     WebApplication appInfo = (WebApplication)this.deploymentMap.remove(warURL);
/* 490 */     return appInfo;
/*     */   }
View Full Code Here

/*     */   public synchronized WebApplication start(VFSDeploymentUnit unit, JBossWebMetaData metaData)
/*     */     throws Exception
/*     */   {
/* 305 */     Thread thread = Thread.currentThread();
/* 306 */     ClassLoader appClassLoader = thread.getContextClassLoader();
/* 307 */     WebApplication webApp = null;
/*     */     try
/*     */     {
/* 311 */       URL[] empty = new URL[0];
/* 312 */       URLClassLoader warLoader = URLClassLoader.newInstance(empty, unit.getClassLoader());
/* 313 */       thread.setContextClassLoader(warLoader);
/* 314 */       String webContext = metaData.getContextRoot();
/*     */
/* 318 */       URL warURL = (URL)unit.getAttachment("org.jboss.web.expandedWarURL", URL.class);
/* 319 */       if (warURL == null)
/* 320 */         warURL = (URL)unit.getAttachment("jbossws.expanded.war.url", URL.class);
/* 321 */       if (warURL == null) {
/* 322 */         warURL = unit.getRoot().toURL();
/*     */       }
/*     */
/* 325 */       String warURLString = warURL.toString();
/* 326 */       if (warURLString.startsWith("jar:")) {
/* 327 */         warURLString = warURLString.substring(4, warURLString.length() - 2);
/*     */       }
/* 329 */       this.log.debug("webContext: " + webContext);
/* 330 */       this.log.debug("warURL: " + warURLString);
/*     */
/* 333 */       String contextID = metaData.getJaccContextID();
/* 334 */       if (contextID == null)
/* 335 */         contextID = unit.getSimpleName();
/* 336 */       metaData.setJaccContextID(contextID);
/*     */
/* 338 */       webApp = new WebApplication(metaData);
/* 339 */       webApp.setClassLoader(warLoader);
/* 340 */       webApp.setDeploymentUnit(unit);
/* 341 */       performDeploy(webApp, warURLString);
/*     */     }
/*     */     finally
/*     */     {
/* 345 */       thread.setContextClassLoader(appClassLoader);
View Full Code Here

/* 103 */         buffer.append("<h1>Web Applications</h1>\n");
/*     */       }
/*     */
/* 106 */       while (it.hasNext() == true)
/*     */       {
/* 108 */         WebApplication webApplication = (WebApplication)it.next();
/*     */
/* 110 */         Thread.currentThread().setContextClassLoader(webApplication.getMetaData().getENCLoader());
/*     */
/* 112 */         buffer.append("<h2>java:comp namespace of the " + webApplication.getCanonicalName() + " application:</h2>\n");
/*     */         try
/*     */         {
/* 117 */           context = new InitialContext();
/* 118 */           context = (Context)context.lookup("java:comp");
/*     */         }
View Full Code Here

/*     */     {
/* 289 */       Iterator it = (Iterator)this.server.getAttribute(AbstractWebDeployerMBean.OBJECT_NAME, "DeployedApplications");
/*     */
/* 291 */       while (it.hasNext() == true)
/*     */       {
/* 293 */         WebApplication webApplication = (WebApplication)it.next();
/* 294 */         openWebModuleTag(buffer, webApplication.getCanonicalName());
/*     */
/* 296 */         Thread.currentThread().setContextClassLoader(webApplication.getMetaData().getENCLoader());
/*     */         try
/*     */         {
/* 300 */           context = new InitialContext();
/* 301 */           context = (Context)context.lookup("java:comp");
/*     */
View Full Code Here

TOP

Related Classes of org.jboss.web.WebApplication

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.