Create Simple Java Adapter for MobileFirst Foundation 8.0 IBM – Eclipse

Create Simple Java Adapter for MobileFirst Foundation 8.0 IBM – Eclipse

1.) Open Eclipse ( I used Eclipse Mars) , Create New Maven Project in Eclipse.

mavenproj_adapter.jpg

2.) Add the Archetype (using – adapter-maven-archetype-java) :

mavenproj_adapter2.jpg

3.) Add the Group Artifact.

Group id : (is your domain) com.fndong.mfp

Artifact id:(Your Project name) AdapterMfp

mavenproj_adapter3.jpg

  • Click Finnish button.

mavenproj_adapter4.jpg

  • It will generate the structure of java project with pom.xml

4.) Building an adapter. – Using cmd windows with mfp -mobilefirst CLI.

  • Go to Root project , type this command : mfpdev adapter build

mavenproj_adapter5.jpg

5.) Run the MobileFirst Foundation Server 8.0, so you can deploy the adapter to console.

  • Run Mobilefirst CLI command : mfpdev adapter deploy -x

mavenproj_adapter6.jpg

6.) Check the mobilefirst console :

console_adapter.jpg

7.) Testing the AdapterMfp application, Click Adapter application and click tab Resources > Click button View Swagger Docs.

7.1.) test the Restful GET

test_get_rest.jpg

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s