RegisterPreDeployedEAR.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. =================================================================
  4. * Licensed Materials - Property of IBM
  5. * (c) Copyright IBM Corp. 2005, 2006. All rights reserved.
  6. *
  7. * US Government Users Restricted Rights - Use, duplication or
  8. * disclosure restricted by GSA ADP Schedule Contract with IBM
  9. * Corp.
  10. *
  11. * DISCLAIMER OF WARRANTIES. The following [enclosed] code is
  12. * sample code created by IBM Corporation. This sample code is
  13. * not part of any standard or IBM product and is provided to you
  14. * solely for the purpose of assisting you in the development of
  15. * your applications. The code is provided "AS IS", without
  16. * warranty of any kind. IBM shall not be liable for any damages
  17. * arising out of your use of the sample code, even if they have
  18. * been advised of the possibility of such damages.
  19. *
  20. =================================================================
  21. -->
  22. <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23. xsi:noNamespaceSchemaLocation="PortalConfig_8.0.0.xsd"
  24. type="update" create-oids="true">
  25. <!--
  26. NOTE: This sample file needs to be modified before execution.
  27. -->
  28. <portal action="locate">
  29. <!-- Use the predeployed attribute to indicate that the URL of the Web application is the location in the file system
  30. to where the EAR file with the contained WAR file has been extracted. -->
  31. <web-app action="update" uid="my.test.web-app" active="true" predeployed="true">
  32. <!-- In this case, the URL points to the root directory of the extracted WAR file in the portal server directory. -->
  33. <url>file://localhost/D:/WebSphere/deploy_target_directory/installedApps/myapp.ear/myportletapp.war</url>
  34. <!-- The context root that is assigned to the web application of the portlet application in the
  35. predeployed EAR file (reference: application.xml). must start with a slash -->
  36. <context-root>/my/context/root</context-root>
  37. <!-- The name that is assigned to the application in the predeployed EAR file (reference: application.xml). -->
  38. <display-name>My Web App</display-name>
  39. <portlet-app action="update" active="true" name="My portlet app" uid="my.test.portlet-app">
  40. <portlet action="update" active="true" name="My Portlet"/>
  41. </portlet-app>
  42. </web-app>
  43. </portal>
  44. </request>