Start the GlassFish application server.
Access Admin Console by pointing your browser at http://localhost:4848
If your application server is running on a remote machine, and/or uses a port other than 4848 for administration, make the appropriate changes to the URL.
Log in to Admin Console.
In the Common Tasks pane on the left side, expand Applications -> Connector Modules.
If “sun-hl7-adapter” appears in the list, the RAR has already been installed.
In the “Deploy Enterprise Applications/Modules” pane, do the following and then click OK.
In the “Edit Resource Adapter Properties” pane, you can optionally supply or edit properties. Then click Finish.
Result: Once you have deployed the global RAR onto the application server, you will be able to see it in the NetBeans IDE under Servers -> GlassFish V2 -> Applications -> Connector Module: