工程/EJB模块/META-INF
EJB-JAR.XML
<ejb-jar> <enterprise-beans> <session> <ejb-name>XXXX_EJB</ejb-name> <local-home>XXX.XXXX.control.XXXX_Home</local-home> <local>XXX.X.XXXX.control.XXXX_O</local> <ejb-class>XXX.X.XXX.control.XXXX_EJB</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> </session>
<container-transaction> <method> <ejb-name>XXXX_EJB</ejb-name> <method-name>*</method-name> </method> <trans-attribute>Required</trans-attribute> </container-transaction>
</assembly-descriptor> </ejb-jar>
weblogic-ejb-jar.XML
<weblogic-ejb-jar>
<weblogic-enterprise-bean> <ejb-name>XXXX_EJB</ejb-name> <local-jndi-name>XXXX_EJB</local-jndi-name> </weblogic-enterprise-bean>
</weblogic-ejb-jar>
工程目录/Web模块/WEB-INF
web.xml
<web-app> <display-name>dwWeb</display-name> <context-param> <param-name>weblogic.httpd.inputCharset./*</param-name> <param-value>XXX</param-value> </context-param>
<filter> <filter-name>GauceFilter</filter-name> <filter-class>com.gauce.filter.GauceFilter</filter-class> <init-param> <param-name>conf-reload</param-name> <param-value>5000</param-value> </init-param> </filter>
<filter-mapping> <filter-name>GauceFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
<servlet> <servlet-name>XXX_svl</servlet-name> <servlet-class>XXX.X.XXXX.service.XXXX_svl</servlet-class> </servlet>
<servlet-mapping> <servlet-name>TOBPRO_svl</servlet-name> <url-pattern>/servlet/TOBPRO_svl</url-pattern> </servlet-mapping>
<welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
<login-config> <auth-method/> </login-config>
</web-app>