5633f69be362b2b5d2348278210a4b82.ppt
- Количество слайдов: 8
Enterprise aplikatsiooni deploy IBM Web. Sphere 5. 0 serverile Ivo Mägi
Aplikatsiooni struktuur applications/<appname>/ META-INF/ application. xml <ejb_module> EJB klassid META-INF/ ejb-jar. xml <web_module>/ index. html JSP pages WEB-INF/ web. xml classes/ Servleti klassid
application. xml ? xml version="1. 0" encoding="UTF-8"? > <application id="Application_ID"> <display-name>Pet. Store. EAR</display-name> <description>The Blue. Prints Petstore Built On top of the Web Application Framework. </description> <module id="Ejb. Module_1"> <ejb>petstore-ejb. jar</ejb> </module> <module id="Web. Module_1"> <web-uri>petstore. war</web-uri> <context-root>petstore</context-root> </web> </module> </application>
ejb-jar. xml <? xml version="1. 0"? > <ejb-jar> <enterprise-beans> <session> <description>Näidis</description> <ejb-name>Employee. Bean</ejb-name> <home>employee. Employee. Home</home> <remote>employee. Employee</remote> <ejb-class>employee. Employee. Bean</ejb-class> <session-type>Stateless</session-type> <transaction-type>Bean</transaction-type> </session> </enterprise-beans> </ejb-jar>
web. xml <? xml version="1. 0"? > <web-app> <servlet-name>psmain</servlet-name> <servlet-class>ee. et. ps. web. controller. PSServlet</servlet-class> <init-param> <param-name>templates-inlining</param-name> <param-value>false</param-value> </init-param> <servlet-mapping> <servlet-name>psmain</servlet-name> <url-pattern>/psmain</url-pattern> </servlet-mapping> <ejb-ref-name>Employee. Bean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>employee. Employee. Home</home> <remote>employee. Employee</remote> </ejb-ref> </servlet> </web-app>
Web. Sphere spetsiifika <appname> META-INF/ ibm-application-bnd. xmi ibm-application-ext. xmi <ejb-module> ibm-ejb-jar-bnd. xmi ibm-ejb-jar-ext. xmi <web-module> ibm-web-bnd. xmi ibm-web-ext. xmi
Paketistruktuuri koostamine w AAT(Application Assembly Tool) w ANT(taskid javac+jar)
Deploy w Administration console w Shelli skriptid
5633f69be362b2b5d2348278210a4b82.ppt