The problem: Why doesn’t my ClientModuleHook get called?
To my knowledge, everything should be set up correctly, but it just doesn’t work.
On the other hand DesignerHook works as expected. It’s only when I try
to run the project depending on the module as a client, it won’t mostly work, because everything
depends on running the hook.
Anyone got a clue? This is pretty much a show-stopper issue by preventing testing
and even actual use.
The facts: Here’s how I’ve set up things:
public class ClientHook extends AbstractClientModuleHook
{
public void startup(ClientContext ctx, LicenseState arg1) throws Exception
{
super.startup(ctx, arg1);
// - grab ClientContext for later use
// - expose Java/Jython bindings to dependent projects
...
}
...
}
<?xml version="1.0" encoding="UTF-8"?>
<modules>
<module>
<id>module_id</id>
<name>@NAME@</name>
<description>@DESCRIPTION@</description>
<version>@VERSION@</version>
<requiredignitionversion>7.2.2</requiredignitionversion>
<requiredframeworkversion>2</requiredframeworkversion>
<freemodule>true</freemodule>
<depends scope="G">xopc</depends>
<depends scope="D">fpmi</depends>
<jar scope="CD">mymodule.jar.pack.gz</jar>
<jar scope="G">mymodule.jar</jar>
<hook scope="C">my.module.class.path.ClientHook</hook>
<hook scope="G">my.module.class.path.GatewayHook</hook>
<hook scope="D">my.module.class.path.DesignerHook</hook>
</module>
</modules>
Version information:
Gateway is run in Developer Mode
Ignition Version 7.2.5 (b76)
Java Version Sun Microsystems Inc. 1.6.0_24
Thanks!