# Load 2 Gatewayhooks in 1 Module

**URL:** <https://forum.inductiveautomation.com/t/load-2-gatewayhooks-in-1-module/70660>\
**Category:** Module Development\
**Created:** [March 6, 2023, 11:31am UTC](https://forum.inductiveautomation.com/t/load-2-gatewayhooks-in-1-module/70660 "2023-03-06T11:31:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roland.scheuer](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@roland.scheuer](https://forum.inductiveautomation.com/u/roland.scheuer)\
**Post date:** [March 6, 2023, 11:31am UTC](https://forum.inductiveautomation.com/t/load-2-gatewayhooks-in-1-module/70660/1 "2023-03-06T11:31:15Z")

</div>

Hello,

is it possible to have 2 Gateway Hooks in one Module.

```auto
  <hooks>
    <hook>
        <scope>G</scope>
      <hookClass>example.DeviceLoader</hookClass>
    </hook>
    <hook>
        <scope>G</scope>
        <hookClass>example.TagProvider</hookClass>
    </hook>
</hooks>

```

I wanted to have a Module which creates a Tag Provider and also a Device. But it seems it only loads  
1 of the classes.

I already searched in forum but dont find any solution, so now im not sure if its even possible.

Thank you in advance!

br,  
Roland

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 6, 2023, 3:02pm UTC](https://forum.inductiveautomation.com/t/load-2-gatewayhooks-in-1-module/70660/2 "2023-03-06T15:02:42Z")

</div>

No, only one gateway hook is possible. You will need to compose the multiple extension point functionality within a single hook.
