25.01.2015 Views

Using the Java Gateway in a Production - InterSystems Documentation

Using the Java Gateway in a Production - InterSystems Documentation

Using the Java Gateway in a Production - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2<br />

<strong>Us<strong>in</strong>g</strong> <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> <strong>in</strong> a <strong>Production</strong><br />

This chapter describes how to use <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> <strong>in</strong> a production. It discusses <strong>the</strong> follow<strong>in</strong>g topics:<br />

• Add<strong>in</strong>g <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> Bus<strong>in</strong>ess Service<br />

• Sett<strong>in</strong>gs for <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> Bus<strong>in</strong>ess Service<br />

• Call<strong>in</strong>g Bus<strong>in</strong>ess Service Methods<br />

• Creat<strong>in</strong>g a Bus<strong>in</strong>ess Operation<br />

• Call<strong>in</strong>g API Methods<br />

• <strong>Us<strong>in</strong>g</strong> <strong>the</strong> Command Prompt<br />

• <strong>Us<strong>in</strong>g</strong> <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> Wizard<br />

• Error Check<strong>in</strong>g<br />

• Troubleshoot<strong>in</strong>g<br />

2.1 Add<strong>in</strong>g <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> Bus<strong>in</strong>ess Service<br />

While it is possible to start <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> server from <strong>the</strong> command prompt, <strong>the</strong> simplest way to use <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong><br />

with an Ensemble production is to add and configure <strong>the</strong> EnsLib.<strong>Java</strong><strong>Gateway</strong>.Service class as a bus<strong>in</strong>ess service with<strong>in</strong><br />

<strong>the</strong> production. You can only do this if <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> server is on <strong>the</strong> local mach<strong>in</strong>e where you are runn<strong>in</strong>g Ensemble.<br />

O<strong>the</strong>rwise, you need to start <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> server from <strong>the</strong> command prompt. For details, see “<strong>Us<strong>in</strong>g</strong> <strong>the</strong> Command<br />

Prompt.”<br />

Important:<br />

You cannot add a <strong>Java</strong> <strong>Gateway</strong> bus<strong>in</strong>ess service to a production runn<strong>in</strong>g on an OpenVMS operat<strong>in</strong>g system.<br />

The service starts <strong>the</strong> gateway us<strong>in</strong>g pipes and command pipes, which are not operational on OpenVMS.<br />

To add <strong>the</strong> EnsLib.<strong>Java</strong><strong>Gateway</strong>.Service class as a bus<strong>in</strong>ess service <strong>in</strong> your production, use <strong>the</strong> [Ensemble] > [<strong>Production</strong><br />

Configuration] page of <strong>the</strong> Management Portal. The follow<strong>in</strong>g steps summarize <strong>the</strong> configuration procedure:<br />

1.<br />

Click <strong>the</strong> add icon (<br />

) next to <strong>the</strong> Services column to start <strong>the</strong> Bus<strong>in</strong>ess Service Wizard.<br />

2. Click <strong>the</strong> All Services tab, and choose EnsLib.<strong>Java</strong><strong>Gateway</strong>.Service as <strong>the</strong> Service Class. You may accept <strong>the</strong> default<br />

values for <strong>the</strong> o<strong>the</strong>r sett<strong>in</strong>gs.<br />

3. Click OK to display <strong>the</strong> updated production diagram.<br />

<strong>Us<strong>in</strong>g</strong> <strong>the</strong> <strong>Java</strong> <strong>Gateway</strong> 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!