Monday, August 23, 2010

Running Multiple weblogic Domains in a single server

Question :
How to run two domains simultaneously? I have one domain running on 7001. I want to run second domain on 7010. How can I achieve it?


Answer :
You need to ensure that no other port conflicts , not just ListenPort (SSL port as well) (e.g. if you run pointbase locally and if each domain is using a separate instance then the pointbase db shouldnt use the same port) - there is also a port specified (For i think debug ), that should also be different. Why are you doing this though?
 
See the below link for best solution :
This helped..
http://www.jroller.com/gmazza/entry/reconfiguring_pointbase_databases_on_weblogic

Wednesday, August 11, 2010

How to create and use Webservice controls using WSDL in weblogic portal10.3

Question :

I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
please give me the documents links for this.

Answer :

http://forums.oracle.com/forums/thread.jspa?threadID=974594

IPC between a Java Portlet and a JSP portlet

See the discussion link
http://forums.oracle.com/forums/thread.jspa?threadID=1111093&tstart=0

Thanks,
Venkat Sarvabatla

Thursday, August 5, 2010

Spring Portlets And Portal Communities

Question :
Can I get any pointers or tutorials on how to develop Spring Portlets JSR 168 compliant in Weblogic Portal 10g r3. Google is not proving reliable in this case.

And as well as documentation on communities in a portal application.

Answer :

There is a bunch of helpful information on running Spring apps as JSR168 portlets here:

http://static.springsource.org/spring/docs/2.0.x/reference/portlet.html
And for support for communities in WLP, I would suggest this documentation:
http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/com/bea/netuix/application/communities/package-summary.html#package_description

URL Compression

Solution  :
Go to the below forum link
http://forums.oracle.com/forums/thread.jspa?threadID=904595&tstart=0

Spring MVC Portlet minimize not working on Weblogic 10.3.0

Question :

We have written JSR 168 Portlets using spring MVC portlet framework. Everything works fine except for the minimize portlet functionality.

The title bar changes that is minimize becomes restore but the portlet body (content) is always visible.
Please let me know if any of you faced this issue and how to resolve it.
 
Answer :
 
From what I can see from the Spring DispatcherPortlet source (I used http://www.docjar.com/html/api/org/springframework/web/portlet/DispatcherPortlet.java.html ), it looks like this is a bug in the DispatcherPortlet. The JSR168 / JSR286 specification requires that portlets not render themselves during the render lifecycle if they are minimized, and I don't see any code in the DispatcherPortlet that checks for the portlet state. From the source in the URL above, it looks like if you added this code at line 701 inside of the doRenderService() method of DispatcherPortlet and re-compiled that code, it might work for you:


if(request.getWindowState().equals(javax.portlet.WindowState.MINIMIZED)) {

return;

}

Alternately, you can change your portlet.xml so instead of using the Java class org.springframework.web.portlet.DispatcherPortlet you point it at your own class:

package sample.package;

public class MinimizedAwareDispatcherPortlet extends org.springframework.web.portlet.DispatcherPortlet

{

@Override

protected void doRenderService(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws Exception {

if(request.getWindowState().equals(javax.portlet.WindowState.MINIMIZED)) {

return;

}

super.doRenderService(request, response);

}

}

Thanks,
Venkat Sarvabatla