Application Container Cloud, Oracle JET, and NetBeans IDE (Part 2) by Geertja

Posted: October 16, 2016 in Cloud, JDeveloper & ADF, WebLogic
Tags: , , , , , , , , , ,

image_thumb[1]

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:

http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/apaas/griz-jersey-intro/Grizzly-Jersey-Intro.html

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.

WebLogic Partner Community

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.

Blog Twitter LinkedIn Forum Wiki

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s