Skip to Content
0
Former Member
Mar 27, 2010 at 12:39 PM

adding servlet entry in web.xml of j2ee engine

102 Views

Hi ,

I want a servlet to be loaded on startup of the j2ee engine SAP WAS which is basically flex based (MessageBrokerServlet).

The init param for the servlet is not accessible or cannot be initialized in init method of the servlet using the servletconfig object.

This is when the servlet is used as a portal component of type servlet.

So as to load the servlet and the servlet being able to access the init param i would be changing the web.xml of the sap j2ee engine (NW CE 7.1). are there any other effects of the same or is it fine if i just add this param in the web.xml

<servlet>

<servlet-name>MessageBrokerServlet</servlet-name>

<display-name>MessageBrokerServlet</display-name>

<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>

<init-param>

<param-name>services.configuration.file</param-name>

<param-value>/WEB-INF/flex/services-config.xml</param-value>

</init-param>

<load-on-startup>1</load-on-startup>

</servlet>