Q&A

Q1:In servlet chaining, if the servlet to which the request is to be delegated is not loadedthat is, not active in the WebLogic Serverwhat will happen?
A1: If the servlet to which the request is forwarded is not active in the WebLogic Server, the ServletContext object's method getServlet(servletname) will return a null object reference. To safeguard against this scenario, the calling servlet should check whether the called servlet object's reference is valid. In a scenario where the called servlet is not active, the calling servlet can still forward the request to the called servlet in a roundabout way. The calling servlet is allowed to open socket connections. Hence, it can open a java.net.URLConnection() object that passes the URL of ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.