Disabling A Producer

By default, all portlets created using WebLogic Workshop 8.1 SP3 are available by way of WSRP for remote portals to consume; that is, they comply with the WSRP standard for producer and thus can be accessed and their content used by remote portlets. In most circumstances, you will leave the portlet's producer status in place; however, if you want to keep the content of the portlet private, you can disable this status by making small changes to the WEB-INF/web.xml file.

  1. Open the producer project's WEB-INF/web.xml file.
  2. Locate the <servlet> element and remove:
    <servlet>
       <servlet-name>com.bea.wsrp.producer.WsrpServer</servlet-name>
       <servlet-class>com.bea.wsrp.producer.WsrpServer</servlet-class>
       <load-on-startup>2</load-on-startup>
    </servlet>
  3. Locate the <servlet-mapping> element and remove:
    <servlet-mapping>
      <servlet-name>com.bea.wsrp.producer.WsrpServer</servlet-name>    
      <url-pattern>/producer/*</url-pattern> 
   </servlet-mapping> 
  1. Redeploy the project.