You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2012/04/16 15:10:37 UTC
svn commit: r813253 - in /websites/staging/openejb/trunk: cgi-bin/ content/
content/application-deployment-solutions.html content/sitemap.html
content/sitemap.xml
Author: buildbot
Date: Mon Apr 16 13:10:36 2012
New Revision: 813253
Log:
Staging update by buildbot for openejb
Added:
websites/staging/openejb/trunk/content/application-deployment-solutions.html
Modified:
websites/staging/openejb/trunk/cgi-bin/ (props changed)
websites/staging/openejb/trunk/content/ (props changed)
websites/staging/openejb/trunk/content/sitemap.html
websites/staging/openejb/trunk/content/sitemap.xml
Propchange: websites/staging/openejb/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Apr 16 13:10:36 2012
@@ -1 +1 @@
-1326591
+1326596
Propchange: websites/staging/openejb/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Apr 16 13:10:36 2012
@@ -1 +1 @@
-1326591
+1326596
Added: websites/staging/openejb/trunk/content/application-deployment-solutions.html
==============================================================================
--- websites/staging/openejb/trunk/content/application-deployment-solutions.html (added)
+++ websites/staging/openejb/trunk/content/application-deployment-solutions.html Mon Apr 16 13:10:36 2012
@@ -0,0 +1,234 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+
+ <meta charset="utf-8">
+ <title>Deploying An Application To TomEE Or OpenEJB</title>
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
+ <!--[if lt IE 9]>
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+
+ <!-- Le styles -->
+ <link href="./bootstrap.css" rel="stylesheet">
+ <link href="./prettify.css" rel="stylesheet">
+ <link href="./bootstrap-mods.css" rel="stylesheet">
+
+ <style type="text/css">
+ body {
+ padding-top: 60px;
+ }
+ .sprite {
+ display: inline-block;
+ height: 20px;
+ margin: 0 auto 4px;
+ outline: medium none;
+ text-indent: -999em;
+ width: 24px;
+ background-image: url('./images/sprites.png');
+ background-repeat: no-repeat;
+ overflow: hidden;
+ cursor: pointer;
+ }
+ .fb-share {
+ background-position: 0px -40px;
+ }
+ .gp-share {
+ background-position: 0px 0px;
+ }
+ .tw-share {
+ background-position: 0px -80px;
+ }
+ </style>
+ <script type="text/javascript">
+ function fbshare () {
+ window.open(
+ "http://www.facebook.com/sharer/sharer.php?u="+document.URL,
+ 'Share on Facebook',
+ 'width=640,height=426');
+ };
+ function gpshare () {
+ window.open(
+ "https://plus.google.com/share?url="+document.URL,
+ 'Share on Google+',
+ 'width=584,height=385');
+ };
+ function twshare () {
+ window.open(
+ "https://twitter.com/intent/tweet?url="+document.URL+"&text=Deploying An Application To TomEE Or OpenEJB",
+ 'Share on Twitter',
+ 'width=800,height=526');
+ };
+ </script>
+
+
+ <!-- Le fav and touch icons -->
+ <link rel="shortcut icon" href="./images/favicon.ico">
+ <link rel="apple-touch-icon" href="./images/apple-touch-icon.png">
+ <link rel="apple-touch-icon" sizes="72x72" href="./images/apple-touch-icon-72x72.png">
+ <link rel="apple-touch-icon" sizes="114x114" href="./images/apple-touch-icon-114x114.png">
+
+ <script src="./javascript/prettify.js" type="text/javascript"></script>
+ <script src="./javascript/jquery-latest.js"></script>
+ <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
+ <script src="./javascript/common.js"></script>
+ <script src="./javascript/prettyprint.js"></script>
+
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-2717626-1']);
+ _gaq.push(['_setDomainName', 'apache.org']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+
+
+ </head>
+
+ <body>
+
+ <div class="topbar">
+ <div class="fill">
+ <div class="container">
+ <a class="brand" href="./index.html">Apache TomEE</a>
+ <ul class="nav">
+ <li><a href="./index.html">Home</a></li>
+ <li><a href="./downloads.html">Downloads</a></li>
+ <li><a href="./documentation.html">Documentation</a></li>
+ <li><a href="./support.html">Support</a></li>
+ </ul>
+
+ <!-- Google CSE Search Box Begins -->
+ <FORM class="pull-right" id="searchbox_010475492895890475512:_t4iqjrgx90" action="http://www.google.com/cse">
+ <INPUT type="hidden" name="cx" value="010475492895890475512:_t4iqjrgx90">
+ <INPUT type="hidden" name="cof" value="FORID:0">
+ <INPUT name="q" type="text" placeholder="Search">
+ </FORM>
+ <!--<SCRIPT type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_010475492895890475512:_t4iqjrgx90"></SCRIPT>-->
+ <!-- Google CSE Search Box Ends -->
+ </div>
+ </div>
+ </div>
+
+ <div class="container">
+
+
+
+<div class="page-header">
+<small><a href="./index.html">Home</a></small><br>
+<h1>Deploying An Application To TomEE Or OpenEJB
+
+ <div style="float: right; position: relative; bottom: -10px; ">
+ <a onclick="javascript:gpshare()" class="gp-share sprite" title="share on Google+">share [gp]</a>
+ <a onclick="javascript:fbshare()" class="fb-share sprite" title="share on Facebook">share [fb]</a>
+ <a onclick="javascript:twshare()" class="tw-share sprite" title="share on Twitter">share [tw]</a>
+ </div>
+</h1>
+</div>
+
+<h1>Deploying An Application To TomEE Or OpenEJB</h1>
+
+<h2>How to deploy my application under TomEE</h2>
+
+<h3>Description</h3>
+
+<p>This aims to be more dynamic in the way you deploy your applications.
+It is clearly cloud oriented.</p>
+
+<h3>Webapp and TomEE deployment</h3>
+
+<p>Webapp can be deployed as Tomcat does. Simply put it in webapps folder
+(or the one you configured) and start TomEE.</p>
+
+<h3>TomEE specific deployment</h3>
+
+<p>By default TomEE deploys applications (ear, war, jar) contained in $CATALINA_BASE/apps
+directory at start up.</p>
+
+<h3>Deployer</h3>
+
+<p>OpenEJB provides a Deployer EJB to do this task. It can be used
+in your own software looking up remotely the "openejb/DeployerBusinessRemote" EJB.
+Its interface is "org.apache.openejb.assembler.Deployer".
+The needed dependency is org.apache.openejb:openejb-core.</p>
+
+<p>Once you got your deployer simply invoke the "deploy" method. Give it the location
+of your application (can be a file, http, https, maven location depending on
+the way you configured your container, for more information
+have a look to TomEE provisionning).</p>
+
+<p>Note: the "undeploy" method exists too and take the same path.</p>
+
+<p>The Deployer is the base of all other solutions</p>
+
+<h3>Maven plugin</h3>
+
+<p>org.apache.openejb:tomee-maven-plugin (today only available on apache snapshot repository) can be used
+to deploy/undeploy your application. Once this plugin is added to your pom you have access to the
+following configuration:</p>
+
+<ul>
+<li>tomeeHttpPort</li>
+<li>tomeeHost</li>
+</ul>
+
+<p>Then simply run</p>
+
+<pre><code>mvn tomee:deploy <path>
+</code></pre>
+
+<p>or</p>
+
+<pre><code>mvn tomee:undeploy <path>
+</code></pre>
+
+<h4>The Deployer through TomEE Webapp</h4>
+
+<p>When you start TomEE you can locally access the TomEE webapps (http://host:ip/tomee/).</p>
+
+<p>Then simply go to JNDI tree, select the deployer in the tree, then click on "invoke this ejb",
+select the deploy (or undeploy) method, fill the path and click on "invoke".</p>
+
+<h4>Cloud idea</h4>
+
+<p>If you want to cloudify your application, you'll get a configuration database (or any
+other storage system ;)).</p>
+
+<p>So it means it is easy for you to get a host and a port...so it is easy
+to deploy on all your server using the deployer: simply use the maven provisioning
+then run the deployer on all your nodes and that's all!</p>
+
+<h3>Doing it with camel?</h3>
+
+<p>If you are using a route to deploy/undeploy your applications
+you can have a look to the proposed camel-openejb component:</p>
+
+<ul>
+<li>base code: https://svn.apache.org/repos/asf/openejb/trunk/camel/camel-openejb/</li>
+<li>proposed to be added to camel: https://issues.apache.org/jira/browse/CAMEL-4935</li>
+</ul>
+
+
+
+
+ <footer>
+ <p>
+ Copyright © 2011 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
+ Apache and the Apache feather logo are trademarks of The Apache Software Foundation.
+ </p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
Modified: websites/staging/openejb/trunk/content/sitemap.html
==============================================================================
--- websites/staging/openejb/trunk/content/sitemap.html (original)
+++ websites/staging/openejb/trunk/content/sitemap.html Mon Apr 16 13:10:36 2012
@@ -129,6 +129,7 @@
<li><a href="apache-openejb-3.1.4.html">Apache OpenEJB 3.1.4</a></li>
<li><a href="apache-tomee.html">Apache TomEE</a></li>
<li><a href="app-clients-and-jndi.html">App Clients and JNDI</a></li>
+<li><a href="application-deployment-solutions.html">Deploying An Application To TomEE Or OpenEJB</a></li>
<li><a href="application-discovery-via-the-classpath.html">Application discovery via the classpath</a></li>
<li><a href="articles.html">Articles</a></li>
<li><a href="basics---getting-things.html">Basics - Getting Things</a></li>
Modified: websites/staging/openejb/trunk/content/sitemap.xml
==============================================================================
--- websites/staging/openejb/trunk/content/sitemap.xml (original)
+++ websites/staging/openejb/trunk/content/sitemap.xml Mon Apr 16 13:10:36 2012
@@ -19,6 +19,9 @@
<loc>http://tomee.apache.org/app-clients-and-jndi.html</loc>
</url>
<url>
+ <loc>http://tomee.apache.org/application-deployment-solutions.html</loc>
+ </url>
+ <url>
<loc>http://tomee.apache.org/application-discovery-via-the-classpath.html</loc>
</url>
<url>