You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2008/11/21 21:52:59 UTC
svn commit: r719708 - in /myfaces/tobago/trunk/example/seam: ./
src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/myfaces/ src/main/java/org/apache/myfaces/tobago/
src/main/java/org/apache/myfaces/tobago/example/ src/...
Author: lofwyr
Date: Fri Nov 21 12:52:58 2008
New Revision: 719708
URL: http://svn.apache.org/viewvc?rev=719708&view=rev
Log:
TOBAGO-727: Try to define some steps of an example
Added:
myfaces/tobago/trunk/example/seam/src/main/java/
myfaces/tobago/trunk/example/seam/src/main/java/org/
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/AuthenticationManager.java
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Controller.java
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Issue.java
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/LoginModule.java
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/NumberGuess.java
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/OrderStock.java
myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Test.java
myfaces/tobago/trunk/example/seam/src/main/resources/
myfaces/tobago/trunk/example/seam/src/main/resources/courier.jpdl.xml
myfaces/tobago/trunk/example/seam/src/main/resources/edit-issue.xhtml
myfaces/tobago/trunk/example/seam/src/main/resources/enter-issue.xhtml
myfaces/tobago/trunk/example/seam/src/main/resources/hibernate.cfg.xml
myfaces/tobago/trunk/example/seam/src/main/resources/issue.jpdl.xml
myfaces/tobago/trunk/example/seam/src/main/resources/jbpm.cfg.xml
myfaces/tobago/trunk/example/seam/src/main/resources/log4j.xml
myfaces/tobago/trunk/example/seam/src/main/resources/seam.properties
myfaces/tobago/trunk/example/seam/src/main/resources/simple.jpdl.xml
myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/components.xml
myfaces/tobago/trunk/example/seam/src/main/webapp/tobago.xhtml
myfaces/tobago/trunk/example/seam/src/test/
myfaces/tobago/trunk/example/seam/src/test/resources/
myfaces/tobago/trunk/example/seam/src/test/resources/jetty.xml
myfaces/tobago/trunk/example/seam/src/test/resources/realm.properties
Removed:
myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/tobago-config.xml
Modified:
myfaces/tobago/trunk/example/seam/pom.xml
myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/faces-config.xml
myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/web.xml
Modified: myfaces/tobago/trunk/example/seam/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/pom.xml?rev=719708&r1=719707&r2=719708&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/seam/pom.xml (original)
+++ myfaces/tobago/trunk/example/seam/pom.xml Fri Nov 21 12:52:58 2008
@@ -28,6 +28,58 @@
<name>Example Seam</name>
<build>
<finalName>tobago-example-seam</finalName>
+ <plugins>
+ <plugin>
+ <!-- NOTE The demo and addressbook run only with mvn jetty:run-exploded.
+ For the other examples mvn jetty:run should work.
+ For Debugging with jetty set following options
+ MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
+ or
+ MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
+ -->
+ <groupId>org.mortbay.jetty</groupId>
+ <!-- jetty 6 -->
+ <artifactId>maven-jetty-plugin</artifactId>
+ <!-- jetty 7 -->
+ <!--<artifactId>jetty-maven-plugin</artifactId>-->
+ <configuration>
+ <jettyConfig>src/test/resources/jetty.xml</jettyConfig>
+ <userRealms>
+ <userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
+ <name>jbpm-realm</name>
+ <config>src/test/resources/realm.properties</config>
+ </userRealm>
+ </userRealms>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.derby</groupId>
+ <artifactId>derby</artifactId>
+ <version>10.3.1.4</version>
+ </dependency>
+ <dependency>
+ <groupId>com.atomikos</groupId>
+ <artifactId>atomikos-util</artifactId>
+ <version>3.2.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.atomikos</groupId>
+ <artifactId>transactions-api</artifactId>
+ <version>3.2.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.atomikos</groupId>
+ <artifactId>transactions-jta</artifactId>
+ <version>3.2.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.atomikos</groupId>
+ <artifactId>transactions</artifactId>
+ <version>3.2.3</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
</build>
<dependencies>
<dependency>
@@ -42,11 +94,6 @@
</dependency>
<dependency>
<groupId>org.apache.myfaces.tobago</groupId>
- <artifactId>tobago-theme-richmond</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago-theme-standard</artifactId>
<version>${project.version}</version>
</dependency>
@@ -77,26 +124,44 @@
</exclusion>
</exclusions>
</dependency>
- <dependency>
+ <dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>2.7.6</version>
</dependency>
<dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>3.9.0.GA</version>
+ </dependency>
+ <dependency>
<groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-ui</artifactId>
+ <artifactId>jboss-seam</artifactId>
<version>${seam.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
- <artifactId>jboss-el</artifactId>
+ <artifactId>jboss-seam-ui</artifactId>
<version>${seam.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
+
+ <!--
<dependency>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- <version>1.0</version>
- <scope>provided</scope>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-el</artifactId>
+ <version>2.0.0.GA</version>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
@@ -113,12 +178,38 @@
<artifactId>jboss-seam-mail</artifactId>
<version>${seam.version}</version>
</dependency>
+-->
+ <!--
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
- <version>3.0.0.GA</version>
+ <version>3.1.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate</artifactId>
+ <version>3.2.6.ga</version>
</dependency>
<dependency>
+ <groupId>org.jbpm</groupId>
+ <artifactId>jbpm-jpdl</artifactId>
+ <version>3.2.3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>bsh</groupId>
+ <artifactId>bsh</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+
+ <dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${sunjsf12.version}</version>
@@ -129,6 +220,23 @@
<version>${sunjsf12.version}</version>
</dependency>
<dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>${facelets.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.1.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <!--
+ <dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
<version>${richfaces.version}</version>
@@ -155,6 +263,7 @@
</exclusion>
</exclusions>
</dependency>
+ -->
</dependencies>
<pluginRepositories>
<pluginRepository>
@@ -179,13 +288,15 @@
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/seam</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/seam</developerConnection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/seam
+ </developerConnection>
<url>http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam</url>
</scm>
<properties>
- <seam.version>2.0.0.GA</seam.version>
- <openjpa.version>1.0.1</openjpa.version>
+ <seam.version>2.1.0.GA</seam.version>
+ <!--<seam.version>2.0.0.GA</seam.version>-->
+ <openjpa.version>1.2.0</openjpa.version>
<richfaces.version>3.1.2.GA</richfaces.version>
<spring.version>2.5.2</spring.version>
</properties>
-</project>
\ No newline at end of file
+</project>
Added: myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/AuthenticationManager.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/AuthenticationManager.java?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/AuthenticationManager.java (added)
+++ myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/AuthenticationManager.java Fri Nov 21 12:52:58 2008
@@ -0,0 +1,26 @@
+package org.apache.myfaces.tobago.example.seam;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.bpm.Actor;
+import org.jboss.seam.security.Identity;
+
+
+@Name("authenticationManager")
+public class AuthenticationManager {
+
+ @In
+ Identity identity;
+
+ @In
+ Actor actor;
+
+ public boolean authenticate() {
+
+ actor.setId(identity.getUsername());
+ identity.addRole("authenticated");
+ actor.getGroupActorIds().add("actor");
+ actor.getGroupActorIds().add("developer");
+ return true;
+ }
+}
Added: myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Controller.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Controller.java?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Controller.java (added)
+++ myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Controller.java Fri Nov 21 12:52:58 2008
@@ -0,0 +1,33 @@
+package org.apache.myfaces.tobago.example.seam;
+
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.bpm.CreateProcess;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+@Name("controller")
+public class Controller {
+
+ private static final Log LOG = LogFactory.getLog(Controller.class);
+
+ private Issue issue;
+
+ @CreateProcess(definition = "issue-process")
+ public String init() {
+ LOG.info("init");
+ return "new";
+ }
+
+ public String save() {
+ LOG.info("save");
+ return "todo";
+ }
+
+ public Issue getIssue() {
+ return issue;
+ }
+
+ public void setIssue(Issue issue) {
+ this.issue = issue;
+ }
+}
Added: myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Issue.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Issue.java?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Issue.java (added)
+++ myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Issue.java Fri Nov 21 12:52:58 2008
@@ -0,0 +1,40 @@
+package org.apache.myfaces.tobago.example.seam;
+
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.bpm.CreateProcess;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+@Name("issue")
+public class Issue {
+
+ private static final Log LOG = LogFactory.getLog(Issue.class);
+
+ private String title;
+ private String description;
+
+ @CreateProcess(definition = "issue-process")
+ public void init() {
+ LOG.info("init");
+ }
+
+ public void create() {
+ LOG.info("create");
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+}
Added: myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/LoginModule.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/LoginModule.java?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/LoginModule.java (added)
+++ myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/LoginModule.java Fri Nov 21 12:52:58 2008
@@ -0,0 +1,35 @@
+package org.apache.myfaces.tobago.example.seam;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.bpm.Actor;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+@Name("login")
+public class LoginModule {
+
+ private static final Log LOG = LogFactory.getLog(LoginModule.class);
+
+ @In
+ private Actor actor;
+
+ private String user = "fixme";
+
+ public LoginModule() {
+ LOG.info("LOGIN MODULE: " + this);
+ }
+
+ public String getUser() {
+ return user;
+ }
+
+ public void setUser(String user) {
+ this.user = user;
+ }
+
+ public String login() {
+ actor.setId(user);
+ return "/todo.jsp";
+ }
+}
Added: myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/NumberGuess.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/NumberGuess.java?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/NumberGuess.java (added)
+++ myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/NumberGuess.java Fri Nov 21 12:52:58 2008
@@ -0,0 +1,114 @@
+package org.apache.myfaces.tobago.example.seam;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Create;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+@Name("numberGuess")
+@Scope(ScopeType.CONVERSATION)
+public class NumberGuess implements Serializable {
+
+ private int randomNumber;
+ private Integer currentGuess;
+ private int biggest;
+ private int smallest;
+ private int guessCount;
+ private int maxGuesses;
+ private boolean cheated;
+
+ @Create
+ public void begin()
+ {
+ randomNumber = new Random().nextInt(100) + 1;
+ guessCount = 0;
+ biggest = 100;
+ smallest = 1;
+ }
+
+ public void setCurrentGuess(Integer guess)
+ {
+ this.currentGuess = guess;
+ }
+
+ public Integer getCurrentGuess()
+ {
+ return currentGuess;
+ }
+
+ public void guess()
+ {
+ if (currentGuess>randomNumber)
+ {
+ biggest = currentGuess - 1;
+ }
+ if (currentGuess<randomNumber)
+ {
+ smallest = currentGuess + 1;
+ }
+ guessCount ++;
+ }
+
+ public boolean isCorrectGuess()
+ {
+ return currentGuess==randomNumber;
+ }
+
+ public int getBiggest()
+ {
+ return biggest;
+ }
+
+ public int getSmallest()
+ {
+ return smallest;
+ }
+
+ public int getGuessCount()
+ {
+ return guessCount;
+ }
+
+ public boolean isLastGuess()
+ {
+ return guessCount==maxGuesses;
+ }
+
+ public int getRemainingGuesses() {
+ return maxGuesses-guessCount;
+ }
+
+ public void setMaxGuesses(int maxGuesses) {
+ this.maxGuesses = maxGuesses;
+ }
+
+ public int getMaxGuesses() {
+ return maxGuesses;
+ }
+
+ public int getRandomNumber() {
+ return randomNumber;
+ }
+
+ public void cheated()
+ {
+ cheated = true;
+ }
+
+ public boolean isCheat() {
+ return cheated;
+ }
+
+ public List<Integer> getPossibilities()
+ {
+ List<Integer> result = new ArrayList<Integer>();
+ for(int i=smallest; i<=biggest; i++) result.add(i);
+ return result;
+ }
+
+}
Added: myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/OrderStock.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/OrderStock.java?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/OrderStock.java (added)
+++ myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/OrderStock.java Fri Nov 21 12:52:58 2008
@@ -0,0 +1,43 @@
+package org.apache.myfaces.tobago.example.seam;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.jboss.seam.annotations.bpm.CreateProcess;
+import org.jboss.seam.annotations.bpm.EndTask;
+import org.jboss.seam.annotations.bpm.StartTask;
+
+@Name("orderStock")
+public class OrderStock {
+
+ @Out(scope = ScopeType.BUSINESS_PROCESS, required = false)
+ Long processQuantity;
+
+ private int quantity;
+
+ public int getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(int quantity) {
+ this.quantity = quantity;
+ }
+
+ @CreateProcess(definition = "simple")
+ public void startProcess() {
+ processQuantity = new Long(getQuantity());
+ }
+
+ @StartTask
+ @EndTask(transition = "next")
+ public void done() {
+ }
+
+ @StartTask
+ @EndTask(transition = "cancel")
+ public void cancel() {
+ }
+
+}
+
+
Added: myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Test.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Test.java?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Test.java (added)
+++ myfaces/tobago/trunk/example/seam/src/main/java/org/apache/myfaces/tobago/example/seam/Test.java Fri Nov 21 12:52:58 2008
@@ -0,0 +1,131 @@
+package org.apache.myfaces.tobago.example.seam;
+
+import java.util.Random;
+
+public class Test {
+
+ private int x;
+ private int y;
+ private int[][] data;
+
+
+ public static void main(String[] args) {
+ Test t = new Test(3,3);
+ t.distribute();
+ System.out.print("\n---------------------------------------------------------\n");
+ System.out.print("\n---------------------------------------------------------\n");
+ System.out.print(t);
+
+ }
+
+ public Test(int x, int y) {
+ this.x = x;
+ this.y = y;
+ init();
+ }
+
+ private void init() {
+ data = new int[y*y][x*x];
+ for (int i = 0; i < y*y; i++) {
+ for (int j = 0; j < x*x; j++) {
+ data[i][j] = 0;
+ }
+
+ }
+ }
+
+ private void distribute() {
+
+ Random random = new Random();
+
+ for (int i = 0; i < y*y; i++) {
+ for (int j = 0; j < x*x; j++) {
+
+ boolean tryAgain = false;
+ int test;
+ boolean[] wasTested = new boolean[x*y];
+ do {
+ test = random.nextInt(x*y) + 1;
+ wasTested[test - 1] = true;
+ if (allTested(wasTested)) {
+ tryAgain = true; // die ganze Zeile noch mal versuchen
+ break;
+ }
+ } while (!isAllowedHere(test, i, j));
+
+ if (tryAgain) {
+ // Zeile löschen
+ for (int k = 0; k < x*y; k++) {
+ data[i][j] = 0;
+ }
+ i--;
+ System.out.print("\nnoch mal versuchen\n");
+ break;
+ }
+
+ data[i][j] = test;
+
+ System.out.print("\n---------------------------------------------------------\n");
+ System.out.print(this);
+
+ }
+ }
+ }
+
+ private boolean allTested(boolean[] wasTested) {
+ for (boolean b : wasTested) {
+ if (!b) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ private boolean isAllowedHere(int n, int i, int j) {
+
+ for (int k = 0; k < x*y; k++) {
+ if (data[i][k] == n) {
+ return false;
+ }
+ }
+
+ for (int k = 0; k < y*y; k++) {
+ if (data[k][j] == n) {
+ return false;
+ }
+ }
+
+ for (int k = 0; k < y; k++) {
+ for (int l = 0; l < x; l++) {
+ if (data[i / y * y + k][j / x * x + l] == n) {
+ return false;
+ }
+ }
+ }
+
+
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ StringBuffer buffer = new StringBuffer();
+ for (int i = 0; i < x*x; i++) {
+ if (i % y == 0) {
+ buffer.append('\n');
+ }
+ for (int j = 0; j < y*y; j++) {
+ if (j % x == 0) {
+ buffer.append(' ');
+ }
+ if (x*y >= 10 && data[i][j] < 10) {
+ buffer.append(' ');
+ }
+ buffer.append(data[i][j]);
+ buffer.append(' ');
+ }
+ buffer.append('\n');
+ }
+ return buffer.toString();
+ }
+}
Added: myfaces/tobago/trunk/example/seam/src/main/resources/courier.jpdl.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/courier.jpdl.xml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/courier.jpdl.xml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/courier.jpdl.xml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<process-definition xmlns="urn:jbpm.org:jpdl-3.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://docs.jboss.org/jbpm/xsd/jpdl-3.2.xsd"
+ name="Courier">
+
+ <start-state name="create">
+ <transition name="send" to="route"/>
+ </start-state>
+
+ <decision name="route">
+ <transition name="actor" to="actor-inbox">
+ <condition>#{!message.broadcast}</condition>
+ </transition>
+ <transition name="group" to="group-inbox">
+ <condition>#{message.broadcast}</condition>
+ </transition>
+ </decision>
+
+ <task-node name="actor-inbox">
+ <task name="receive" description="#{message.content}">
+ <assignment actor-id="#{message.recipient}"/>
+ </task>
+ <transition name="acknowledge" to="acknowledged"/>
+ </task-node>
+
+ <task-node name="group-inbox">
+ <task name="receive" description="#{message.content}">
+ <assignment pooled-actors="#{message.recipient}"/>
+ </task>
+ <transition name="acknowledge" to="acknowledged"/>
+ </task-node>
+
+ <end-state name="acknowledged"/>
+
+</process-definition>
Added: myfaces/tobago/trunk/example/seam/src/main/resources/edit-issue.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/edit-issue.xhtml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/edit-issue.xhtml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/edit-issue.xhtml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<f:view xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+ <tc:page>
+ <tc:box label="test">
+ <tc:out value="content"/>
+ </tc:box>
+ </tc:page>
+</f:view>
Added: myfaces/tobago/trunk/example/seam/src/main/resources/enter-issue.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/enter-issue.xhtml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/enter-issue.xhtml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/enter-issue.xhtml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<f:view xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+ <tc:page>
+ <tc:box label="Please enter a new issue">
+ <tc:in value="#{issue.title}"/>
+ <tc:textarea value="#{issue.description}"/>
+ </tc:box>
+ </tc:page>
+</f:view>
Added: myfaces/tobago/trunk/example/seam/src/main/resources/hibernate.cfg.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/hibernate.cfg.xml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/hibernate.cfg.xml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/hibernate.cfg.xml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,336 @@
+<?xml version='1.0' encoding='utf-8'?>
+
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+ <session-factory>
+
+ <!-- hibernate dialect -->
+ <!--<property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>-->
+ <property name="hibernate.dialect">org.hibernate.dialect.DerbyDialect</property>
+
+
+ <property name="hibernate.hbm2ddl.auto">create</property>
+
+ <!-- JDBC connection properties (begin) ===
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
+ ==== JDBC connection properties (end) -->
+
+ <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
+
+ <!-- DataSource properties (begin) -->
+ <property name="hibernate.connection.datasource">java:comp/env/jdbc/JbpmDataSource</property>
+ <!-- DataSource properties (end) -->
+
+ <!-- JTA transaction properties (begin) ===-->
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+<!-- <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>-->
+<!-- ==== JTA transaction properties (end) -->
+
+ <!-- CMT transaction properties (begin) ===
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ ==== CMT transaction properties (end) -->
+
+ <!-- logging properties (begin) ===
+ <property name="hibernate.show_sql">true</property>
+ <property name="hibernate.format_sql">true</property>
+ <property name="hibernate.use_sql_comments">true</property>
+ ==== logging properties (end) -->
+
+ <!-- ############################################ -->
+ <!-- # mapping files with external dependencies # -->
+ <!-- ############################################ -->
+
+ <!-- following mapping files have a dependency on -->
+ <!-- 'jbpm-identity.jar', mapping files -->
+ <!-- of the pluggable jbpm identity component. -->
+ <!-- Uncomment the following 3 lines if you -->
+ <!-- want to use the jBPM identity mgmgt -->
+ <!-- component. -->
+ <!-- identity mappings (begin)
+ <mapping resource="org/jbpm/identity/User.hbm.xml"/>
+ <mapping resource="org/jbpm/identity/Group.hbm.xml"/>
+ <mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
+ identity mappings (end) -->
+
+ <!-- following mapping files have a dependency on -->
+ <!-- the JCR API -->
+ <!-- jcr mappings (begin) ===
+ <mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
+ ==== jcr mappings (end) -->
+
+
+ <!-- ###################### -->
+ <!-- # jbpm mapping files # -->
+ <!-- ###################### -->
+
+ <!-- hql queries and type defs -->
+ <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
+ <!-- hql queries used in simulation for querying historical data
+ uncomment if you want to use the GetSimulationInputCommand
+ or maybe you also want to use the queries yourself
+ be patient: the queries need the stddev function to be enabled in your dialect
+ more information on this can be found here: http://www.camunda.com/business_process_simulation_news/mysql_and_stddev.html -->
+ <!--
+ <mapping resource="org/jbpm/sim/bam/hibernate.queries.hbm.xml" />
+ -->
+
+ <!-- graph.action mapping files -->
+ <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
+
+ <!-- graph.def mapping files -->
+ <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
+ <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
+
+ <!-- ############################################ -->
+ <!-- # another mapping file with external dependencies # -->
+ <!-- ############################################ -->
+ <!-- following mapping file has a dependency on -->
+ <!-- 'bsh-{version}.jar'. -->
+ <!-- uncomment this if you don't have bsh on your -->
+ <!-- classpath. you won't be able to use the -->
+ <!-- script element in process definition files -->
+ <!-- has to be defined below org/jbpm/graph/def/Action.hbm.xml -->
+ <!-- due to the inline collection-cache elements below -->
+ <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
+
+ <!-- graph.node mapping files -->
+ <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
+
+ <!-- context.def mapping files -->
+ <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
+
+ <!-- bytes mapping files -->
+ <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
+
+ <!-- module.def mapping files -->
+ <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
+
+ <!-- file.def mapping files -->
+ <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
+
+ <!-- taskmgmt.def mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
+
+ <!-- scheduler.def mapping files -->
+ <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
+ <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
+
+ <!-- graph.exe mapping files -->
+ <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
+
+ <!-- module.exe mapping files -->
+ <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
+
+ <!-- context.exe mapping files -->
+ <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
+
+ <!-- job mapping files -->
+ <mapping resource="org/jbpm/job/Job.hbm.xml"/>
+ <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
+
+ <!-- taskmgmt.exe mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
+
+ <!-- logging mapping files -->
+ <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
+ <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
+ <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
+
+ <!-- ################################### -->
+ <!-- # cache settings # -->
+ <!-- # strategy="nonstrict-read-write" # -->
+ <!-- # can be used with hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider # -->
+ <!-- ################################### -->
+
+ <class-cache class="org.jbpm.context.def.VariableAccess" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.file.def.FileDefinition.processFiles" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.action.Script.variableAccesses" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Action" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Event" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Event.actions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.ExceptionHandler" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ExceptionHandler.actions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Node" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.exceptionHandlers" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.leavingTransitions" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.arrivingTransitions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.ProcessDefinition" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.exceptionHandlers" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.nodes" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.actions" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.definitions" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.def.SuperState.nodes" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Transition" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Transition.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Transition.exceptionHandlers" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.Decision.decisionConditions" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.ProcessState.variableAccesses" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.TaskNode.tasks" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.instantiation.Delegation" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.module.def.ModuleDefinition" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.taskmgmt.def.Swimlane.tasks" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.taskmgmt.def.TaskController" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskController.variableAccesses" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.taskmgmt.def.Task" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.Task.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.Task.exceptionHandlers" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks" usage="nonstrict-read-write" />
+
+ <!-- ############################ -->
+ <!-- # cache settings # -->
+ <!-- # strategy="transactional" # -->
+ <!-- # can be used with hibernate.cache.provider_class=org.hibernate.cache.TreeCacheProvider # -->
+ <!-- ############################ -->
+
+ <!--
+
+ <class-cache class="org.jbpm.context.def.VariableAccess" usage="transactional" />
+
+ <collection-cache collection="org.jbpm.file.def.FileDefinition.processFiles" usage="transactional" />
+
+ <collection-cache collection="org.jbpm.graph.action.Script.variableAccesses" usage="transactional" />
+
+ <class-cache class="org.jbpm.graph.def.Action" usage="transactional" />
+
+ <class-cache class="org.jbpm.graph.def.Event" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.Event.actions" usage="transactional" />
+
+ <class-cache class="org.jbpm.graph.def.ExceptionHandler" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.ExceptionHandler.actions" usage="transactional" />
+
+ <class-cache class="org.jbpm.graph.def.Node" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.Node.events" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.Node.exceptionHandlers" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.Node.leavingTransitions" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.Node.arrivingTransitions" usage="transactional" />
+
+ <class-cache class="org.jbpm.graph.def.ProcessDefinition" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.events" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.exceptionHandlers" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.nodes" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.actions" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.definitions" usage="transactional" />
+
+ <collection-cache collection="org.jbpm.graph.def.SuperState.nodes" usage="transactional" />
+
+ <class-cache class="org.jbpm.graph.def.Transition" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.Transition.events" usage="transactional" />
+ <collection-cache collection="org.jbpm.graph.def.Transition.exceptionHandlers" usage="transactional" />
+
+ <collection-cache collection="org.jbpm.graph.node.Decision.decisionConditions" usage="transactional" />
+
+ <collection-cache collection="org.jbpm.graph.node.ProcessState.variableAccesses" usage="transactional" />
+
+ <collection-cache collection="org.jbpm.graph.node.TaskNode.tasks" usage="transactional" />
+
+ <class-cache class="org.jbpm.instantiation.Delegation" usage="transactional" />
+
+ <class-cache class="org.jbpm.module.def.ModuleDefinition" usage="transactional" />
+
+ <collection-cache collection="org.jbpm.taskmgmt.def.Swimlane.tasks" usage="transactional" />
+
+ <class-cache class="org.jbpm.taskmgmt.def.TaskController" usage="transactional" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskController.variableAccesses" usage="transactional" />
+
+ <class-cache class="org.jbpm.taskmgmt.def.Task" usage="transactional" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.Task.events" usage="transactional" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.Task.exceptionHandlers" usage="transactional" />
+
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes" usage="transactional" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks" usage="transactional" />
+
+ -->
+
+ </session-factory>
+</hibernate-configuration>
Added: myfaces/tobago/trunk/example/seam/src/main/resources/issue.jpdl.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/issue.jpdl.xml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/issue.jpdl.xml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/issue.jpdl.xml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<process-definition
+ xmlns="urn:jbpm.org:jpdl-3.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://docs.jboss.org/jbpm/xsd/jpdl-3.2.xsd"
+ name="issue-process">
+
+ <start-state name="start">
+ <transition to="edit-issue">
+ <action expression="#{issue.init}"/>
+ </transition>
+ </start-state>
+
+ <task-node name="enter-issue">
+ <task name="test" description="test">
+ <assignment pooled-actors="developer"/>
+ </task>
+ <transition name="store" to="stored">
+ <action expression="#{issue.save}"/>
+ </transition>
+ </task-node>
+
+ <end-state name="stored"/>
+
+</process-definition>
Added: myfaces/tobago/trunk/example/seam/src/main/resources/jbpm.cfg.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/jbpm.cfg.xml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/jbpm.cfg.xml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/jbpm.cfg.xml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,22 @@
+<jbpm-configuration>
+
+ <jbpm-context>
+ <service name="persistence">
+ <factory>
+ <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
+ <field name="isTransactionEnabled">
+ <false/>
+ </field>
+ </bean>
+ </factory>
+ </service>
+ <service name="tx" factory="org.jbpm.tx.TxServiceFactory"/>
+ <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory"/>
+ <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory"/>
+ <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory"/>
+ <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory"/>
+ </jbpm-context>
+<!--
+ <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml"/>
+-->
+</jbpm-configuration>
Added: myfaces/tobago/trunk/example/seam/src/main/resources/log4j.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/log4j.xml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/log4j.xml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/log4j.xml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration>
+
+ <appender name="logfile" class="org.apache.log4j.ConsoleAppender">
+ <param name="Encoding" value="UTF-8"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{HH:mm:ss} %-5p %-50.50c:%-20.20M:%-4.4L %m%n"/>
+ <!-- See http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html -->
+ </layout>
+ </appender>
+
+ <category name="org.apache.myfaces.tobago.example">
+ <priority value="debug"/>
+ </category>
+
+ <root>
+ <priority value="info"/>
+ <appender-ref ref="logfile"/>
+ </root>
+
+</log4j:configuration>
Added: myfaces/tobago/trunk/example/seam/src/main/resources/seam.properties
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/seam.properties?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/seam.properties (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/seam.properties Fri Nov 21 12:52:58 2008
@@ -0,0 +1,3 @@
+#
+# This file must exists for Seam. Although it was empty.
+#
Added: myfaces/tobago/trunk/example/seam/src/main/resources/simple.jpdl.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/resources/simple.jpdl.xml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/resources/simple.jpdl.xml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/resources/simple.jpdl.xml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<process-definition xmlns="urn:jbpm.org:jpdl-3.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://docs.jboss.org/jbpm/xsd/jpdl-3.2.xsd"
+ name="simple">
+ <start-state name="start">
+ <transition name="trPlaceOrder" to="PlaceOrder"/>
+ </start-state>
+ <task-node name="PlaceOrder">
+ <task name="placeOrderTask">
+ <assignment actor-id="#{actor.id}"/>
+ </task>
+ <transition name="next" to="Deliver"/>
+ <transition name="cancel" to="error"/>
+ </task-node>
+ <task-node name="Deliver">
+ <task name="getFromStock">
+ <assignment actor-id="#{actor.id}"/>
+ </task>
+ <transition name="next" to="end"/>
+ <transition name="cancel" to="error"/>
+ </task-node>
+ <end-state name="error"/>
+ <end-state name="end"/>
+</process-definition>
Added: myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/components.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/components.xml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/components.xml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/components.xml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<components xmlns="http://jboss.com/products/seam/components"
+ xmlns:bpm="http://jboss.com/products/seam/bpm"
+ xmlns:core="http://jboss.com/products/seam/core"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:transaction="http://jboss.com/products/seam/transaction"
+ xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
+ http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
+ http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
+
+ <!--<core:init debug="true"/>-->
+
+ <core:init transaction-management-enabled="false" debug="true"/>
+
+ <transaction:no-transaction/>
+
+ <!--
+ <component name="numberGuess">
+ <property name="maxGuesses">10</property>
+ </component>
+-->
+ <bpm:jbpm>
+ <bpm:process-definitions>
+ <value>issue.jpdl.xml</value>
+ </bpm:process-definitions>
+ </bpm:jbpm>
+
+</components>
Modified: myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/faces-config.xml?rev=719708&r1=719707&r2=719708&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/faces-config.xml Fri Nov 21 12:52:58 2008
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
+
<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -16,12 +17,17 @@
* limitations under the License.
-->
-<faces-config version="1.2"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
+<!DOCTYPE faces-config PUBLIC
+ "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+
+<faces-config>
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ <locale-config>
+ <default-locale>en</default-locale>
+ </locale-config>
</application>
-</faces-config>
\ No newline at end of file
+
+</faces-config>
Modified: myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/web.xml?rev=719708&r1=719707&r2=719708&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/example/seam/src/main/webapp/WEB-INF/web.xml Fri Nov 21 12:52:58 2008
@@ -20,48 +20,53 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
+
<listener>
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>
- <listener>
- <listener-class>org.apache.myfaces.tobago.webapp.TobagoServletContextListener</listener-class>
- </listener>
- <servlet>
+<!-- <servlet>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
- </servlet>
+ </servlet>-->
<servlet>
- <servlet-name>ResourceServlet</servlet-name>
+ <servlet-name>TobagoResourceServlet</servlet-name>
<servlet-class>org.apache.myfaces.tobago.servlet.ResourceServlet</servlet-class>
</servlet>
- <servlet-mapping>
+<!-- <servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
- </servlet-mapping>
+ </servlet-mapping>-->
<servlet-mapping>
- <servlet-name>ResourceServlet</servlet-name>
+ <servlet-name>TobagoResourceServlet</servlet-name>
<url-pattern>/org/apache/myfaces/tobago/renderkit/*</url-pattern>
</servlet-mapping>
- <filter>
+<!-- <filter>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
- </filter-mapping>
+ </filter-mapping>-->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
+<!--
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
+-->
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
+ <context-param>
+ <param-name>facelets.VIEW_MAPPINGS</param-name>
+ <param-value>*.xhtml</param-value>
+ </context-param>
+
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
@@ -71,4 +76,11 @@
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
+
+ <resource-ref>
+ <res-ref-name>jdbc/JbpmDataSource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+
</web-app>
\ No newline at end of file
Added: myfaces/tobago/trunk/example/seam/src/main/webapp/tobago.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/main/webapp/tobago.xhtml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/main/webapp/tobago.xhtml (added)
+++ myfaces/tobago/trunk/example/seam/src/main/webapp/tobago.xhtml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<f:view xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+ <tc:page>
+ <tc:box label="test">
+ <f:facet name="layout">
+ <tc:gridLayout rows="fixed;fixed;*"/>
+ </f:facet>
+ <tc:out value="content"/>
+ <tc:button label="create new issue" action="#{issue.init}"/>
+ <tc:cell/>
+ </tc:box>
+ </tc:page>
+</f:view>
Added: myfaces/tobago/trunk/example/seam/src/test/resources/jetty.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/test/resources/jetty.xml?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/test/resources/jetty.xml (added)
+++ myfaces/tobago/trunk/example/seam/src/test/resources/jetty.xml Fri Nov 21 12:52:58 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
+ "http://jetty.mortbay.org/configure.dtd">
+
+<Configure id="Server" class="org.mortbay.jetty.Server">
+ <!-- =========================================================== -->
+ <!-- Datasources -->
+ <!-- =========================================================== -->
+
+ <New id="jbpmDB" class="org.mortbay.jetty.plus.naming.Resource">
+ <Arg>jdbc/JbpmDataSource</Arg>
+ <!--<Arg>-->
+ <!--<New class="org.apache.derby.jdbc.EmbeddedDataSource">-->
+ <!-- todo: configure -->
+ <!--<Set name="DatabaseName">/Applications/jbpmDB</Set>-->
+ <!--<Set name="createDatabase">create</Set>-->
+ <!--</New>-->
+ <!--</Arg>-->
+ <Arg>
+ <New class="com.atomikos.jdbc.SimpleDataSourceBean">
+ <Set name="xaDataSourceClassName">org.apache.derby.jdbc.EmbeddedXADataSource</Set>
+ <Set name="xaDataSourceProperties">databaseName=/Applications/jbpmDB</Set>
+ <!--<Set name="xaDataSourceProperties">databaseName=/Applications/jbpmDB;createDatabase=create</Set>-->
+ <Set name="UniqueResourceName">test123</Set>
+ </New>
+ </Arg>
+ </New>
+
+ <New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
+ <Arg>
+ <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
+ </Arg>
+ </New>
+
+
+</Configure>
Added: myfaces/tobago/trunk/example/seam/src/test/resources/realm.properties
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/seam/src/test/resources/realm.properties?rev=719708&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/seam/src/test/resources/realm.properties (added)
+++ myfaces/tobago/trunk/example/seam/src/test/resources/realm.properties Fri Nov 21 12:52:58 2008
@@ -0,0 +1,24 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# username: password [,rolename ...]
+#guest: guest
+#admin: admin,admin
+manager: manager,user,manager,admin
+user: user,user
+shipper: shipper,user
+admin: admin,user,admin