[jboss-dev-forums] [JBoss Portal Development WSRP] - WSRP portlet development As Generic way

ksrikanth11 do-not-reply at jboss.com
Thu Oct 15 08:18:07 EDT 2009


Hi,
  This is Srikanth , newbie to JBoss portal framework. 

I have to configure a WSRP portlet to the portal.I got the guidelines from the documentation provided by jboss portal and configured it successfully.

I've a doubt whether it is possible to develop a simple portlet and including the WSRP related code inside it(i.e inside the doView, and doEdit).I think it is possible, but want to know which service i need to use. just i walked through the code and found there is some MBean service defined for the WSRPConsumerImpl, but the same is not available in the release version.

for example:
    All the wsrp related configurations will be kept inside the portlet.xml as preferences.  we include the portlet conntext also in this. 
     
     I require a WSRPGenericPortlet which can be extended by the developer in future and in the init we will initialize the WSRP related configurations. in the doView(), doEdit().. we will pass the respective request to the service provider.


  public class WSRPGenericPortlet extends GenericPortlet{
            
        init(){

        initialize the Endipoint & Registration;
        }

       doView(){
         call the doview related service
        }

       doEdit(){
         call the doEdit related service
        }
  
           ---
       }
       

      by using the above the end developer can write  portlet as following

      public class SampleWSRPportlet extends WSRPGenericPortlet{

       }

      provides the configurations in the portlet.xml

Note: I don't require the postions and themes to be maintained by service provider.
   


Kindly Help me on this. 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260517#4260517

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260517



More information about the jboss-dev-forums mailing list