Spring Boot with Control-M - spring-boot

I am starting to read about Control-M batch automation and am unfamiliar with it at this moment. I have been asked to investigate if Control-M can be integrated into a Spring Boot REST API.
Based on my readings, I find this confusing. All I am finding is that Control-M can be integrated to work with Spring Batch, but not with Spring Boot REST APIs.
It also makes no sense to me to integrate batch processing with API handling requests and responses. It seam to be a not good idea have these two complete for resources and processing power.
Has anyone done this before and what are your recommendations?
UPDATE
My initial understanding was that Control-M will be integrated into the REST API written in Spring Boot. This was false assumption for my case.
Instead, another (Spring Batch) application was created and Control-M would initiate its endpoints to handle processing.

Its a confusing question because APIs, especially REST apis, are designed to be independant of programming language. If you want, you can execute them from a browser. Asking if one language or java library supports REST apis vs another language or java library makes little sense. If Control-M supports REST Apis, then yes, you can use spring boot to execute those rest requests. You just have to know spring boot.
As for the main question, does Control-M support REST requests? Yes, according to this documentation, it does.

If you asked how to request REST then you can create a 'Web Services' job or a common CMD job with the 'curl' command.

Related

How to Integrate a process (bonitasoft)into an application spring boot by webservice?

I am trying to integrate Bonita with Spring in order to implement a custom UI for my workflow processes.
I know Bonita provides a REST API out-of-the-box for this matter but I was thinking maybe there is already a java library for this API ready to use with Spring.
A first option would be to use the Bonita Java client library that can talk to Bonita Engine API using direct Java calls, HTTP or EJB. But this Java client does not enforce some security rules defined at an higher level. Moreover the current evolution focus on the Bonita Engine REST API.
So my recommendation would be to rather use the REST API and add a library (such as retrofit) to do the wrapping between your Java code and the REST API calls.
For my suggestion I recommend to keep a Bonita server running independently of your application. You just need to make sure that Bonita service is actually available before trying to call it.

Spring Integration Webservice vs. RestTemplate

I'm trying to learn SI (Spring Integration) but i'm a bit confused on the real usage of this.
As first example i would like to interact with a WebService but i dont understand what could be the difference from
Invoke a WebService Using SI
Invoke a Webservice using RestTemplate
So, what is the benefit of using SI (in Webservice context, or in other context)?
Looking the web, i havent find an article that explain:
Usually you will do in this way....
With SI you can do better - in this another way - and the benefit are....
To be more explicit on what i have to realize, this is an example:
1) I have to write an application (Standalone application) that have to collect some data in the system periodically and then invoke a Web Service that will store it.
2) The Web Service receive the call from the "clients" and store in the database.
My webservice will use REST.
The reason because i've think to use SI is that the Standalone Application should interact with different system
Webservice in first instance
A Web Mail, if the webservice is not achievable
File system if Web mail is not achievable too
If you only need to pull some data in a simple way and push it onwards to a REST service this does not "justify" the use of Spring Integration. A simple Spring (Boot) application combined with a scheduler will be sufficient.
But if you want to use a more complex data source for which an endpoint is available, you need transformations, complex and flexible routing is a high priority or even Enterprise Integration Patterns (EIP) then Spring Integration is for you. Have a look at the Overview and decide if it mentions something you consider as valuable to you.
Perhaps you will create additional value by mixing in Spring Batch if you need to process a lot of data.
But as I understand your current demand starting with just a RESTTemplate should do for the moment. Starting small will not prevent you from switching to Spring Integration later on.
Have a look at the various tutorials and guides provided by the Spring Boot project. There is even an example for Spring Integration.

why we use jersey with spring? What are the benefits?

I want to know that why we use jersey with spring and what are the benefits of using it.
I have searched on google but not getting proper answer so i am asking this question here.Sorry because i know my question is old but i am very confused now.
Please suggest me the example of jersey with spring and hibernate.
Thanx in advance.
I use Jersey2 with Spring in one of my projects and in the other Spring MVC4. The advantage of Jersey is its simplicity. If you are creating only RESTful Web services - use Jersey, if you have to generate also some web pages for users, consider to use Spring MVC.
Additionally, I develop my applications on Google Cloud, so the warm up time is very important (if there is a traffic spike, many instances have to wake up in the background to be ready for incoming requests) - according to my tests Jersey is a bit faster than MVC.
Here you have an example of complete configuration:
Integrating Jersey 2 and Spring with Java Based Configuration

Spring XD REST Service

I would like to have a REST service to expose the data read and processed from Spring XD. Similar to the one in the Analytics Server.
For example I would like my own functions which can be exposed similar to Counters and be able to access the data from a web browser.
Is there any tutorial? I have searched and found that Spring Boot is the one but I am looking for help on how I integrate it with Spring XD.
Would be very helpful if someone can point me to the instructions on how I can achieve this.
You can use trigger as a source with http-client as a processor processor to access any web browsers info regardless if it is a web service URL or not.
Moha.

load testing using multithreading for a spring rest ful webservice

I had implemented a restful service. I want to do a load testing for spring rest ful service. In this i want to check how many users can access a service. How to do that..Please provide me some information.
There are a variety of tools out there you can use for load testing. I've found JMeter to be a pretty robust open source option. Specifically for REST requests you can use the HTTP Request component.
That said, I'd be curious to hear what others are using.

Resources