blob: fb0f12d6dd0ff34899c8b1a097d597cb6226ffa2 [file] [log] [blame]
---
layout: post
status: PUBLISHED
published: true
title: Sample Application with JSF, JPA and OpenWebBeans
id: dc5ca012-6adf-424c-8055-9f684a92d209
date: '2009-05-14 20:17:09 -0400'
categories: owb
tags:
- owb
permalink: owb/entry/sample_application_with_jsf_jpa
---
<p>We have written a real sample application written with <b>JSF + JPA +OWB</b>. It is called "<b><span id="lw_1242331916_6" class="yshortcuts">Hotel Reservation Application</span></b>". You can create "Admin" and "Normal" user accounts. "Admin" is responsible for defining hotels etc, and user&nbsp; creates a <span id="lw_1242331916_7" class="yshortcuts" style="background: transparent none repeat scroll 0% 50%; cursor: pointer; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">hotel reservation</span>.<br />Altough it is a simple application, it uses and shows most of the functionality that are defined in the <b>JSR-299</b>, including <b><i>Scope and Contexts, Interceptors,Decorators, Events and Observer</i></b>s etc.</p>
<p><b>STEPS TO RUN</b><br />-------------------------------<br />It is located in the trunk[1]/samples/reservation directory. In this directory</p>
<p>> mvn clean install -Pjetty --> to compile and install<br />> mvn jetty:run -Pjetty &nbsp;--> to run the jetty container</p>
<p>Then, <a target="_blank" href="http://localhost:8080/reservation"><span id="lw_1242331916_8" class="yshortcuts">http://localhost:8080/reservation</span></a><br />Voila, enjoys it!</p>
<p>[1]http://svn.apache.org/repos/asf/incubator/openwebbeans/trunk/</p>
<p>OWB Team</p>