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>
<constructor-arg><value></value></constructor-arg>
<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>
<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. |