<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>6.2 IDE Hook project</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=35658921" />
  <subtitle>6.2 IDE Hook project</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=35658921</id>
  <updated>2026-04-05T17:09:55Z</updated>
  <dc:date>2026-04-05T17:09:55Z</dc:date>
  <entry>
    <title>RE: 6.2 IDE Hook project</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35659128" />
    <author>
      <name>Michael Oliver</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35659128</id>
    <updated>2014-03-14T03:55:44Z</updated>
    <published>2014-03-14T03:55:44Z</published>
    <summary type="html">Yes that was it.  Somehow I thought that was done before.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;MO</summary>
    <dc:creator>Michael Oliver</dc:creator>
    <dc:date>2014-03-14T03:55:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: 6.2 IDE Hook project</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35664422" />
    <author>
      <name>Tejas Kanani</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35664422</id>
    <updated>2014-03-14T03:27:22Z</updated>
    <published>2014-03-14T03:27:22Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;How your liferay-hook.xml looks like ?&lt;br&gt;Have you properly added &amp;lt;service&amp;gt; tag in your liferay-hook.xml ? &lt;br&gt;REF : https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/override-a-portal-service-with-hook-liferay-portal-6-2-dev-guide-en&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;service&amp;gt;
    &amp;lt;service-type&amp;gt;
    com.liferay.portal.service.OrganizationLocalService
    &amp;lt;/service-type&amp;gt;
    &amp;lt;service-impl&amp;gt;
    {com.*.OrganizationHook} // your OrganizationHook class entry
    &amp;lt;/service-impl&amp;gt;
&amp;lt;/service&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Tejas&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Tejas Kanani</dc:creator>
    <dc:date>2014-03-14T03:27:22Z</dc:date>
  </entry>
  <entry>
    <title>6.2 IDE Hook project</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35658920" />
    <author>
      <name>Michael Oliver</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35658920</id>
    <updated>2014-03-14T02:58:37Z</updated>
    <published>2014-03-14T02:58:37Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I have been away from Liferay for a while, probably 6.0 and I downloaded the new set, the 6.2  IDE, 6.2 Bundle with tomcat, 6.2 SDK.&lt;br&gt;&lt;br&gt;I created a plugin project for a Hook.&lt;br&gt;&lt;br&gt;I created a new class as follows...I implemented all methods but I am not showing them all because they are all the same...&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
public class OrganizationHook extends OrganizationLocalServiceWrapper {

	/**
	 * @param organizationLocalService
	 */
	public OrganizationHook(OrganizationLocalService organizationLocalService) {
		super(organizationLocalService);
		// TODO Auto-generated constructor stub
		System.out.println("MuleCAREHook -OrganizationHook");
		
	}

	@Override
	public void addGroupOrganization(long groupId, long organizationId)
			throws SystemException {
		System.out.println("MuleCAREHook -addGroupOrganization(long groupId, long organizationId)");
		
		super.addGroupOrganization(groupId, organizationId);
	}

	...
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I did a right click on the project Liferay-&amp;gt;SDK-&amp;gt;All and everything seemed fine.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
Mar 14, 2014 2:43:19 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
02:43:19,902 INFO  [localhost-startStop-1][HookHotDeployListener:687] Registering hook for MuleCAREHooks-hook
02:43:19,904 INFO  [localhost-startStop-1][HookHotDeployListener:814] Hook for MuleCAREHooks-hook is available for use
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;But when I run Liferay and login as admin and add an organization or update its details, I don't see the System.out.println("..");&lt;br&gt;&lt;br&gt;I went to the Hook Tutorial and the example clearly shows the same thing...although the tutorial isn't using the IDE.  &lt;br&gt;&lt;br&gt;Do I need to configure log4j in my Hook and change all my System.out.println to loggers?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Michael Oliver</dc:creator>
    <dc:date>2014-03-14T02:58:37Z</dc:date>
  </entry>
</feed>
