I'm expanding on an earlier post where I explained how to deploy JAX-RS Web Services to the Oracle Cloud. In that entry the web service simply returned a hard-coded "Hello World". In reality, you most likely want your web service to expose something more meaningful. In this post I'm going to expand the HelloJerseyApp to display the results from a table, which I'll expose using a JPA entity.
Web Development Tools
So, what does it take move your existing application to the cloud? As you'd hope, not much.
When you're adding a table record and need a primary key, you can choose to generate one yourself or let the Java Persistence API do that for you. In this entry, I'm going to review a couple of the alternatives the JPA provides you for creating primary keys.
If you find yourself needing to work with composite primary keys, the JPA's got you covered. However, there's more to it than simply setting at @Id annotation. In this blog entry I discuss the details.
Struggling to get control over the browser's back button? Are new browser windows and tabs reeking havoc on HTTP session management with in your web application? Start a conversation with JBoss' Seam framework to get past these annoying problems.