In part 1, yesterday, we deployed a Node.js application, with static resources architected on Orace JET, to the Application Container Cloud Service (ACCS). However, ACCS is also applicable to Java SE applications.
There are several use cases for running Java SE applications on ACCS:
http://docs.oracle.com/cloud/latest/apaas_gs/apaas_tutorials_create_sample_java_se_applications.htm
I followed this scenario:
However, I wanted to serve up JSON, rather than Strings, so I rewrote "getAllCustomers" in "CustomerService" to the following:
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/all")
public GenericEntity<list> getAllCustomers() {
List list = CustomerList.getInstance();
return new GenericEntity<list>(list) {};
}</list</list
More info in this example for JSON-related scenarios: Read the complete article here.
For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.