In a previous post , I briefly mentioned about Liferay's MessageListener interface. This interface is part of Liferay's Message Bus framework which can be used to send messages between Liferay and other web applications. This interface can also be used to schedule jobs within Liferay. In order to use this interface and create a scheduled Job, you can Create a basic portlet: I usually stick to the GenericPortlet interface unless I have a really good reason to use some of the other interfaces specific to Liferay. Once you created this interface, go ahead and create a class that implements the MessageListener interface. Following code snippet is an example of such an object. public class DemoListener implements MessageListener, ApplicationContextAware { private ApplicationContext appContext; private final static String SOME_ID = "someId"; private final Logger log = LoggerFactory.getLogger(DemoListener.class); @Override pub...
Keeping me and perhaps you up to date with focus on technology