Hi all,
I need expert advice. I am a developer and am not an ADF/JDev expert nor a React expert, obviously, or I wouldn't be posting a question.
We are updating/rewriting the front-end of our application using React. I am working on the register new user component and would like to reuse the current back-end but the legacy application uses managed beans to send form data to an OIM client to create a user.
Is it possible to call the method in this managed bean from a React component using an HTTP request (in React, fetch POST method) or does the entire legacy application need to be rewritten as a Webservice or REST app or microservice. Or can adding some HTTP method/action/?? to the bean be the answer? If the legacy app needs to be rewritten as a service is there a simple way within ADF to perhaps wrap the bean/app in a REST API?
Any and all assistance is welcome. I have spent days looking for solutions with many different answers the most negative being: "No, it is not possible."
env:
Oracle JDeveloper 11g (11.1.1..9.0)
jdk-9.0.4_windows
BEAN:
public class CreateUserBean implements Serializable, SelfRegConstants {
... ... ...
CreateUserBean.registeruser(ActionEvent actionEvent) throws NamingException{}
}
--->
UnauthenticatedSelfService unauthenticatedSelfService = _oimClient.getService(UnauthenticatedSelfService.class);
requestId = unauthenticatedSelfService.submitRegistrationRequest(user, new HashMap<String, Object>(), template, mapAttrRef);
Thank you,
Elizabeth