Dashboard > blojsom 3.0 > ... > Plugins > IM Notification Plugin
  blojsom 3.0 Log In   View a printable version of the current page.  
  IM Notification Plugin
Added by Cliffano Subagio, last edited by Cliffano Subagio on Dec 23, 2007  (view change)
Labels: 
(None)

Availability

IMNotification Plugin 0.1 is available from Blojsom3 Plugins download page.

Description

IMNotification Plugin sends notification messages to Instant Messaging application upon the creation of new entry, comment, trackback, and pingback.

Screenshot

Dependencies

Smack v2.2.1
SmackX v2.2.1

Installation and Setup

Place imnotificationplugin-x.y.jar, smackx-2.2.1.jar, and smackx-2.2.1.jar in /WEB-INF/lib/ directory.

Add the following to /WEB-INF/classes/blojsom-plugins.xml file

<bean id="xmppService" class="com.mbledug.blojsom.plugin.imnotification.service.XMPPService">
    <constructor-arg><value>your-xmpp-host</value></constructor-arg><!-- e.g. jabber.org -->
    <constructor-arg><value></value></constructor-arg><!-- leave this empty to use default port 5222 -->
    <constructor-arg><value>your-xmpp-username</value></constructor-arg>
    <constructor-arg><value>your-xmpp-password</value></constructor-arg>
</bean>
<bean id="googleTalkService" class="com.mbledug.blojsom.plugin.imnotification.service.GoogleTalkService">
    <constructor-arg><value>your-googletalk-username-without-gmail.com</value></constructor-arg>
    <constructor-arg><value>your-googletalk-password</value></constructor-arg>
</bean>
<bean id="imnotification" class="com.mbledug.blojsom.plugin.imnotification.IMNotificationPlugin" init-method="init" destroy-method="destroy">
    <constructor-arg>
        <map>
            <!-- comment out the service you don't need -->
            <entry key="xmpp" value-ref="xmppService"/>
            <entry key="googletalk" value-ref="googleTalkService"/>
        </map>
    </constructor-arg>
    <property name="eventBroadcaster">
        <ref bean="eventBroadcaster"/>
    </property>
</bean>

Configure recipients of messages from Blojsom administration menu weblog settings->properties->set property

Property Sample Value Description
imnotification-recipients-xmpp something@jabber.org,foo@bar.net Comma separated XMPP recipient email addresses.
imnotification-recipients-googletalk larry@gmail.com,sergey@gmail.com Comma separated GoogleTalk recipient email addresses.

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators