| Commit in servicemix/tooling/servicemix-web on MAIN | |||
| src/webapp/index.html | +46 | added 1.1 | |
| /portfolio.html | +77 | added 1.1 | |
| /chat.js | +55 | added 1.1 | |
| /util.js | +35 | added 1.1 | |
| /portfolio.js | +32 | added 1.1 | |
| /chat.html | +20 | added 1.1 | |
| /style.css | +425 | added 1.1 | |
| /webmq.js | +132 | added 1.1 | |
| /send.html | +27 | added 1.1 | |
| maven.xml | +6 | added 1.1 | |
| .cvsignore | +3 | added 1.1 | |
| project.xml | +57 | added 1.1 | |
| project.properties | +18 | added 1.1 | |
| README.txt | +1 | added 1.1 | |
| src/webapp/WEB-INF/web.xml | +29 | added 1.1 | |
| +963 | |||
added a WAR deployment unit for ServiceMix
servicemix/tooling/servicemix-web/src/webapp
index.html added at 1.1
diff -N index.html --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ index.html 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,46 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html> +<head> + <title>ActiveMQ Web Connector</title> + <link rel="stylesheet" href="" type="text/css"> +</head> + +<body> +<h1>ActiveMQ Web Connector</h1> + +<p> +This service allows you to send messages to the JMS network using a +normal HTTP POST and to receive messages from a destination using a +HTTP GET. +</p> + +<h2>Market data example</h2> + +<p> +<a href="">Market data publisher</a> starts publishing +some mock market data prices +</p> + +<p> +<a href="">Porfolio</a> example shows how you could make an interactive trading portfolio which +updates in real time as the market prices change +</p> + +<h2>Chat example</h2> + +<p> +<a href="">Chat room</a> example shows how you can use Streamlets and ActiveMQ to create a simple chat room +</p> + +<h2>Simple Form based browser example</h2> + +<p> +<a href="">Send a message</a> +</p> + +<p> +<a href="">Receive a message</a> +</p> + +</body> +</html>
\ No newline at end of file
servicemix/tooling/servicemix-web/src/webapp
portfolio.html added at 1.1
diff -N portfolio.html --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ portfolio.html 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,77 @@
+<html>
+ <head>
+ <title>My Portfolio</title>
+ <link rel="stylesheet" href="" type="text/css">
+ <style>
+ .stocks { border: 1 solid black; }
+ .stocks td, .stocks th { width: 200; text-align: right; }
+ .stocks .up { background-color: #9f9; }
+ .stocks .down { background-color: #f99; }
+ </style>
+ </head>
+ <body >
+
+ <h1>My Portfolio</h1>
+
+ <p>
+ This example displays an example stock portfolio.
+ In a real system this page would be generated dynamically based on the
+ users current stock portfolio
+ </p>
+
+ <table class="stocks">
+ <tr>
+ <th>Stock</th>
+ <th>Description</th>
+ <th>Amount</th>
+ <th>Price</th>
+ <th>Value</th>
+ <th>Cost</th>
+ <th>P & L</th>
+ </tr>
+ <tr id="IBMW">
+ <td>IBMW</td>
+ <td>IBM Stock</td>
+ <td id="amount">1000</td>
+ <td id="price"></td>
+ <td id="value"></td>
+ <td id="cost">19000</td>
+ <td id="pl"></td>
+ </tr>
+ <tr id="MSFT">
+ <td>MSFT</td>
+ <td>Microsoft</td>
+ <td id="amount">6000</td>
+ <td id="price"></td>
+ <td id="value"></td>
+ <td id="cost">22000</td>
+ <td id="pl"></td>
+ </tr>
+ <tr id="BEAS">
+ <td>BEAS</td>
+ <td>BEA Stock</td>
+ <td id="amount">1100</td>
+ <td id="price"></td>
+ <td id="value"></td>
+ <td id="cost">12342</td>
+ <td id="pl"></td>
+ </tr>
+ <tr id="SUNW">
+ <td>SUNW</td>
+ <td>Sun Microsystems Inc</td>
+ <td id="amount">3000</td>
+ <td id="price"></td>
+ <td id="value"></td>
+ <td id="cost">7700</td>
+ <td id="pl"></td>
+ </tr>
+ </table>
+
+ <div id="stuff"></div>
+
+ <script src="" language="_javascript_1.2"></script>
+ <script src="" language="_javascript_1.2"></script>
+ <script src="" language="_javascript_1.2"></script>
+
+ </body>
+</html>
\ No newline at end of file
servicemix/tooling/servicemix-web/src/webapp
chat.js added at 1.1
diff -N chat.js --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ chat.js 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,55 @@
+// -----------------
+// Original code by Joe Walnes
+// -----------------
+
+function chooseNickName() {
+ var newNickName = prompt("Please choose a nick name", nickName)
+ if (newNickName) {
+ connection.sendMessage(chatTopic, "<message type='status'>" + nickName + " is now known as " + newNickName + "</message>")
+ nickName = newNickName
+ }
+}
+
+// when user clicks 'send', broadcast a message
+function saySomething() {
+ var text = document.getElementById("userInput").value
+ connection.sendMessage(chatTopic, "<message type='chat' from='" + nickName + "'>" + text + "</message>")
+ document.getElementById("userInput").value = ""
+}
+
+// when message is received from topic, display it in chat log
+function receiveMessage(message) {
+ var root = message.documentElement
+ var chatLog = document.getElementById("chatLog")
+
+ var type = root.getAttribute('type')
+ if (type == 'status') {
+ chatLog.value += "*** " + elementText(root) + "\n"
+ }
+ else if (type == 'chat') {
+ chatLog.value += "<" + root.getAttribute('from') + "> " + elementText(root) + "\n"
+ }
+ else {
+ chatLog.value += "*** Unknown type: " + type + " for: " + root + "\n"
+ }
+}
+
+// returns the text of an XML element
+function elementText(element) {
+ var answer = ""
+ var node = element.firstChild
+ while (node != null) {
+ var tmp = node.nodeValue
+ if (tmp != null) {
+ answer += tmp
+ }
+ node = node.nextSibling
+ }
+ return answer
+}
+
+var connection = new Connection("jms/FOO/BAR")
+var chatTopic = "FOO.BAR"
+connection.addMessageListener(chatTopic, receiveMessage)
+var nickName = "unknown"
+document.getElementById("chatLog").value = ''
servicemix/tooling/servicemix-web/src/webapp
util.js added at 1.1
diff -N util.js --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ util.js 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,35 @@
+/// -----------------
+// Original code by Joe Walnes
+// -----------------
+
+/*** Convenience methods, added as mixins to standard classes (object prototypes) ***/
+
+/**
+ * Return number as fixed number of digits.
+ */
+//Number.prototype.fixedDigits = function(digits) {
+function fixedDigits(t, digits) {
+ return (t.toFixed) ? t.toFixed(digits) : this
+}
+
+/**
+ * Find direct child of an element, by id.
+ */
+// Element.prototype.find = function(id) {
+function find(t, id) {
+ for (i = 0; i < t.childNodes.length; i++) {
+ var child = t.childNodes[i]
+ if (child.id == id) {
+ return child
+ }
+ }
+ return null
+}
+
+/**
+ * Return the text contents of an element as a floating point number.
+ */
+//Element.prototype.asFloat = function() {
+function asFloat(t) {
+ return parseFloat(t.innerHTML)
+}
servicemix/tooling/servicemix-web/src/webapp
portfolio.js added at 1.1
diff -N portfolio.js --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ portfolio.js 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,32 @@
+// updates the portfolio row for a given message and symbol
+function updatePortfolioRow(message, destination) {
+
+ var priceMessage = message.documentElement
+
+ var price = parseFloat(priceMessage.getAttribute('bid'))
+ var symbol = priceMessage.getAttribute('stock')
+ var movement = priceMessage.getAttribute('movement')
+ if (movement == null) {
+ movement = 'up'
+ }
+
+ var row = document.getElementById(symbol)
+
+ // perform portfolio calculations
+ var value = asFloat(find(row, 'amount')) * price
+ var pl = value - asFloat(find(row, 'cost'))
+
+ // now lets update the HTML DOM
+ find(row, 'price').innerHTML = fixedDigits(price, 2)
+ find(row, 'value').innerHTML = fixedDigits(value, 2)
+ find(row, 'pl').innerHTML = fixedDigits(pl, 2)
+ find(row, 'price').className = movement
+ find(row, 'pl').className = pl >= 0 ? 'up' : 'down'
+}
+
+var connection = new Connection("jms/STOCKS/*")
+
+function subscribe() {
+ connection.addMessageListener(/^STOCKS\..*$/, updatePortfolioRow)
+}
+
servicemix/tooling/servicemix-web/src/webapp
chat.html added at 1.1
diff -N chat.html --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ chat.html 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,20 @@
+<html> + <head> + <title>Chat</title> + <link rel="stylesheet" href="" type="text/css"> + </head> + <body > + + <h1>Chat Example</h1> + + Welcome to this little chat example<br><br> + + <textarea id="chatLog" rows="20" cols="100"></textarea><br> + Type here: <input id="userInput" type="text" size="70"> + <button default="true">Send</button> + <button >Choose NickName</button> + + <script src="" lanaguage="_javascript_1.2"></script> + <script src="" language="_javascript_1.2"></script> + </body> +</html>
\ No newline at end of file
servicemix/tooling/servicemix-web/src/webapp
style.css added at 1.1
diff -N style.css --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ style.css 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,425 @@
+
+body th {
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ margin: 0;
+}
+
+div {
+ line-height: 1.5em;
+}
+
+a {
+ color: #008800;
+ text-decoration: none;
+ font-weight: bold;
+}
+
+table, th, td {
+ border: none;
+}
+
+.a td {
+ background: #ddd;
+ color: #000;
+ }
+
+.b td {
+ background: #efefef;
+ color: #000;
+ }
+
+
+.navLink a {
+ font-weight: normal;
+}
+
+.navLink {
+ margin-left: 5px;
+}
+
+.navLink:first-line {
+ margin-left: -5px;
+}
+
+
+a:link.selfref, a:visited.selfref {
+}
+
+a:link, a:visited {
+}
+
+a:active, a:hover {
+ text-decoration: underline;
+}
+
+a.plain:active, a.plain:hover {
+ text-decoration: none;
+}
+
+.sectionTitle a {
+ text-decoration: underline;
+}
+.subsectionTitle a {
+ text-decoration: underline;
+}
+
+span.highlight {
+ font-weight: bold;
+ color: #990000;
+}
+
+#layout {
+ margin: 0px;
+ padding: 0px;
+}
+
+#banner {
+ padding: 8px;
+}
+
+#breadcrumbs {
+ border-top: 1px solid #009900;
+ padding-left: 12px;
+ padding-right: 12px;
+ padding-top: 2px;
+ padding-bottom: 2px;
+ font-size: x-small;
+}
+
+#breadcrumbs td {
+ font-size: x-small;
+}
+
+#breadcrumbs a {
+ font-weight: bold;
+}
+
+#layout {
+ border-top: 1px solid #009900;
+ padding: 0px;
+ margin: 0px;
+
+}
+
+.navSection {
+ background-color: #ffffff;
+ border: 1px solid #999999;
+ border-top: none;
+ padding: 0px;
+ margin-bottom: 8px;
+ font-size: small;
+}
+
+.navSection a {
+ font-weight: normal;
+}
+
+.navSectionHead {
+ border-top: 1px solid #999999;
+ border-bottom: 1px solid #999999;
+ color: #555555;
+ padding: 4px;
+ margin-left: 0px;
+ margin-right: 0px;
+ background-color: #eeeeee;
+ font-weight: bold;
+ font-size: x-small;
+}
+
+.navLink {
+ padding-top: 2px;
+ padding-bottom: 2px;
+ padding-left: 14px;
+ font-size: small;
+}
+
+.section {
+ padding-bottom: 16px;
+}
+
+.sectionTitle, h1 {
+ padding: 4px;
+ border: 1px solid #aaaaaa;
+ color: #007700;
+ font-size: x-large;
+ background-color: #dddddd;
+}
+
+h1 {
+ margin: 0px;
+ margin-bottom: .2em;
+}
+
+.subsection {
+ padding-left: 20px;
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
+
+body:first-child {
+ padding-top: 0px;
+}
+
+.subsectionTitle, h2 {
+ margin-top: 8px;
+ margin-bottom: 8px;
+ padding: 6px;
+/*
+ border-left: 1px solid #999999;
+ border-bottom: 1px solid #999999;
+ border: 1px solid #999999;
+*/
+ border-top: 1px solid #dddddd;
+ border-bottom: 1px solid #dddddd;
+ border-left: 2px solid #999999;
+ border-right: 2px solid #999999;
+ color: #007700;
+ background-color: #eeeeee;
+ font-weight: normal;
+ font-size: larger;
+}
+
+.sectionTitle a {
+ font-weight: normal;
+}
+
+.subsectionTitle a {
+ font-weight: normal;
+}
+
+.subsubsection {
+ padding-left: 30px;
+}
+
+.subsubsectionTitle, h3, .blogheading {
+ font-weight: bold;
+ /*background-color: #eeeeee;*/
+ border: 1px solid #cccccc;
+ padding: .2em;
+}
+
+
+p {
+ line-height: 1.8em;
+ /*padding-left: 20px;*/
+ padding-right: 20px;
+}
+
+blockquote p {
+ padding-left: 0px;
+ padding-right: 0px;
+}
+
+ul {
+ padding-left: 1.5em;
+}
+
+li {
+ margin-right: 15%;
+ line-height: 1.6em;
+}
+
+#leftColumn {
+ border-right: 1px solid #cccccc;
+ background-color: #ffffff;
+ padding: 12px;
+ font-size: small;
+}
+
+#extraColumn {
+ padding: 12px;
+}
+
+#navBox {
+}
+
+#rightColumn {
+ padding: 12px;
+ border-right: 1px solid #cccccc;
+}
+
+#contentBox {
+
+}
+
+table.bodyTable, table.wikitable {
+ margin: 10px;
+ border-collapse: collapse;
+ border-spacing: 0pt;
+ background-color: #eeeeee;
+}
+
+#Content table.grid {
+ border: 1px solid #bbbbbb;
+}
+
+table.grid {
+ padding: 0px;
+ border-collapse: collapse;
+ border-spacing: 0pt;
+}
+
+table.grid th {
+ background-color: #eeeeee;
+ font-size: smaller;
+ padding: 4px;
+ border-bottom: 1px solid #bbbbbb;
+}
+
+table.grid td {
+ font-size: x-small;
+ border: 1px solid #bbbbbb;
+ padding: 3px;
+}
+
+table.bodyTable th, table.bodyTable td, table.wikitable th, table.wikitable td {
+ border: 1px solid #999999;
+ font-size: smaller;
+ padding: 4px;
+}
+
+
+table.bodyTable th, table.wikitable th {
+ text-align: left;
+ background-color: #dddddd;
+ border: 2px solid #999999;
+ padding: 4px;
+}
+
+.nobr
+ white-space: nowrap;
+}
+
+table.bodyTable td {
+ padding: 4px;
+}
+
+/*
+table.bodyTable th, table.wikitable th {
+ border-bottom: 2px solid #999999;
+}
+
+table.bodyTable tr.a {
+ background-color: #dedede;
+}
+
+table.bodyTable tr.b {
+ background-color: #efefef;
+}
+*/
+
+.source, .code {
+ padding: 12px;
+ margin: 12px;
+ border: 1px solid #007700;
+ border-left: 2px solid #007700;
+ border-right: 2px solid #007700;
+ color: #555555;
+}
+
+pre {
+ padding: 12px;
+}
+
+.java-keyword {
+ color: #009900;
+}
+
+.java-object {
+ color: #000099;
+}
+
+.java-quote {
+ color: #990000;
+}
+
+
+.source, .code pre {
+ margin: 0px;
+ margin-left: 8px;
+ padding: 0px;
+}
+
+#footer {
+ padding-left: 4px;
+ border-top: 1px solid #999999;
+ color: #888888;
+ font-size: x-small;
+}
+
+blockquote {
+ border-top: 1px solid #bbbbbb;
+ border-bottom: 1px solid #bbbbbb;
+ border-left: 3px solid #bbbbbb;
+ border-right: 3px solid #bbbbbb;
+ padding: 12px;
+ margin-left: 10%;
+ margin-right: 15%;
+ color: #666666;
+ background-color: white;
+ line-height: 1.5em;
+}
+
+input[type="text"] {
+ margin: 0px;
+ border: 1px solid #999999;
+ background-color: #dddddd;
+}
+
+input.required {
+ margin: 0px;
+ border: 1px solid #990000;
+}
+
+input {
+ border: 1px solid #999999;
+}
+
+textarea {
+ border: 1px solid #999999;
+}
+
+textarea.required {
+ border: 1px solid #990000;
+}
+
+label {
+ font-size: smaller;
+}
+
+label.required {
+ color: #990000;
+}
+
+.searchResults {
+ color: black;
+}
+
+.searchResults b {
+ color: #007700;
+}
+
+
+.linecomment { color: #bbbbbbb; }
+.blockcomment { color: #bbbbbbb; }
+.prepro { color: #0000BB; }
+.select {}
+.quote { color: #770000; }
+.category1 { color: #007700; }
+.category2 { color: #0000BB; }
+.category3 { color: #0000BB; }
+
+
+/* Portfolio demo */
+td.amount, td.price, td.value, td.pl, td.cost {
+ text-align: right
+}
+
+div.up {
+ color: black;
+}
+
+div.down {
+ color: red;
+}
+
servicemix/tooling/servicemix-web/src/webapp
webmq.js added at 1.1
diff -N webmq.js --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ webmq.js 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,132 @@
+// -----------------
+// Original code by Joe Walnes
+// -----------------
+
+function Connection(webmqUrl, id) {
+ this.messageListeners = new Array()
+ this.webmqUrl = webmqUrl
+ if (id == null) {
+ // TODO use secure random id generation
+ id = Math.round(Math.random() * 100000000)
+ }
+ this.id = id
+ // TODO don't start anything until document has finished loading
+ var http = this.createHttpControl()
+ this.getNextMessageAndLoop(webmqUrl, id, http)
+}
+
+Connection.prototype.getNextMessageAndLoop = function(webmqUrl, id, http) {
+ http.open("GET", webmqUrl + "?id=" + id + "&xml=true", true)
+ var connection = this
+ http. {
+ if (http.readyState == 4) {
+ var ok
+ try {
+ ok = http.status && http.status == 200
+ }
+ catch (e) {
+ ok = false // sometimes accessing the http.status fields causes errors in firefox. dunno why. -joe
+ }
+ if (ok) {
+ connection.processIncomingMessage(http)
+ }
+ // why do we have to create a new instance?
+ // this is not required on firefox but is on mozilla
+ //http.abort()
+ http = connection.createHttpControl()
+ connection.getNextMessageAndLoop(webmqUrl, id, http)
+ }
+ }
+ http.send(null)
+}
+
+Connection.prototype.sendMessage = function(destination, message) {
+ // TODO should post via body rather than URL
+ // TODO specify destination in message
+ var http = this.createHttpControl()
+ http.open("POST", this.webmqUrl + "?id=" + this.id + "&body=" + message, true)
+ http.send(null)
+}
+
+Connection.prototype.processIncomingMessage = function(http) {
+ var destination = http.getResponseHeader("destination")
+ var message = http.responseXML
+ if (message == null) {
+ message = http.responseText
+ }
+ //alert(message.responseText)
+ for (var j = 0; j < this.messageListeners.length; j++) {
+ var registration = this.messageListeners[j]
+ if (registration.matcher(destination)) {
+ registration.messageListener(message, destination)
+ }
+ }
+}
+
+Connection.prototype.addMessageListener = function(matcher, messageListener) {
+ var wrappedMatcher
+ if (matcher.constructor == RegExp) {
+ wrappedMatcher = function(destination) {
+ return matcher.test(destination)
+ }
+ }
+ else if (matcher.constructor == String) {
+ wrappedMatcher = function(destination) {
+ return matcher == destination
+ }
+ }
+ else {
+ wrappedMatcher = matcher
+ }
+ this.messageListeners[this.messageListeners.length] = { matcher: wrappedMatcher, messageListener: messageListener }
+}
+
+Connection.prototype.createHttpControl = function() {
+ // for details on using XMLHttpRequest see
+ // http://webfx.eae.net/dhtml/xmlextras/xmlextras.html
+ try {
+ if (window.XMLHttpRequest) {
+ var req = new XMLHttpRequest()
+
+ // some older versions of Moz did not support the readyState property
+ // and the onreadystate event so we patch it!
+ if (req.readyState == null) {
+ req.readyState = 1
+ req.addEventListener("load", function () {
+ req.readyState = 4
+ if (typeof req. "function") {
+ req.onreadystatechange()
+ }
+ }, false)
+ }
+
+ return req
+ }
+ if (window.ActiveXObject) {
+ return new ActiveXObject(this.getControlPrefix() + ".XmlHttp")
+ }
+ }
+ catch (ex) {}
+ // fell through
+ throw new Error("Your browser does not support XmlHttp objects")
+}
+
+Connection.prototype.getControlPrefix = function() {
+ if (this.prefix) {
+ return this.prefix
+ }
+
+ var prefixes = ["MSXML2", "Microsoft", "MSXML", "MSXML3"]
+ var o, o2
+ for (var i = 0; i < prefixes.length; i++) {
+ try {
+ // try to create the objects
+ o = new ActiveXObject(prefixes[i] + ".XmlHttp")
+ o2 = new ActiveXObject(prefixes[i] + ".XmlDom")
+ return this.prefix = prefixes[i]
+ }
+ catch (ex) {}
+ }
+ throw new Error("Could not find an installed XML parser")
+}
+
servicemix/tooling/servicemix-web/src/webapp
send.html added at 1.1
diff -N send.html --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ send.html 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html> +<head> + <title>Send a JMS Message</title> + <link rel="stylesheet" href="" type="text/css"> +</head> + +<body> +<h1>Send a JMS Message</h1> + +<form action="" method="post"> + <p> + <label for="">Message body: </label> + </p> + <p> + <textarea name="body" rows="30" cols="80"> +Enter some text here for the message body... + </textarea> + </p> + <p> + <input type="submit" value="Send"/> + <input type="reset"/> + </p> +</form> + +</body> +</html>
\ No newline at end of file
servicemix/tooling/servicemix-web
maven.xml added at 1.1
diff -N maven.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ maven.xml 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,6 @@
+<project default="default" xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven"> + + <!-- we want the code to be built as a jar not a war --> + <goal name="default" prereqs="jar:install"/> + +</project>
servicemix/tooling/servicemix-web
.cvsignore added at 1.1
diff -N .cvsignore --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ .cvsignore 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,3 @@
+target +.project +.classpath
servicemix/tooling/servicemix-web
project.xml added at 1.1
diff -N project.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ project.xml 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE project>
+<project>
+ <pomVersion>3</pomVersion>
+ <extend>${basedir}/../../base/project.xml</extend>
+
+ <name>ServiceMix :: Web</name>
+ <id>servicemix-web</id>
+
+ <description>WAR deployment unit for ServiceMix</description>
+ <shortDescription>
+ WAR deployment unit for ServiceMix
+ </shortDescription>
+
+ <package>org.servicemix.web</package>
+ <packageGroups>
+ <packageGroup>
+ <title>WAR deployment unit for ServiceMix</title>
+ <packages>org.servicemix.web</packages>
+ </packageGroup>
+ </packageGroups>
+
+
+ <!-- ============ -->
+ <!-- Dependencies -->
+ <!-- ============ -->
+ <dependencies>
+
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-servlet</artifactId>
+ <version>2.4-rc4</version>
+ <properties>
+ <war.bundle>false</war.bundle>
+ <!-- <eclipse.dependency>true</eclipse.dependency> -->
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>activemq</groupId>
+ <artifactId>activemq-web</artifactId>
+ <version>3.2-SNAPSHOT</version>
+ <properties>
+ <war.bundle>true</war.bundle>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>servicemix</artifactId>
+ <version>${pom.currentVersion}</version>
+ <properties>
+ <war.bundle>true</war.bundle>
+ </properties>
+ </dependency>
+ </dependencies>
+
+</project>
servicemix/tooling/servicemix-web
project.properties added at 1.1
diff -N project.properties --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ project.properties 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,18 @@
+# -------------------------------------------------------------------
+# Build Properties
+# -------------------------------------------------------------------
+maven.multiproject.type=war
+
+
+# ------------------------------------------------------------------------
+# Remove these ASAP when the build is made modular
+# ------------------------------------------------------------------------
+maven.jar.mail = ${basedir}/../../base/lib/j2ee/mail.jar
+maven.jar.activation = ${basedir}/../../base/lib/j2ee/activation.jar
+maven.jar.jaxrpc = ${basedir}/../../base/lib/j2ee/jaxrpc.jar
+
+maven.jar.ojdbc14 = ${basedir}/../../base/lib/oracle/ojdbc14.jar
+maven.jar.oraclexsql = ${basedir}/../../base/lib/oracle/oraclexsql.jar
+maven.jar.xmlparserv2 = ${basedir}/../../base/lib/oracle/xmlparserv2.jar
+maven.jar.xsu12 = ${basedir}/../../base/lib/oracle/xsu12.jar
+
servicemix/tooling/servicemix-web
README.txt added at 1.1
diff -N README.txt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ README.txt 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1 @@
+A WAR deployment unit for ServiceMix
servicemix/tooling/servicemix-web/src/webapp/WEB-INF
web.xml added at 1.1
diff -N web.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ web.xml 12 Sep 2005 08:44:18 -0000 1.1 @@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="ISO-8859-1"?> + +<!DOCTYPE web-app + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd"> + +<web-app> + + <display-name>ServiceMix Web Application</display-name> + <description> + Deploys ServiceMix inside a Web Application + </description> + + <!-- servlet mappings --> + + + <!-- the main JMX servlet --> + <servlet> + <servlet-name>JMXServlet</servlet-name> + <servlet-class>org.activemq.web.jmx.JMXServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + <servlet-mapping> + <servlet-name>JMXServlet</servlet-name> + <url-pattern>/jmx/*</url-pattern> + </servlet-mapping> + +</web-app>
