PortletRequest request,
PortletResponse response )
throws PortletException
{
PortletProxy proxy;
PortletApplication container = getApplication( );
MessageEventImpl event = new MessageEventImpl( message, ( PortletRequestImpl ) request, ( PortletResponseImpl ) response );
if ( portletName != null )
{
proxy = ( PortletProxy ) container.getPortlet( portletName );
send( event, proxy );
}
else
{
Enumeration names = container.getPortletNames( );
while ( names.hasMoreElements( ) )
{
portletName = names.nextElement( ).toString( );
proxy = ( PortletProxy ) container.getPortlet( portletName );
send( event, proxy );
}
}
}