porltet

DeployMyPortlet.xml

<request
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="PortalConfig_1.2.xsd"
    type="update"
    create-oids="true"
    >

    <portal action="locate" >
       
        <!-- install test portlet -->
        <web-app action="update" active="true" uid="mypackage.Jsr286EventPublisherPortlet" >
            <url>file:///C:/chaos tools/JSR 286/test/sender/chaoSender.war</url>
            <portlet-app action="update" active="true" uid="mypackage.Jsr286EventPublisherPortlet.1">
                <portlet action="update" active="true"  name="Jsr286EventPublisherPortlet" objectid="mypackage.Jsr286EventPublisherPortlet" >
                    <access-control>
                        <role actionset="User" update="set">
                            <mapping subjectid="all authenticated portal users" subjecttype="USER_GROUP" update="set"/>
                        </role>
                    </access-control>
                </portlet>
            </portlet-app>
        </web-app>

    </portal>

</request>

 

 

 

# part from build.xml to deploy war file to portal server
<project>
....

        <property name="warName" location="C:/chaos tools/JSR 286/test/sender"/>
        <property name="portal.base" location="C:/ibm/WebSphere6/PortalServer" />
       
        <target name="deploy" description="deploy the application">
                <copy file="${warName}/chaoSender.war" todir="C:/ibm/WebSphere6/wp_profile/installableApps" />
                <echo message="Deploying war to WebSphere Portal." />
                <exec executable="${portal.base}/bin/xmlaccess.bat">
                        <arg line='-in "${warName}/DeployMyPortlet.xml" -user "wasadmin" -pwd "password" -url http://127.0.0.1:10043/wps/config ' />
                </exec>
        </target>

</project>

Understand Portlet key words

 

PortletConfig - defined in portlet.xml such as name, view mode support, per Abstract portlet, not changable

portletContext - interface to understand container

portletSetting - per concret portlet

portletApplicationSetting - shared between concret portlet

PortletData - belongs to each user.

 

 

Ref: http://publib.boulder.ibm.com/infocenter/wpdoc/v510/index.jsp?topic=/com.ibm.wp.ent.doc/wps/wpsptcfgob.html

 

 

Portlet key object and scope

 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值