openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r804756 - in /incubator/openwebbeans/trunk/samples/ejb-sample: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/webbeans/ src/main/java/org/apache/webbeans/sample/ src/main/java/org/apac...
Date Sun, 16 Aug 2009 20:06:20 GMT
Author: gerdogdu
Date: Sun Aug 16 20:06:19 2009
New Revision: 804756

URL: http://svn.apache.org/viewvc?rev=804756&view=rev
Log:
Adding EJB sample project

Added:
    incubator/openwebbeans/trunk/samples/ejb-sample/   (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/pom.xml   (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/bean/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/bean/EchoManaged.java
  (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/Echo.java
  (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/EchoBean.java
  (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/util/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/util/FacesMessageUtil.java
  (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/beans.xml
  (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties
  (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/log4j.properties  
(with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/beans.xml   (with
props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/faces-config.xml
  (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/web.xml   (with
props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/echo.xhtml   (with props)
    incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/index.html   (with props)

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Aug 16 20:06:19 2009
@@ -0,0 +1,4 @@
+.settings
+target
+.project
+.classpath

Added: incubator/openwebbeans/trunk/samples/ejb-sample/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/pom.xml?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/pom.xml (added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/pom.xml Sun Aug 16 20:06:19 2009
@@ -0,0 +1,115 @@
+<?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.
+	-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<parent>
+		<artifactId>samples</artifactId>
+		<groupId>org.apache.openwebbeans</groupId>
+		<version>1.0.0-incubating-SNAPSHOT</version>
+	</parent>
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.openwebbeans.samples</groupId>
+	<artifactId>ejb-sample</artifactId>
+	<packaging>war</packaging>
+	<name>Apache OpenWebBeans :: Sample Ejb Demo On OpenEJB in Tomcat</name>
+	<description>Sample Ejb Demo</description>
+
+	<build>
+		<finalName>ejb-sample</finalName>
+	</build>
+
+	<dependencies>
+
+		<!-- For Junit Test -->
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<scope>test</scope>
+		</dependency>
+		
+		<!-- JSF Facelet -->
+		<dependency>
+			<groupId>com.sun.facelets</groupId>
+			<artifactId>jsf-facelets</artifactId>
+			<version>1.1.14</version>
+		</dependency>
+
+		<!-- JSR-299 API, provided -->
+		<dependency>
+			<groupId>org.apache.openwebbeans</groupId>
+			<artifactId>openwebbeans-api</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+			<scope>provided</scope>
+		</dependency>
+		
+		<!-- JSR-299 API, provided -->
+		<dependency>
+			<groupId>org.apache.openwebbeans</groupId>
+			<artifactId>openwebbeans-impl</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>		
+		
+		<!-- JSF Plugin -->
+		<dependency>
+			<groupId>org.apache.openwebbeans</groupId>
+			<artifactId>openwebbeans-jsf</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>
+				
+		<!-- MyFaces API -->
+		<dependency>
+			<groupId>org.apache.myfaces.core</groupId>
+			<artifactId>myfaces-api</artifactId>
+		</dependency>
+		
+		<!-- Servlet API -->
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-servlet_2.5_spec</artifactId>
+			<scope>provided</scope>
+		</dependency>
+		
+		<!-- MyFaces IMPL -->
+		<dependency>
+			<groupId>org.apache.myfaces.core</groupId>
+			<artifactId>myfaces-impl</artifactId>
+		</dependency>
+		
+		<!-- EJB API -->
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-ejb_3.0_spec</artifactId>
+			<scope>provided</scope>
+		</dependency>
+					
+		<!-- EJB PLugin-->	
+		<dependency>
+			<groupId>org.apache.openwebbeans</groupId>
+			<artifactId>openwebbeans-ejb</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>
+		
+		<!-- Interceptor API -->	
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-interceptor_3.0_spec</artifactId>
+		</dependency>
+
+	</dependencies>
+
+</project>

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/bean/EchoManaged.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/bean/EchoManaged.java?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/bean/EchoManaged.java
(added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/bean/EchoManaged.java
Sun Aug 16 20:06:19 2009
@@ -0,0 +1,61 @@
+/*
+ * 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.
+ */
+package org.apache.webbeans.sample.bean;
+
+import javax.enterprise.context.RequestScoped;
+import javax.enterprise.inject.Current;
+import javax.enterprise.inject.Named;
+
+import org.apache.webbeans.sample.ejb.Echo;
+
+
+@RequestScoped
+@Named("echo")
+public class EchoManaged
+{
+    private @Current Echo echo;
+
+    private String text;
+    
+    private String name;
+    
+    public String getName()
+    {
+        return name;
+    }
+
+    public void setName(String name)
+    {
+        this.name = name;
+    }
+
+    public String echo()
+    {
+        this.text = echo.echo(name);
+        
+        return null;
+    }
+
+    public String getText()
+    {
+        return text;
+    }
+
+    public void setText(String text)
+    {
+        this.text = text;
+    }
+    
+    
+}

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/bean/EchoManaged.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/Echo.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/Echo.java?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/Echo.java
(added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/Echo.java
Sun Aug 16 20:06:19 2009
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ */
+package org.apache.webbeans.sample.ejb;
+
+import javax.ejb.Local;
+
+@Local
+public interface Echo
+{
+    public String echo(String name);    
+}

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/Echo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/EchoBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/EchoBean.java?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/EchoBean.java
(added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/EchoBean.java
Sun Aug 16 20:06:19 2009
@@ -0,0 +1,32 @@
+/*
+ * 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.
+ */
+package org.apache.webbeans.sample.ejb;
+
+import javax.ejb.Stateless;
+import javax.enterprise.context.Dependent;
+import javax.interceptor.Interceptors;
+
+import org.apache.webbeans.ejb.interceptor.OpenWebBeansEjbInterceptor;
+
+@Stateless
+@Dependent
+@Interceptors(value=OpenWebBeansEjbInterceptor.class)
+public class EchoBean implements Echo
+{
+    public String echo(String name)
+    {
+        return "Hello " + name; 
+    }    
+
+}

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/ejb/EchoBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/util/FacesMessageUtil.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/util/FacesMessageUtil.java?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/util/FacesMessageUtil.java
(added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/util/FacesMessageUtil.java
Sun Aug 16 20:06:19 2009
@@ -0,0 +1,40 @@
+/*
+ *  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.
+ */
+package org.apache.webbeans.sample.util;
+
+import javax.enterprise.context.Dependent;
+import javax.enterprise.inject.Named;
+import javax.faces.application.FacesMessage;
+import javax.faces.application.FacesMessage.Severity;
+import javax.faces.context.FacesContext;
+
+@Named(value="facesMessage")
+@Dependent
+public class FacesMessageUtil
+{
+
+	public FacesMessageUtil()
+	{
+		
+	}
+	
+	public void addMessage(Severity severity,String summary, String detail)
+	{
+		FacesMessage message = new FacesMessage(severity,summary,detail);
+		FacesContext.getCurrentInstance().addMessage(null, message);
+	}
+}

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/java/org/apache/webbeans/sample/util/FacesMessageUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/beans.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/beans.xml?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/beans.xml
(added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/beans.xml
Sun Aug 16 20:06:19 2009
@@ -0,0 +1,23 @@
+<?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.
+-->
+<WebBeans 	xmlns="urn:java:ee"
+ 			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+			xsi:schemaLocation="urn:java:ee http://java.sun.com/jee/beans-1.0.xsd">	
+</WebBeans>
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/beans.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties
(added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties
Sun Aug 16 20:06:19 2009
@@ -0,0 +1,31 @@
+#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.
+#---------------------------------------------------------------
+# The default configuration for OpenWebBeans
+#
+# The default configuration is intended for a JDK and a simple ServletContainer
+# like jetty, resin or tomcat.
+# 
+#---------------------------------------------------------------
+
+#general configuration section
+
+#use OWB Specific XML Configuration
+org.apache.webbeans.useOwbSpecificXmlConfig=true
+
+#use embedded openejb metadata discovery
+org.apache.webbeans.spi.deployer.UseEjbMetaDataDiscoveryService=true
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/log4j.properties?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/log4j.properties (added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/log4j.properties Sun
Aug 16 20:06:19 2009
@@ -0,0 +1,36 @@
+#	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.
+#
+### direct log messages to stdout ###
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
+#%c category,p priority,d time,L line number,m message, n newline;
+
+
+#log4j.appender.file=org.apache.log4j.RollingFileAppender
+#log4j.appender.file.File=hsm-application.log
+#log4j.appender.file.MaxFileSize=10MB
+#log4j.appender.file.MaxBackupIndex=2
+#log4j.appender.file.Encoding=UTF-8
+#log4j.appender.file.layout=org.apache.log4j.PatternLayout
+#log4j.appender.file.layout.ConversionPattern=<%d> %-5p [%c] : %m%n
+
+
+log4j.rootLogger=info,stdout
+
+
+### Main project logger to info
+log4j.logger.org.apache.webbeans=info
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/resources/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/beans.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/beans.xml?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/beans.xml (added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/beans.xml Sun
Aug 16 20:06:19 2009
@@ -0,0 +1,30 @@
+<?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.
+-->
+<WebBeans 	xmlns="urn:java:ee"
+			xmlns:myapp="urn:java:org.apache.webbeans.sample.bindings"
+ 			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+			xsi:schemaLocation="urn:java:ee http://java.sun.com/jee/beans-1.0.xsd">
+	
+	<Deploy>
+		<Standard/>
+		<Production/>
+	</Deploy>
+	
+</WebBeans>
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/beans.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/faces-config.xml?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/faces-config.xml
(added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/faces-config.xml
Sun Aug 16 20:06:19 2009
@@ -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.
+-->
+
+<faces-config
+    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"
+    version="1.2">
+    
+    <application>
+        <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+    </application>
+    
+    	
+</faces-config>

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/web.xml?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/web.xml Sun Aug
16 20:06:19 2009
@@ -0,0 +1,54 @@
+<?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.
+-->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
+  <display-name>guess</display-name>
+  
+  <welcome-file-list>
+  	<welcome-file>index.html</welcome-file>
+  </welcome-file-list>
+  
+  <listener>
+    <listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class>
+  </listener>
+  
+  <filter>
+  	<filter-name>webbeans</filter-name>
+  	<filter-class>org.apache.webbeans.jsf.WebBeansJSFFilter</filter-class>
+  </filter>
+  <servlet>
+    <servlet-name>Faces Servlet</servlet-name>
+    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+  <servlet-mapping>
+    <servlet-name>Faces Servlet</servlet-name>
+    <url-pattern>*.jsf</url-pattern>
+  </servlet-mapping>
+  <filter-mapping>
+  	<filter-name>webbeans</filter-name>
+  	<servlet-name>Faces Servlet</servlet-name>
+  </filter-mapping>
+	
+	<context-param>
+      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+      <param-value>.xhtml</param-value>
+   </context-param>
+	  
+</web-app>
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/echo.xhtml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/echo.xhtml?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/echo.xhtml (added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/echo.xhtml Sun Aug 16
20:06:19 2009
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+	
+	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.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<head>
+  <title>OpenWebBeans :: Examples :: EJB Sample</title>
+</head>
+
+<body>
+  
+  <div id="container">
+    <div id="content">
+		<h:messages globalOnly="false" showSummary="true" infoStyle="font-weight:bold;"></h:messages>
+		
+		<h:form id="form">
+						
+			<div style="border:1px solid black;margin: 25px 75px;">
+			
+				<h:panelGrid columns="2">
+					
+					<h:outputLabel for="text">
+						<h:outputText value="Your Name : "></h:outputText>
+					</h:outputLabel>
+					<h:inputText id="text" value="#{echo.name}" required="true" requiredMessage="Please
give a name!"></h:inputText>
+										
+					<h:commandButton action="#{echo.echo}" value="Echo..."></h:commandButton>
+					
+					<f:verbatim/>
+					<h:outputText value="#{echo.text}"></h:outputText>
+					
+				</h:panelGrid>				
+			</div>
+		</h:form>
+	    </div>
+    
+  </div>
+</body>
+</html>
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/echo.xhtml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/index.html?rev=804756&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/index.html (added)
+++ incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/index.html Sun Aug 16
20:06:19 2009
@@ -0,0 +1,21 @@
+<html>
+<!--
+	
+	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.
+-->
+<head>
+  <meta http-equiv="Refresh" content="0; URL=echo.jsf">
+</head>
+</html>
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/samples/ejb-sample/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message