简体   繁体   中英

Calling External Web Service via Apache Camel

I have an external Rest Web Service which returns JSON Object.

Url Pattern: http-://Server_IP:Port/auth/Login. I would like to capture the json and using camel-jetty for the same.. The Problem is that it shows 'Address Already In Use'

Could anyone guide me the exact procedure to use a camel component to achieve the same??

    from("jetty://http://ServerIP:8097/ServerReportRest/Auth/login")
            .to("log:INFO");
        }

    });

It seems that another process is running using the same port 8097. Kill that other process or choose another port for your jetty server.

See Address already in use: JVM_Bind java .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM