Microprofile specification kafka in springboot app - apache-kafka

I have an app in Springboot and need to integrate org.eclipse.microprofile.reactive.Messaging. Don't look any documentation of these and I don't know if is possible. I try to use the org.eclipse.microprofile.reactive.Messaging.Emitter and configuration but don't work. Any know how can use? Thank you.
I try to inject the quarkus-smallrye-reactive-messaging-kafka dependency in my proyect but not work.

Related

Does spring native support spring-boot-starter-data-elasticsearch dependency?

I am trying to build a spring native image with ‘spring-boot-starter-data-elasticsearch’ dependency which uses RestHighLevelClient to interact with elasticsearch.
It turns out I always receive ‘connection refused’ exception. Any idea why this happens?
Note: My application is deployed in AWS Lambda.
Any help is much appreciated. Thanks in advance.

Cannot use same application for REST call what i have exposed for SOAP service in spring boot

I am trying to create a microservice using spring boot where it will expose REST service. But inside i also want to consume SOAP service. i have created one SOAP service in spring boot but i also i want to use the same application for my REST calls which i am not able to do. When i am hitting the base url, i can clearly see my SOAP service has been exposed correctly. But when i am hitting to a configured request mapping URI, it is failing to reach. I am very little understanding.. but i need your help to get the idea where i am missing big. Thanks in advance.
Please refer to the below screenshots
Working
Rest call mapping
Not working
Though your question lacks many vital informations, I would like to give it a shot.
How does your application.properties look like? Which spring boot version are you using?
If you are on latest spring boot, you can try adding
server.servlet.context-path=/demo to your /resources/application.properties file. That might be the missing piece here.

Restful webservice with Spring

I'm trying to learn how to build a restful webservice with Spring on tomcat external server but I'm only able to find guides that use spring-boot. I'd like to fully understand all the lifecycle, is there anyone who can help me to build a simple rest webservice from the scratch?
Are you offline when you do google search? :) just search the term "Spring Rest" see -> Spring Rest
And the first 10-20 results are all Spring boot and Rest guides.
yes with the help of spring boot to develop API is very easy. there is not any configuration required. for details please find the below post and I hope you will get answer of all your query.
https://kpblogs.com/java/spring/how-to-build-rest-web-servicesapi-using-spring-framework/

How to deploy a scala play 2 app in OpenShift?

Been googling around for some time already.
I have some java, nodejs, php, etc. applications deployed in openshift, and I want to deploy a scala play2.3 app now. I'm starting a new project and I really want to write it in scala with play.
I need either a way to deploy a play 2.3 app in openshift, or another free hosting service that provides the same tools.
Thanks in advance!
Regards
as i know Heroku hosting service let you deploy scala-play application. also it seems that OpenShift also provides the same functionnality.
You may try following QuickStart: https://hub.openshift.com/quickstarts/198-play-framework

Manage UDDI registry with CXF

I have an application using Apache CXF with a lots of SOAP services implemented. So, i would like to use the "service registry" concept and then, i´d hear about UDDI, but i dont know how to implemented that.
Is Apache CXF already composed by an API to deploy UDDI engine or should i fix another library to do that?
Take a look at JUDDI:
http://juddi.apache.org/
which is a UDDI service. The latest version is written to JAX-WS and is tested by default with CXF.
To add, jUDDI has a neat way to automate the registration of web services using annotations and a servlet startup listener.
Source: http://svn.apache.org/repos/asf/juddi/trunk/juddi-examples/uddi-annotations/