[jboss-svn-commits] JBL Code SVN: r12670 - in labs/jbosstm/workspace/maciej.machulak/code/demo/app: resources and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jun 18 21:37:56 EDT 2007
Author: maciej.machulak
Date: 2007-06-18 21:37:56 -0400 (Mon, 18 Jun 2007)
New Revision: 12670
Added:
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/application.xml
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/index.jsp
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-ba-handlers-server.xml
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-handlers-client.xml
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-handlers-server.xml
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-hotel-handlers-server.xml
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/persistence.xml
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/style.css
labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/web.xml
Log:
Added a folder remotely
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/application.xml
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/application.xml (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/application.xml 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,87 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ See the copyright.txt in the distribution for a full listing
+ of individual contributors.
+ This copyrighted material is made available to anyone wishing to use,
+ modify, copy, or redistribute it subject to the terms and conditions
+ of the GNU General Public License, v. 2.0.
+ This program is distributed in the hope that it will be useful, but WITHOUT A
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ You should have received a copy of the GNU General Public License,
+ v. 2.0 along with this distribution; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ (C) 2005-2006,
+ @author JBoss Inc.
+-->
+
+ <!-- $Id: axis-application.xml,v 1.8.4.1 2005/11/22 10:42:05 kconner Exp $ -->
+
+<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
+
+<application>
+ <display-name>XML Transaction Service Demo</display-name>
+
+ <description>XML Transaction Service Demo</description>
+
+ <module>
+ <web>
+ <web-uri>ws-c.war</web-uri>
+ <context-root>/xts</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>ws-t.war</web-uri>
+ <context-root>/ws-t</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>wscf.war</web-uri>
+ <context-root>/wscf</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>wstx.war</web-uri>
+ <context-root>/wstx</context-root>
+ </web>
+ </module>
+
+ <module>
+ <ejb>wstest-service-bistro.jar</ejb>
+ </module>
+
+ <module>
+ <ejb>wstest-service-restaurant.jar</ejb>
+ </module>
+
+ <module>
+ <ejb>wstest-service-flightat.jar</ejb>
+ </module>
+
+ <module>
+ <ejb>wstest-service-flightba.jar</ejb>
+ </module>
+
+ <module>
+ <ejb>wstest-service-hotelat.jar</ejb>
+ </module>
+
+ <module>
+ <ejb>wstest-service-hotelba.jar</ejb>
+ </module>
+
+ <module>
+ <web>
+ <web-uri>wstest.war</web-uri>
+ <context-root>/wstest</context-root>
+ </web>
+ </module>
+
+</application>
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/index.jsp
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/index.jsp (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/index.jsp 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,122 @@
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+<%--
+The taglib directive below imports the JSTL library. If you uncomment it,
+you must also add the JSTL library to the project. The Add Library... action
+on Libraries node in Projects view can be used to add the JSTL 1.1 library.
+--%>
+<%--
+<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+--%>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <link rel="stylesheet" href="style.css" type="text/css">
+ <title>Weeekend Out</title>
+</head>
+<body>
+
+<h1>Travel Agent Portal</h1>
+<h3>Date: <%= new java.util.Date() %></h3>
+
+<hr>
+<h3>Restaurant</h3>
+<form action="WeekendClient" method="post">
+ <table>
+
+ <tr>
+ <td colspan="2">User data</td>
+ </tr>
+ <tr>
+ <td class="menu">Name</td>
+ <td>
+ <input type="text" name="username"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">Password</td>
+ <td>
+ <input type="text" name="password"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">Room number</td>
+ <td>
+ <input type="text" name="roomNumber"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">Reservation number</td>
+ <td>
+ <input type="text" name="reservationNumber"/>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan=2>Restaurant</td>
+ </tr>
+ <tr>
+ <td class="menu">makeReservation()</td>
+ <td>
+ This method takes (username,password,roomnumber) as parameters.
+ </td>
+ <td>
+ <input type="radio" name="method" value="makeReservation"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">cancelReservation()</td>
+ <td>
+ This method takes (username,password,roomnumber) as parameters.
+ </td>
+ <td>
+ <input type="radio" name="method" value="cancelReservation"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">getHotelInfo()</td>
+ <td>
+ This method takes (username) as parameter.
+ </td>
+ <td>
+ <input type="checkbox" name="method" value="getHotelInfo"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">getHotelOwner()</td>
+ <td>
+ This method takes (username) as parameter.
+ </td>
+ <td>
+ <input type="checkbox" name="method" value="getHotelOwner"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">Termination type</td>
+ <td>
+ <select name="terminationType">
+ <option value="commit">Commit/Complete</option>
+ <option value="cancel">Rollback/Cancel</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="menu">Transaction type</td>
+ <td>
+ <select name="transactionType">
+ <option value="ba">Business Activity</option>
+ <option value="at">Atomic Transaction</option>
+ <option value="none">No transaction</option>
+ </select>
+ </td>
+ </tr>
+ </table>
+ <input type="submit" value="Book">
+</form>
+${requestScope.response}
+</body>
+</html>
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-ba-handlers-server.xml
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-ba-handlers-server.xml (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-ba-handlers-server.xml 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains 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 javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+
+ <!-- JSR 181 does not seem to define ordering of handlers in a chain, which may be a problem
+ Nor does it say anything about instances/threading/lifecycle
+ perhaps go from jar 101 (jax-rpc) instead?
+ 12.1.4 says default is to invoke in order of registration
+ 12.4 seems to imply you can't assume same instance will process request+reply
+ use set/setProperty on MessageContext for state
+ -->
+
+ <handler>
+ <handler-name>WebServicesBaBridgeHandler</handler-name>
+ <handler-class>org.jboss.txbridge.ba.JaxWSBusinessActivityHandler</handler-class>
+ </handler>
+
+ <handler>
+ <handler-name>TransactionSpecifierHandler</handler-name>
+ <handler-class>org.jboss.txbridge.ba.JaxWSBASpecifierHandler</handler-class>
+ </handler>
+
+ <handler>
+ <handler-name>WebServicesTxContextHandler</handler-name>
+ <handler-class>org.jboss.txbridge.JaxWSServerHeaderContextProcessor</handler-class>
+ </handler>
+
+ </handler-chain>
+</handler-chains>
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-handlers-client.xml
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-handlers-client.xml (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-handlers-client.xml 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains 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 javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+
+ <handler>
+ <handler-name>JaxWSHandler</handler-name>
+ <handler-class>wstest.clients.JaxWSClientHeaderContextProcessor</handler-class>
+ </handler>
+
+ </handler-chain>
+</handler-chains>
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-handlers-server.xml
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-handlers-server.xml (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-handlers-server.xml 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains 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 javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+
+ <!-- JSR 181 does not seem to define ordering of handlers in a chain, which may be a problem
+ Nor does it say anything about instances/threading/lifecycle
+ perhaps go from jar 101 (jax-rpc) instead?
+ 12.1.4 says default is to invoke in order of registration
+ 12.4 seems to imply you can't assume same instance will process request+reply
+ use set/setProperty on MessageContext for state
+ -->
+
+ <handler>
+ <handler-name>TransactionBridgeHandler</handler-name>
+ <handler-class>org.jboss.txbridge.at.JaxWSTransactionBridgeHandler</handler-class>
+ </handler>
+
+ <handler>
+ <handler-name>WebServicesTxContextHandler</handler-name>
+ <handler-class>org.jboss.txbridge.JaxWSServerHeaderContextProcessor</handler-class>
+ </handler>
+
+
+
+ </handler-chain>
+</handler-chains>
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-hotel-handlers-server.xml
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-hotel-handlers-server.xml (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/jaxws-hotel-handlers-server.xml 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains 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 javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+
+ <!-- JSR 181 does not seem to define ordering of handlers in a chain, which may be a problem
+ Nor does it say anything about instances/threading/lifecycle
+ perhaps go from jar 101 (jax-rpc) instead?
+ 12.1.4 says default is to invoke in order of registration
+ 12.4 seems to imply you can't assume same instance will process request+reply
+ use set/setProperty on MessageContext for state
+ -->
+
+ <handler>
+ <handler-name>TransactionBridgeHandler</handler-name>
+ <handler-class>org.jboss.txbridge.at.JaxWSTransactionBridgeHandler</handler-class>
+ </handler>
+
+ <handler>
+ <handler-name>TransactionSpecifierHandler</handler-name>
+ <handler-class>org.jboss.txbridge.at.JaxWSTransactionSpecifierHandler</handler-class>
+ </handler>
+
+ <handler>
+ <handler-name>WebServicesTxContextHandler</handler-name>
+ <handler-class>org.jboss.txbridge.JaxWSServerHeaderContextProcessor</handler-class>
+ </handler>
+
+
+
+ </handler-chain>
+</handler-chains>
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/persistence.xml
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/persistence.xml (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/persistence.xml 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,8 @@
+<persistence>
+ <persistence-unit name="wstest">
+ <jta-data-source>java:/DefaultDS</jta-data-source>
+ <properties>
+ <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+ </properties>
+ </persistence-unit>
+</persistence>
\ No newline at end of file
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/style.css
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/style.css (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/style.css 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,106 @@
+A:link, A:visited {
+ text-decoration: none;
+ color: black;
+ font-family: Verdana;
+ font-size: 10pt;
+ text-decoration: underline;
+ }
+
+A:hover {
+ text-decoration: underline;
+ color: red;
+}
+P {
+ font-face: Verdana;
+ font-size: 10pt;
+ font-family: Verdana;
+}
+
+TD, TH, center {
+ font-face: Verdana;
+ font-size: 10pt;
+ font-family: Verdana;
+ border-bottom: 1px solid black;
+ border-right: 1px solid black;
+ vertical-align: middle;
+ width: 100px;
+}
+
+TD.check {
+ background-color: #C0C0C0;
+ text-align: center;
+ width: 30px;
+}
+
+TD.menu {
+ background-color: #C0C0C0;
+ font-weight: Bold;
+ width: 200px;
+}
+
+
+BODY {
+ font-face: Tahoma;
+ font-size: 10pt;
+ font-family: Tahoma;
+ text-align: left;
+ background-color: #DCDCDC;
+ margin-top: 0px
+ }
+HR
+{
+ color: black;
+ noshade;
+}
+
+H1 {
+ font-face: Tahoma;
+ font-size: 20pt;
+ font-family: Tahoma;
+ font-weight: Bold;
+ }
+
+H2 {
+ font-face: Tahoma, Verdana;
+ font-size: 12pt;
+ font-family: Tahoma, Verdana, Arial;
+ font-weight: bold;
+ }
+
+H4 {
+ font-face: Tahoma, Verdana;
+ font-size: 12pt;
+ font-family: Tahoma, Verdana, Arial;
+ font-weight: bold;
+ color: green;
+ }
+
+H5 {
+ font-face: Tahoma, Verdana;
+ font-size: 12pt;
+ font-family: Tahoma, Verdana, Arial;
+ font-weight: bold;
+ color: red;
+ }
+
+
+H6 {
+ font-face: Verdana;
+ font-size: 10pt;
+ font-weight: bold;
+ font-family: Tahoma;
+ }
+
+input, textarea {
+ font-family: Tahoma, Verdana, Arial;
+ font-size: 10pt;
+ color: black;
+}
+
+input, textarea, select {
+ font-family: Tahoma, Verdana, Arial;
+ font-size: 10pt;
+ color: black;
+ border-width: '1pt';
+ border-color: black
+ }
\ No newline at end of file
Added: labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/web.xml
===================================================================
--- labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/web.xml (rev 0)
+++ labs/jbosstm/workspace/maciej.machulak/code/demo/app/resources/web.xml 2007-06-19 01:37:56 UTC (rev 12670)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
+ xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
+
+ <servlet>
+ <servlet-name>WeekendClient</servlet-name>
+ <servlet-class>wstest.clients.WeekendClient</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>WeekendClient</servlet-name>
+ <url-pattern>/WeekendClient</url-pattern>
+ </servlet-mapping>
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
More information about the jboss-svn-commits
mailing list