How to use Spring Rest Service with REST Component in Mule

Utsav

Hi I am working with Mule Studio and I want to use Spring Rest Service with REST component in the Mule. So how can I access Spring REST features with REST Component I don't want to use Jersey way of creating REST service with Mule.

I just want to declare one REST controller with spring annotation that will automatically invoke.

enter image description here

user1760178

Mules Rest Component is a Jersey implementation of JAX-RS which loads the resource classes so that they can be accesses as Rest URLs.

Spring Rest Controller is the Spring way of creating a Rest service which runs ona web-container. If you want to run the SpringRestController based rest service on Mule you can package and deploy it directly on Mule standalone. Mule can run a web applicaiton as it contains an embedded Jetty container.

Unfortunately you cannot include a Spring RestController into the Mules's REST component(which is a Jersey implementation). Controller's purpose is not to serve as a component.

By the way in Mule also you just need to specify the annotations and provide the resource class to the REST component. Mule takes care of the rest.

Hope this helps.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

LazyInitializationException with a Spring REST service

From Dev

how to build a spring boot jar exposing both rest and soap service

From Dev

Spring authentication REST service programmatically

From Dev

How to do service discovery for Spring Boot REST endpints

From Dev

How to generate WADL for Spring REST Service

From Dev

Rest service producing Strange response in Mule

From Dev

How to get HTTP status code for REST service in Mule

From Dev

Spring REST Service Certificate auth

From Dev

Consuming REST service with basic authentication from MULE

From Dev

Mule : Calling a Rest service on mule context startup

From Dev

How to create a REST service with spring-boot?

From Dev

Mule REST Component Return type

From Dev

Spring boot rest service, how to get it to marshal the links as properties?

From Dev

Mule 3.6 Rest component not working and getting resource not found issue

From Dev

Spring 4 MVC - Rest service - use default values in beans

From Dev

Spring rest service with SseEmitter

From Dev

Mock rest service (with spring) in junit

From Dev

How to use Firebase with Spring boot REST Application?

From Dev

Spring Reactor with REST Service

From Dev

How to Use Content Negotiation in Spring Data Rest?

From Dev

How to use Firebase with Spring boot REST Application?

From Dev

How to log time taken by Rest web service in Spring Boot?

From Dev

How to use Azure mobile service REST api?

From Dev

how to create jackson based json rest service with Spring 2

From Dev

LazyInitializationException with a Spring REST service

From Dev

Combine Spring REST service with Wicket

From Dev

Consuming REST service with basic authentication from MULE

From Dev

Multipart with Spring Boot Rest Service

From Dev

How to Use Content Negotiation in Spring Data Rest?

Related Related

  1. 1

    LazyInitializationException with a Spring REST service

  2. 2

    how to build a spring boot jar exposing both rest and soap service

  3. 3

    Spring authentication REST service programmatically

  4. 4

    How to do service discovery for Spring Boot REST endpints

  5. 5

    How to generate WADL for Spring REST Service

  6. 6

    Rest service producing Strange response in Mule

  7. 7

    How to get HTTP status code for REST service in Mule

  8. 8

    Spring REST Service Certificate auth

  9. 9

    Consuming REST service with basic authentication from MULE

  10. 10

    Mule : Calling a Rest service on mule context startup

  11. 11

    How to create a REST service with spring-boot?

  12. 12

    Mule REST Component Return type

  13. 13

    Spring boot rest service, how to get it to marshal the links as properties?

  14. 14

    Mule 3.6 Rest component not working and getting resource not found issue

  15. 15

    Spring 4 MVC - Rest service - use default values in beans

  16. 16

    Spring rest service with SseEmitter

  17. 17

    Mock rest service (with spring) in junit

  18. 18

    How to use Firebase with Spring boot REST Application?

  19. 19

    Spring Reactor with REST Service

  20. 20

    How to Use Content Negotiation in Spring Data Rest?

  21. 21

    How to use Firebase with Spring boot REST Application?

  22. 22

    How to log time taken by Rest web service in Spring Boot?

  23. 23

    How to use Azure mobile service REST api?

  24. 24

    how to create jackson based json rest service with Spring 2

  25. 25

    LazyInitializationException with a Spring REST service

  26. 26

    Combine Spring REST service with Wicket

  27. 27

    Consuming REST service with basic authentication from MULE

  28. 28

    Multipart with Spring Boot Rest Service

  29. 29

    How to Use Content Negotiation in Spring Data Rest?

HotTag

Archive