Hi,
Is it possible to set up an OpenEdge REST service (I have this bit working) and also have a Java Web App running on the App Server?
Alternatively have a java Appserver and access it through the OE REST service?
If this isnt possible, what would be the best way to have both a OE and Java back end? Would I just need to set up a java project/Rest service and a OE REST service seperately and hit the two different servers from my client front end?
Cheers,
Paul.
The OpenEdge a REST adapter is just a web app. It can be deployed with other web apps (which can be written in Java if you have a java web server)
You probably DO want to deploy all your Web Apps / war files on one WebServer to avoid CORS issues (Cross-Origin Resource Sharing). Having a common base URL will help you. =
Thanks for the reply. I've created a test java .war file and deployed it.
the only issue I have now is that if I set the path of both apps so tat they are the same, the java app returns with "not Authorised" - So I think I need to give it access in the OE spring setup somehow?
Hi Paul,
In your web application, if you have deployed two wars
1. OpenEdge REST Service War file
2. Your own Java war file
If you access the REST Service then it has to go through it own Security mode. It will ask for credentials if the REST Security in the Application web.xml file is something other than "anonymous".
Your Java Application should be accessed without providing any user credentials(If you haven't set anything specifically inside your Java Application).Make sure that you could access the Application if you could deploy it to a plain tomcat. It should be as similar as that of deploying a "aia" or "wsa" servlet inside the webapp and accessing it.
If I deploy the app on it's own path it works ok, for example:
http://127.0.0.1:8980/JAXRS/jaxrs/address/
But if I set the path for both the progress and the java app the same:
http://127.0.0.1:8980/tesRestService/jaxrs/address
http://127.0.0.1:8980/testRestService/rest/winnerTrader
the Progress app works, but the java app fails authorisation? There is no security on the java app.