2

I am using JavaScript HttpAdapter in my maven project. I have a situation where my customer expects to have more than one HttpAdapter as part of the adapter.xml file. This is something that I have not tried before.

Is it possible to have more than one adapter configuration in a single file? Does IBM MFP adapter support this?

If yes, please share your thoughts.

Thanks, Janarthanan

1 Answers1

2

my customer expects to have more than one HttpAdapter as part of the adapter.xml file.

You can't have an adapter.xml file for more than one adapter.

An Adapter is a separate Maven project. You can create one adapter with multiple Procedure.

Is it possible to have more than one adapter configuration in a single file?

If you are creating multiple adapter in a project then you can put all adapter in a one file. enter image description here

Also you can build & deploy all adapter from project root folder using these command:

mfpdev adapter build all
mfpdev adapter deploy all
Gaurab Kumar
  • 2,144
  • 2
  • 17
  • 29
  • 1
    I'm not clear on what you mean here by a "single file". You can't have an adapter.xml file for more than adapter. Do you mean single project? – John Gerken Jun 28 '17 at 12:01
  • @JohnGerken correct. here i mean to say that keep all adapters ( maven project) in one file. see the updated answer. Thank you. – Gaurab Kumar Jun 28 '17 at 12:30
  • @Gaurab Kumar - Thanks for your reply, will check it out and get back to you. – Ramesh Kumar Jul 10 '17 at 12:12
  • 1
    Usually 'adapters' folder should contain a main pom.xml that will act as a main project file for all adapters. You add your adapters in main pom.xml into the .. section. – Mykola Jul 24 '17 at 11:12