Richfaces Examples: Richfaces Showcase Application 4.1.0.20110910-M2

org.richfaces.demo.push.provider
Class CustomMessagingServerManagement

java.lang.Object
  extended by org.richfaces.demo.push.provider.CustomMessagingServerManagement
All Implemented Interfaces:
MessagingProviderManagement

public class CustomMessagingServerManagement
extends java.lang.Object
implements MessagingProviderManagement

Starts HornetQ, binds ConnectionFactory to the context and create topics.

Author:
Nick Belaevski, Lukas Fryc

Constructor Summary
CustomMessagingServerManagement()
           
 
Method Summary
 void createTopic(java.lang.String topicName, java.lang.String jndiName)
          Creates JMS topic using this provider
 void finalizeProvider()
          Finalizes messaging provider management at on application tear down.
 void initializeProvider()
          Initializes messaging management, called at application startup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomMessagingServerManagement

public CustomMessagingServerManagement()
Method Detail

initializeProvider

public void initializeProvider()
                        throws InitializationFailedException
Description copied from interface: MessagingProviderManagement
Initializes messaging management, called at application startup.

Specified by:
initializeProvider in interface MessagingProviderManagement
Throws:
InitializationFailedException - when initialize of provider fails

createTopic

public void createTopic(java.lang.String topicName,
                        java.lang.String jndiName)
                 throws java.lang.Exception
Description copied from interface: MessagingProviderManagement
Creates JMS topic using this provider

Specified by:
createTopic in interface MessagingProviderManagement
Parameters:
topicName - the name of the topic
jndiName - the JNDI binding to use for given topic
Throws:
java.lang.Exception - when creating of topic fails

finalizeProvider

public void finalizeProvider()
Description copied from interface: MessagingProviderManagement
Finalizes messaging provider management at on application tear down.

Specified by:
finalizeProvider in interface MessagingProviderManagement

Richfaces Examples: Richfaces Showcase Application 4.1.0.20110910-M2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.