O'Reilly logo

JBoss Portal Server Development by Ramanujam Rao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enabling remoting in portlets

A JBoss portlet can be made remotable by configuring the appropriate parameters in the configuration files. By default, JBoss portal server doesn't make its portlets available for remote Consumers. Hence, every portlet that needs to be exposed as a remote service, needs to be individually enabled in the portlet configuration file jboss-portlet.xml .

The jboss-portlet.xml file, needs an entry for the portlet with a <remotable> tag set to true .

If this file doesn't exist, then a new file needs to be created.

The following code shows how a sample portlet, "SayHello", has been enabled for remoting:

<?xml version="1.0" standalone="yes"?> <!DOCTYPE portlet-app PUBLIC "-//JBoss Portal//DTD JBoss Portlet 2.7//EN" "http://www.jboss.org/portal/dtd/jboss-portlet_2_7.dtd"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required