how to converting batch EOD EJB call to REST API call - rest

This is using Spring REST API.
I need some blueprint and any real time example.
Thanks.

Related

Apache Ignite Rest API calls. (Any Ideas about Apache Ignite SDK?)

We are trying to store data from XML in Apache ignite cache, which is set up in a Kubernates cluster in Azure. We have a spring boot application, added ignite dependency, parsing the XML using jaxb to pojos and storing the data. But the ignite cache put operation is taking a lot of time. ( Because we are dealing with 500K - 1M lines of XML
As an alternative, we trying to use this REST API calls provide by ignite itself in our application. (https://apacheignite.readme.io/docs/rest-api)
My questions:
Does anybody have working example to do this in spring boot? Can it be done using Ignite SDK? (We know we can send get and put request using rest template in spring boot.)
Is it possible to send json response to this rest API? If so, How? Examples please.
Thanks for your response. Will help us a lot.
If your underlying problem is loading 1mm records is too slow, using the REST interface is not the solution. Instead, you should consider using the DataStreamer API, which is designed to ingest large amounts of data. You probably also don't need to convert your XML objects into POJO, but that's an optimisation you might not need right now.

Quickest way to generate a REST API from a set of database views

I have a set of simple views in my database that I want to expose via a REST API. I'd rather not write specific code to do this. Is there a framework or toolset that could allow me to generate the REST API either at build time or run-time? Java eco-system preferred.
From the Java world: Spring Data REST does that: https://spring.io/guides/gs/accessing-data-rest/

How to configure and call the RSDL or WADL for REST web service?

I want to implement the RSDL or WADL for REST webservice. I got the syntax for it from wiki, but not able to configure it in project. Can anyone tell me how the configuration is done and how to call. Basically how it works as far as workflow is concerned?
Finally I used Jersey for REST webservice implementation. And Jersey auto generates the WADL for the web service. In order to access the WADL, you need to just append the '/application.wadl' to your REST base URL.
For example: "http://www.companyname.com/rest/application.wadl"

HDIV Integration with RESTful webservice

I'm creating a web application containing RESTful webservices and I was wondering how I can properly integrate HDIV with this part of my webapp.
For now, I'm defining each webservice URL as startPage:
<hdiv:startPages>/ws/ws1,/ws/ws2,...</hdiv:startPages>
Is there a way to change that? does <hdiv:startPages>/ws/*</hdiv:startPages> or something like that exists?
You can use Java patterns to define start pages:
<hdiv:startPages>/ws/.*</hdiv:startPages>
Anyway, you can try Spring HATEOAS and Hdiv's experimental integration to securize the REST services.

SOAP to REST and REST to SOAP mediation in Fuse ESB

I have a requirement where I would be receiving SOAP calls and have to mediate it to rest calls to invoke some services using fuse ESB. Is there any facility in Fuse to achieve this?
Any help will be greatly appreciated.
Regards
It's fairly straight forward. I just posted an example of exposing some GitHub REST api calls as SOAP calls here http://code.notsoclever.cc/camel-soap-rest-bridge-example/
I used a processor and HTTPUrlConnection to make the REST calls but you could also use the CXFRS or Restlet components to make the REST calls.