How to provision odata service by using s4sdk? - s4sdk

I have create a project by using s4sdk and build a spring boot application which can consume the ODATA service provided by a on-premise ABAP backend system (by leveraging VDM). Now I want to make my application able to provision some ODATA service to outside. I know "SAP Cloud Platform SDK for service development" can do it. Do I need to introduce it into my project and how? Or "s4sdk" already contains it. I notice I can already use the annotation like "#Read" to create service implementation class in my project. But after creating the implementation class and put the edmx file under the resource/edmx fold. The exposed ODATA service doesn't work. Any tips for that? Thanks very much.

Let me refer you to the blog series about the SAP Cloud Platform SDK for service development.
The reason why you can use #Read is, as you have already assumed, that the SAP S/4HANA Cloud SDK already declares the SAP Cloud Platform SDK for service development in its BOM.
Apart from that, while the SAP S/4HANA Cloud SDK manages the correct version of the SAP Cloud Platform SDK for service development, we recommend that you mention the dependency of the SAP Cloud Platform SDK for service development explicitly in your pom.xml (w/o hard-wiring its version).

Related

Detect Cloud Platform in LogBack for Spring Boot Application

We want to develop a core module using Spring Boot which has robust support for Logger with multiple cloud providers.
Hence, we choose to develop it using Spring LogBack.
Let's say if we have PCF or GCP as cloud platform, how can i enable the different appenders based on the Cloud Platform?
I know that there's a CloudPlatform(class), but don't know how to configure it for different platform on the fly.
I followed below approach to solve my problem.
In the CloudPlatform class, spring code checking two environment variables 'VCAP_APPLICATION' & 'VCAP_SERVICES' to detect the PCF environment.
I also used the same variables in the logback file using Janino Library to check whether those(variables) exists or not.
Hope this help some one..

Spring Cloud Data Flow Server for OpenShift

Need to setup Spring Cloud Data Flow Server on Openshift. Is there any reference or official docker image that can be used?
The Spring-team do not officially build, maintain, or release the SCDF implementation for Openshift; however, we have a community implementation developed by ABSA in South Africa.
More details about the implementation here.
Just checking if SCDF is now officially supported on OpenShift since its been over one year since your last comment above.. we are planning to use SCDF in our project and OpenShift is one of the deployment options in front of us. But if SCDF is still not officially supported then we have to reevaluate our options. Can you please confirm.

how to create spring template project in sts-3.6.3?

please suggest if is there any other solution to do scaffolding of an app in STS.
In many examples/tutorials about creating web services using Spring MVC framework are using Spring MVC project template. I can't find it in my project tempaltes list. Am i missing some plugin installed?
The best way to create a new Rest service Spring app in STS 3.6.3 and beyond is to select the "Import Spring Getting Started Content". This allows you to get the guides from http://spring.io/guides directly into your workspace. If you look for "Rest Service" in the list of available guides, the wizard will download the initial and the completed version of this guide, showing you how to write a Rest service using the latest Spring versions. The completed version of the project could also be used for just creating a new Spring project and continue to do development from there.

Steps to run metro (JAX-WS) on Websphere 6.1

Anyone knows the steps to run JAX-WS on Websphere 6.1? JAX-WS website doesn't lists any step. Though other frameworks like Apache cxf do list the steps to configure on Websphere 6.1
The ideal way is to use the free, supported WebSphere Feature Pack for Web Services. Although regrettably, this requires you to create a new Profile in WebSphere. But it provides integrated, supported JAX-WS capability without needing additional libraries.
Are you asking about using a specific JAX-WS implementation? Like the Reference Implementation? If so, is there a particular reason you need to use that one?

How to integrate a SpringSource dm Server into another OSGi-based application server?

I would really like to use SpringSource dm Server, but our customer requires us to run our apps on their application server (Websphere). Is there a way to integrate SpringSource dm Server with other application servers? At least dm Server is build on OSGi, and many other application servers (including Websphere) are based on OSGi as well. Is it possible to run a SpringSource dm Server as a websphere component?
SpringSource dm Server is based on the Eclipse Equinox OSGi framework (and should not be confused with the Spring DM technology, included in dm Server, which can run on Equinox, Apache Felix, and Knopflerfish).
However, embedding dm Server in another application server, such as WebSphere Application Server, based on Equinox would be a non-trivial piece of work. It would be necessary to get both products to use the same version of Equinox, which they currently do not, then modify dm Server to support embedding in the server (e.g. to integrate with the host server's application invocation mechanism, thread pools, and class loading scheme).
If you think this support is important, please raise a requirement (which requires a simple registration) against dm Server.
Spring DM is deployed on a Knoplerfish OSGi implementation.
Websphere is deployed on an Equinox OSGi implmentation.
So the question becomes - are the two interchangeable? They both support R4, so I would say, yes, they are.
The next question would be to check dependencies, particularly with respect to things like HttpServices.
I would say this would be ok, but I think the final proof would be try deploying it. Easiest would be to drop the bundles into a Websphere deployment. You'll need your bundles and whatever spring bundles you're using.
I'm also interested in this topic. Another way of looking at this problem is that you want an application depoyable in both Spring dm server and a traditional app server (Websphere, weblogic, JBoss, ...).
The OSGi containers are embeddable inside non-OSGi applications, so it is theoretically possible to deploy an app to both Spring dm server and the same app + OSGi container to a traditional app server.
Now, as usual, the devil's in the details, including such topics of web development and bridging servlets between the outer app server and the OSGi container.
I do not think that this is really the case ...
see the following link for this: http://apsblog.burtongroup.com/2008/11/websphere-7-osgi.html
But it seems on the other side, that the trend is clear ... there will be a time when OSGI based application can be deployed on Java EE application servers

Resources