You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/05/05 12:12:24 UTC
svn commit: r653405 - in /myfaces/orchestra/trunk/core15/src: site/xdoc/
test/java/org/apache/myfaces/orchestra/conversation/
test/java/org/apache/myfaces/orchestra/conversation/model/ test/resources/
test/resources/META-INF/
Author: skitching
Date: Mon May 5 03:12:23 2008
New Revision: 653405
URL: http://svn.apache.org/viewvc?rev=653405&view=rev
Log:
Tabs to spaces, other minor tidyups
Modified:
myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml
myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml
myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/PersistentBackingBean.java
myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/TestConversationPersistence.java
myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/model/UserData.java
myfaces/orchestra/trunk/core15/src/test/resources/META-INF/persistence.xml
myfaces/orchestra/trunk/core15/src/test/resources/testApplicationContext.xml
Modified: myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml?rev=653405&r1=653404&r2=653405&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml (original)
+++ myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml Mon May 5 03:12:23 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//Apache Software Foundation//DTD XDOC 1.0//EN"
- "http://www.apache.org/dtd/xdoc.dtd">
+ "http://www.apache.org/dtd/xdoc.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@@ -20,22 +20,22 @@
under the License.
-->
<document>
- <properties>
- <title>Dynamic Forms</title>
- </properties>
+ <properties>
+ <title>Dynamic Forms</title>
+ </properties>
- <body>
- <section name="Dynamic Forms">
- <p>
- This is a core15 feature.
- </p>
- <p>
- The MyFaces Orchestra JSF tag called <code>dynaForm</code> enables you to dynamically create
- forms or lists - editable or just displayable - based on the annotation of your beans.
- </p>
- <p>
- ... more to come ...
- </p>
- </section>
- </body>
-</document>
\ No newline at end of file
+ <body>
+ <section name="Dynamic Forms">
+ <p>
+ This is a core15 feature.
+ </p>
+ <p>
+ The MyFaces Orchestra JSF tag called <code>dynaForm</code> enables you to dynamically create
+ forms or lists - editable or just displayable - based on the annotation of your beans.
+ </p>
+ <p>
+ ... more to come ...
+ </p>
+ </section>
+ </body>
+</document>
Modified: myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml?rev=653405&r1=653404&r2=653405&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml (original)
+++ myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml Mon May 5 03:12:23 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//Apache Software Foundation//DTD XDOC 1.0//EN"
- "http://www.apache.org/dtd/xdoc.dtd">
+ "http://www.apache.org/dtd/xdoc.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@@ -20,21 +20,21 @@
under the License.
-->
<document>
- <properties>
- <title>About Apache MyFaces Orchestra - Core15</title>
- </properties>
-
- <body>
- <section name="Apache MyFaces Orchestra - Core15">
-
- <p>
- The Apache MyFaces Orchestra Core15 module contains all the stuff requiring Java 5.0 features.
- </p>
-
- <p>
- Please find the documentation in the navigation panel on the left side.
- </p>
+ <properties>
+ <title>About Apache MyFaces Orchestra - Core15</title>
+ </properties>
+
+ <body>
+ <section name="Apache MyFaces Orchestra - Core15">
+
+ <p>
+ The Apache MyFaces Orchestra Core15 module contains all the stuff requiring Java 5.0 features.
+ </p>
+
+ <p>
+ Please find the documentation in the navigation panel on the left side.
+ </p>
- </section>
- </body>
+ </section>
+ </body>
</document>
Modified: myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/PersistentBackingBean.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/PersistentBackingBean.java?rev=653405&r1=653404&r2=653405&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/PersistentBackingBean.java (original)
+++ myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/PersistentBackingBean.java Mon May 5 03:12:23 2008
@@ -35,108 +35,108 @@
*/
public class PersistentBackingBean implements ConversationBindingListener
{
- /**
- * Inject a PersistenceContext that is associated with the conversation
- * that this bean instance is in.
- */
- @PersistenceContext
- private EntityManager entityManager;
-
- /**
- * A UserData instance read via the PersistenceContext object associated
- * with this bean, ie one associated with the conversation that this bean
- * is in.
- */
- private UserData restartedUser;
-
- private UserData createdUser;
-
- public PersistentBackingBean()
- {
- }
-
- public void valueBound(ConversationBindingEvent event)
- {
- }
-
- public void valueUnbound(ConversationBindingEvent event)
- {
- }
-
- public UserData getRestartedUser()
- {
- return restartedUser;
- }
-
- /**
- * Create a UserData object and commit it to the database.
- * <p>
- * Because this method is marked with the Transactional annotation, a
- * commit will be performed when the method returns successfully
- * (without exception), and a rollback will be performed when the
- * method throws an exception.
- */
- @Transactional
- public UserData createUser()
- {
- // Create an object that is not yet attached to a persistence context.
- UserData userData = new UserData();
- userData.setUsername("test");
-
- // Attach the object to the persistence context. Note that nothing
- // is written to the database at this point; that only happens when
- // the persistence context is flushed and committed. Due to the
- // Transactional annotation on this method, that happens when this
- // method returns.
- entityManager.persist(userData);
-
- createdUser = userData;
-
- return userData;
- }
-
- public UserData readUser(Long id)
- {
- return entityManager.find(UserData.class, id);
- }
-
- /**
- * Invalidate the conversation in which this bean lives.
- * <p>
- * This means that the next attempt to dereference a proxy or
- * EL expression will cause a new instance of this bean to
- * be created. A new Conversation instance will be created to
- * hold that bean, and a new PersistenceContext object will
- * also be created (and then injected into this instance).
- */
- public void invalidateConversation()
- {
- Conversation.getCurrentInstance().invalidate();
- }
-
- /**
- * Invalidate the conversation in which this bean lives, and
- * then create a new bean instance (in a new conversation) and
- * copy some data from the old to the new instance.
- * <p>
- * Using invalidateAndRestart allows information to be communicated
- * between one instance of this bean and its replacement.
- */
- public void invalidateAndRestartConversation()
- {
- PersistentBackingBean conv = (PersistentBackingBean)
- ConversationUtils.invalidateAndRestartCurrent();
- conv.setRestartedUser(createdUser.getId());
- }
-
- public void setRestartedUser(Long id)
- {
- restartedUser = readUser(id);
- }
-
- public void updateUser(Long id, String username)
- {
- UserData user = readUser(id);
- user.setUsername(username);
- }
+ /**
+ * Inject a PersistenceContext that is associated with the conversation
+ * that this bean instance is in.
+ */
+ @PersistenceContext
+ private EntityManager entityManager;
+
+ /**
+ * A UserData instance read via the PersistenceContext object associated
+ * with this bean, ie one associated with the conversation that this bean
+ * is in.
+ */
+ private UserData restartedUser;
+
+ private UserData createdUser;
+
+ public PersistentBackingBean()
+ {
+ }
+
+ public void valueBound(ConversationBindingEvent event)
+ {
+ }
+
+ public void valueUnbound(ConversationBindingEvent event)
+ {
+ }
+
+ public UserData getRestartedUser()
+ {
+ return restartedUser;
+ }
+
+ /**
+ * Create a UserData object and commit it to the database.
+ * <p>
+ * Because this method is marked with the Transactional annotation, a
+ * commit will be performed when the method returns successfully
+ * (without exception), and a rollback will be performed when the
+ * method throws an exception.
+ */
+ @Transactional
+ public UserData createUser()
+ {
+ // Create an object that is not yet attached to a persistence context.
+ UserData userData = new UserData();
+ userData.setUsername("test");
+
+ // Attach the object to the persistence context. Note that nothing
+ // is written to the database at this point; that only happens when
+ // the persistence context is flushed and committed. Due to the
+ // Transactional annotation on this method, that happens when this
+ // method returns.
+ entityManager.persist(userData);
+
+ createdUser = userData;
+
+ return userData;
+ }
+
+ public UserData readUser(Long id)
+ {
+ return entityManager.find(UserData.class, id);
+ }
+
+ /**
+ * Invalidate the conversation in which this bean lives.
+ * <p>
+ * This means that the next attempt to dereference a proxy or
+ * EL expression will cause a new instance of this bean to
+ * be created. A new Conversation instance will be created to
+ * hold that bean, and a new PersistenceContext object will
+ * also be created (and then injected into this instance).
+ */
+ public void invalidateConversation()
+ {
+ Conversation.getCurrentInstance().invalidate();
+ }
+
+ /**
+ * Invalidate the conversation in which this bean lives, and
+ * then create a new bean instance (in a new conversation) and
+ * copy some data from the old to the new instance.
+ * <p>
+ * Using invalidateAndRestart allows information to be communicated
+ * between one instance of this bean and its replacement.
+ */
+ public void invalidateAndRestartConversation()
+ {
+ PersistentBackingBean conv = (PersistentBackingBean)
+ ConversationUtils.invalidateAndRestartCurrent();
+ conv.setRestartedUser(createdUser.getId());
+ }
+
+ public void setRestartedUser(Long id)
+ {
+ restartedUser = readUser(id);
+ }
+
+ public void updateUser(Long id, String username)
+ {
+ UserData user = readUser(id);
+ user.setUsername(username);
+ }
}
Modified: myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/TestConversationPersistence.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/TestConversationPersistence.java?rev=653405&r1=653404&r2=653405&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/TestConversationPersistence.java (original)
+++ myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/TestConversationPersistence.java Mon May 5 03:12:23 2008
@@ -29,73 +29,73 @@
*/
public class TestConversationPersistence extends AbstractDependencyInjectionSpringContextTests
{
- protected String[] getConfigLocations()
- {
- return new String[]
- {
- "classpath:testApplicationContext.xml"
- };
- }
-
- protected void onSetUp() throws Exception
- {
- super.onSetUp();
+ protected String[] getConfigLocations()
+ {
+ return new String[]
+ {
+ "classpath:testApplicationContext.xml"
+ };
+ }
+
+ protected void onSetUp() throws Exception
+ {
+ super.onSetUp();
LocalFrameworkAdapter frameworkAdapter = new LocalFrameworkAdapter();
frameworkAdapter.setApplicationContext(applicationContext);
frameworkAdapter.setConversationMessager(new LogConversationMessager());
FrameworkAdapter.setCurrentInstance(frameworkAdapter);
- }
+ }
- public void testPersistence()
- {
- final String BEAN_NAME = "persistentBackingBean";
+ public void testPersistence()
+ {
+ final String BEAN_NAME = "persistentBackingBean";
- PersistentBackingBean conv = (PersistentBackingBean) applicationContext.getBean(BEAN_NAME);
+ PersistentBackingBean conv = (PersistentBackingBean) applicationContext.getBean(BEAN_NAME);
- /* create and reread a user */
- UserData user = conv.createUser();
- UserData user2 = conv.readUser(user.getId());
+ /* create and reread a user */
+ UserData user = conv.createUser();
+ UserData user2 = conv.readUser(user.getId());
- assertSame("has to be the same user",user , user2);
+ assertSame("has to be the same user",user , user2);
- conv.invalidateConversation();
+ conv.invalidateConversation();
- /* restart conversatin */
- UserData user3 = conv.readUser(user.getId());
+ /* restart conversatin */
+ UserData user3 = conv.readUser(user.getId());
- assertNotSame("should not be the same user", user ,user3);
- }
+ assertNotSame("should not be the same user", user ,user3);
+ }
- public void testRestartConversation()
- {
- final String BEAN_NAME = "persistentBackingBean";
+ public void testRestartConversation()
+ {
+ final String BEAN_NAME = "persistentBackingBean";
- PersistentBackingBean bean = (PersistentBackingBean) applicationContext.getBean(BEAN_NAME);
+ PersistentBackingBean bean = (PersistentBackingBean) applicationContext.getBean(BEAN_NAME);
- UserData user = bean.createUser();
+ UserData user = bean.createUser();
- bean.invalidateAndRestartConversation();
+ bean.invalidateAndRestartConversation();
- /* here we access the new conversation */
- UserData restartedUser = bean.getRestartedUser();
+ /* here we access the new conversation */
+ UserData restartedUser = bean.getRestartedUser();
- assertNotNull("should have got a user", restartedUser);
- assertNotSame("should not be the same user", user, restartedUser);
- assertEquals("has to be the same user id", user.getId(), restartedUser.getId());
+ assertNotNull("should have got a user", restartedUser);
+ assertNotSame("should not be the same user", user, restartedUser);
+ assertEquals("has to be the same user id", user.getId(), restartedUser.getId());
- /* end all conversations*/
- ConversationManager.getInstance().clearCurrentConversationContext();
+ /* end all conversations*/
+ ConversationManager.getInstance().clearCurrentConversationContext();
- bean.updateUser(user.getId(), "test2");
+ bean.updateUser(user.getId(), "test2");
- /* invalidate conversation */
- bean.invalidateConversation();
+ /* invalidate conversation */
+ bean.invalidateConversation();
- UserData user4 = bean.readUser(user.getId());
+ UserData user4 = bean.readUser(user.getId());
- assertNotNull(user4);
- assertEquals(user.getId(), user4.getId());
- assertEquals("test", user4.getUsername());
- }
-}
\ No newline at end of file
+ assertNotNull(user4);
+ assertEquals(user.getId(), user4.getId());
+ assertEquals("test", user4.getUsername());
+ }
+}
Modified: myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/model/UserData.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/model/UserData.java?rev=653405&r1=653404&r2=653405&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/model/UserData.java (original)
+++ myfaces/orchestra/trunk/core15/src/test/java/org/apache/myfaces/orchestra/conversation/model/UserData.java Mon May 5 03:12:23 2008
@@ -28,42 +28,42 @@
@Entity
public class UserData
{
- @Id
- @GeneratedValue(strategy= GenerationType.IDENTITY)
- private Long id;
-
- private String username;
-
- @Version
- private Long version;
-
- public Long getId()
- {
- return id;
- }
-
- public void setId(Long id)
- {
- this.id = id;
- }
-
- public String getUsername()
- {
- return username;
- }
-
- public void setUsername(String username)
- {
- this.username = username;
- }
-
- public Long getVersion()
- {
- return version;
- }
-
- public void setVersion(Long version)
- {
- this.version = version;
- }
+ @Id
+ @GeneratedValue(strategy= GenerationType.IDENTITY)
+ private Long id;
+
+ private String username;
+
+ @Version
+ private Long version;
+
+ public Long getId()
+ {
+ return id;
+ }
+
+ public void setId(Long id)
+ {
+ this.id = id;
+ }
+
+ public String getUsername()
+ {
+ return username;
+ }
+
+ public void setUsername(String username)
+ {
+ this.username = username;
+ }
+
+ public Long getVersion()
+ {
+ return version;
+ }
+
+ public void setVersion(Long version)
+ {
+ this.version = version;
+ }
}
Modified: myfaces/orchestra/trunk/core15/src/test/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/test/resources/META-INF/persistence.xml?rev=653405&r1=653404&r2=653405&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/test/resources/META-INF/persistence.xml (original)
+++ myfaces/orchestra/trunk/core15/src/test/resources/META-INF/persistence.xml Mon May 5 03:12:23 2008
@@ -23,7 +23,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
- <persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
- <class>org.apache.myfaces.orchestra.conversation.model.UserData</class>
- </persistence-unit>
-</persistence>
\ No newline at end of file
+ <persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
+ <class>org.apache.myfaces.orchestra.conversation.model.UserData</class>
+ </persistence-unit>
+</persistence>
Modified: myfaces/orchestra/trunk/core15/src/test/resources/testApplicationContext.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/test/resources/testApplicationContext.xml?rev=653405&r1=653404&r2=653405&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/test/resources/testApplicationContext.xml (original)
+++ myfaces/orchestra/trunk/core15/src/test/resources/testApplicationContext.xml Mon May 5 03:12:23 2008
@@ -19,76 +19,76 @@
-->
<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:orchestra="http://myfaces.apache.org/orchestra"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
-
- <!-- register our custom spring scope -->
- <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
- <property name="scopes">
- <map>
- <entry key="conversation">
- <bean class="org.apache.myfaces.orchestra.conversation.spring.SpringConversationScope">
- <property name="advices">
- <list>
- <ref bean="persistentContextConversationInterceptor"/>
- </list>
- </property>
- </bean>
- </entry>
- </map>
- </property>
- </bean>
-
- <bean id="persistentContextConversationInterceptor"
- class="org.apache.myfaces.orchestra.conversation.spring.PersistenceContextConversationInterceptor">
- <property name="persistenceContextFactory" ref="persistentContextFactory"/>
- </bean>
-
- <bean id="persistentContextFactory"
- class="org.apache.myfaces.orchestra.conversation.spring.JpaPersistenceContextFactory">
- <property name="entityManagerFactory" ref="entityManagerFactory"/>
- </bean>
-
- <!-- persistence -->
- <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
-
- <tx:annotation-driven />
-
- <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
- <property name="entityManagerFactory" ref="entityManagerFactory"/>
- </bean>
-
- <bean id="entityManagerFactory"
- class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
- <property name="jpaProperties">
- <props>
- <prop key="toplink.logging.level">FINE</prop>
- <prop key="toplink.jdbc.driver">org.apache.derby.jdbc.EmbeddedDriver</prop>
- <prop key="toplink.jdbc.url">jdbc:derby:myfacesOrchestraDB/TESTS;create=true</prop>
- <prop key="toplink.jdbc.user">sa</prop>
- <prop key="toplink.jdbc.password">foobar</prop>
- <prop key="toplink.target-database">oracle.toplink.essentials.platform.database.DerbyPlatform</prop>
- <prop key="toplink.ddl-generation">drop-and-create-tables</prop>
- </props>
- </property>
- <property name="persistenceUnitName" value="default"/>
- </bean>
-
- <!-- our beans -->
-
- <bean
- name="persistentBackingBean"
- class="org.apache.myfaces.orchestra.conversation.PersistentBackingBean"
- scope="conversation"
- autowire="byName"
- orchestra:conversationName="persistentConversation">
- <aop:scoped-proxy/>
- </bean>
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:tx="http://www.springframework.org/schema/tx"
+ xmlns:aop="http://www.springframework.org/schema/aop"
+ xmlns:orchestra="http://myfaces.apache.org/orchestra"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
+ http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
+
+ <!-- register our custom spring scope -->
+ <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
+ <property name="scopes">
+ <map>
+ <entry key="conversation">
+ <bean class="org.apache.myfaces.orchestra.conversation.spring.SpringConversationScope">
+ <property name="advices">
+ <list>
+ <ref bean="persistentContextConversationInterceptor"/>
+ </list>
+ </property>
+ </bean>
+ </entry>
+ </map>
+ </property>
+ </bean>
+
+ <bean id="persistentContextConversationInterceptor"
+ class="org.apache.myfaces.orchestra.conversation.spring.PersistenceContextConversationInterceptor">
+ <property name="persistenceContextFactory" ref="persistentContextFactory"/>
+ </bean>
+
+ <bean id="persistentContextFactory"
+ class="org.apache.myfaces.orchestra.conversation.spring.JpaPersistenceContextFactory">
+ <property name="entityManagerFactory" ref="entityManagerFactory"/>
+ </bean>
+
+ <!-- persistence -->
+ <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
+
+ <tx:annotation-driven />
+
+ <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
+ <property name="entityManagerFactory" ref="entityManagerFactory"/>
+ </bean>
+
+ <bean id="entityManagerFactory"
+ class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
+ <property name="jpaProperties">
+ <props>
+ <prop key="toplink.logging.level">FINE</prop>
+ <prop key="toplink.jdbc.driver">org.apache.derby.jdbc.EmbeddedDriver</prop>
+ <prop key="toplink.jdbc.url">jdbc:derby:myfacesOrchestraDB/TESTS;create=true</prop>
+ <prop key="toplink.jdbc.user">sa</prop>
+ <prop key="toplink.jdbc.password">foobar</prop>
+ <prop key="toplink.target-database">oracle.toplink.essentials.platform.database.DerbyPlatform</prop>
+ <prop key="toplink.ddl-generation">drop-and-create-tables</prop>
+ </props>
+ </property>
+ <property name="persistenceUnitName" value="default"/>
+ </bean>
+
+ <!-- our beans -->
+
+ <bean
+ name="persistentBackingBean"
+ class="org.apache.myfaces.orchestra.conversation.PersistentBackingBean"
+ scope="conversation"
+ autowire="byName"
+ orchestra:conversationName="persistentConversation">
+ <aop:scoped-proxy/>
+ </bean>
</beans>