Added: tomee/site/trunk/content/tomee-8.0/pt/examples/simple-cdi-interceptor.html URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/tomee-8.0/pt/examples/simple-cdi-interceptor.html?rev=1866567&view=auto ============================================================================== --- tomee/site/trunk/content/tomee-8.0/pt/examples/simple-cdi-interceptor.html (added) +++ tomee/site/trunk/content/tomee-8.0/pt/examples/simple-cdi-interceptor.html Sat Sep 7 20:31:05 2019 @@ -0,0 +1,316 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Apache TomEE</title> + <meta name="description" + content="Apache TomEE is a lightweight, yet powerful, JavaEE Application server with feature rich tooling." /> + <meta name="keywords" content="tomee,asf,apache,javaee,jee,shade,embedded,test,junit,applicationcomposer,maven,arquillian" /> + <meta name="author" content="Luka Cvetinovic for Codrops" /> + <link rel="icon" href="../../../favicon.ico"> + <link rel="icon" type="image/png" href="../../../favicon.png"> + <meta name="msapplication-TileColor" content="#80287a"> + <meta name="theme-color" content="#80287a"> + <link rel="stylesheet" type="text/css" href="../../../css/normalize.css"> + <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.css"> + <link rel="stylesheet" type="text/css" href="../../../css/owl.css"> + <link rel="stylesheet" type="text/css" href="../../../css/animate.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/font-awesome-4.1.0/css/font-awesome.min.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/eleganticons/et-icons.css"> + <link rel="stylesheet" type="text/css" href="../../../css/jqtree.css"> + <link rel="stylesheet" type="text/css" href="../../../css/idea.css"> + <link rel="stylesheet" type="text/css" href="../../../css/cardio.css"> + + <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="preloader"> + <img src="../../../img/loader.gif" alt="Preloader image"> + </div> + <nav class="navbar"> + <div class="container"> + <div class="row"> <div class="col-md-12"> + + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/"> + <span> + + + <img src="../../../img/logo-active.png"> + + + </span> + Apache TomEE + </a> + </div> + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right main-nav"> + <li><a href="../../../docs.html">Documentation</a></li> + <li><a href="../../../community/index.html">Community</a></li> + <li><a href="../../../security/security.html">Security</a></li> + <li><a href="../../../download-ng.html">Downloads</a></li> + </ul> + </div> + <!-- /.navbar-collapse --> + </div></div> + </div> + <!-- /.container-fluid --> + </nav> + + + <div id="main-block" class="container main-block"> + <div class="row title"> + <div class="col-md-12"> + <div class='page-header'> + + <h1>CDI Interceptor Simples</h1> + </div> + </div> + </div> + <div class="row"> + + <div class="col-md-12"> + <div class="paragraph"> +<p>Vamos escrever uma aplicação simples que nos permite comprar entradas para um +filme. Como toda aplicação, log é uma das questões transversais que temos.</p> +</div> +<div class="paragraph"> +<p>(Trechos relevantes de código vão estar presentes neste tutorial, mas você pode +ver o código completo em nosso repositório no <a href="https://github.com/apache/tomee/tree/master/examples/simple-cdi-interceptor">GitHub</a>)</p> +</div> +<div class="paragraph"> +<p>Como nós podemos marcar quais métodos serão interceptados? +Não seria interessante +poder anotar o método desta forma?</p> +</div> +<div class="literalblock"> +<div class="content"> +<pre>@Log +public void aMethod(){...}</pre> +</div> +</div> +<div class="paragraph"> +<p>Vamos criar uma anotação que "marca" nosso método para interceptação.</p> +</div> +<div class="literalblock"> +<div class="content"> +<pre>@InterceptorBinding +@Target({ TYPE, METHOD }) +@Retention(RUNTIME) +public @interface Log { +}</pre> +</div> +</div> +<div class="paragraph"> +<p>Tenha certeza que você não esqueceu da anotação <code>@InterceptorBinding</code> acima! +Agora que nossa anotação customizada foi criada, vamos anexa-la (ou "vincula-la") +a um interceptador.</p> +</div> +<div class="paragraph"> +<p>Aqui está nosso interceptador de log. Um método <code>@AroundInvoke</code> e estamos quase +terminando.</p> +</div> +<div class="literalblock"> +<div class="content"> +<pre>@Interceptor +@Log //binding the interceptor here. now any method annotated with @Log would be intercepted by logMethodEntry +public class LoggingInterceptor { + @AroundInvoke + public Object logMethodEntry(InvocationContext ctx) throws Exception { + System.out.println("Entering method: " + ctx.getMethod().getName()); + //or logger.info statement + return ctx.proceed(); + } +}</pre> +</div> +</div> +<div class="paragraph"> +<p>Agora a anotação <code>@Log</code> que criamos está vinculada a este interceptador.</p> +</div> +<div class="paragraph"> +<p>Tudo pronto, vamos anotar em nÃvel de classe ou método e nos divertir interceptando !</p> +</div> +<div class="literalblock"> +<div class="content"> +<pre>@Log +@Stateful +public class BookShow implements Serializable { + private static final long serialVersionUID = 6350400892234496909L; + public List<String> getMoviesList() { + List<String> moviesAvailable = new ArrayList<String>(); + moviesAvailable.add("12 Angry Men"); + moviesAvailable.add("Kings speech"); + return moviesAvailable; + } + public Integer getDiscountedPrice(int ticketPrice) { + return ticketPrice - 50; + } + // assume more methods are present +}</pre> +</div> +</div> +<div class="paragraph"> +<p>A anotação <code>@Log</code> aplicada em nÃvel de classe diz que todos os métodos desta +classe devem ser interceptados pelo <code>LoggingInterceptor</code>.</p> +</div> +<div class="paragraph"> +<p>Antes de dizermos "tudo pronto" temos que fazer uma última coisa! Habilitar +os interceptadores!</p> +</div> +<div class="paragraph"> +<p>Vamos criar rapidamente um arquivo <code>beans.xml</code> na pasta <code>META-INF</code></p> +</div> +<div class="literalblock"> +<div class="content"> +<pre><beans> + <interceptors> + <class>org.superbiz.cdi.bookshow.interceptors.LoggingInterceptor + </class> + </interceptors> +</beans></pre> +</div> +</div> +<div class="paragraph"> +<p>Essas linhas em <code>beans.xml</code> não apenas "habilitam" os interceptadores, mas também +definem sua "ordem de execução". Mas veremos isso em outro exemplo multiple-cdi-interceptors.</p> +</div> +<div class="paragraph"> +<p>Execute o teste, e veremos um <code>Entering method: getMovieList</code> impresso no terminal.</p> +</div> +<div class="literalblock"> +<div class="content"> +<pre>#Tests Apache OpenEJB 4.0.0-beta-2 build: 20111103-01:00 +http://tomee.apache.org/ +INFO - openejb.home = /media/fthree/Workspace/open4/openejb/examples/cdi-simple-interceptors +INFO - openejb.base = /media/fthree/Workspace/open4/openejb/examples/cdi-simple-interceptors +INFO - Using `javax.ejb.embeddable.EJBContainer=true' +INFO - ConfiguringService(id=Default Security Service, type=SecurityService, provider-id=Default Security Service) +INFO - ConfiguringService(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) +INFO - Found EjbModule in classpath:/media/fthree/Workspace/open4/openejb/examples/cdi-simple-interceptors/target/classes +INFO - Beginning load: /media/fthree/Workspace/open4/openejb/examples/cdi-simple-interceptors/target/classes +INFO - Configuring enterprise application: /media/fthree/Workspace/open4/openejb/examples/cdi-simple-interceptors +INFO - Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container) +INFO - Auto-creating a container for bean cdi-simple-interceptors.Comp: Container(type=MANAGED,id=Default Managed Container) +INFO - Configuring Service(id=DefaultStateful Container, type=Container, provider-id=Default Stateful Container) +INFO - Auto-creating a container for bean BookShow: Container(type=STATEFUL, id=Default Stateful Container) +INFO - Enterprise application "/media/fthree/Workspace/open4/openejb/examples/cdi-simple-interceptors" loaded. +INFO - Assembling app: /media/fthree/Workspace/open4/openejb/examples/cdi-simple-interceptors +INFO - Jndi(name="java:global/cdi-simple-interceptors/BookShow!org.superbiz.cdi.bookshow.beans.BookShow") +INFO - Jndi(name="java:global/cdi-simple-interceptors/BookShow") +INFO - Created Ejb(deployment-id=BookShow, ejb-name=BookShow, container=Default Stateful Container) +INFO - Started Ejb(deployment-id=BookShow, ejb-name=BookShow, container=Default Stateful Container) +INFO - Deployed Application(path=/media/fthree/Workspace/open4/openejb/examples/cdi-simple-interceptors) +Entering method: getMoviesList</pre> +</div> +</div> + </div> + + </div> + </div> +<footer> + <div class="container"> + <div class="row"> + <div class="col-sm-6 text-center-mobile"> + <h3 class="white">Be simple. Be certified. Be Tomcat.</h3> + <h5 class="light regular light-white">"A good application in a good server"</h5> + <ul class="social-footer"> + <li><a href="https://www.facebook.com/ApacheTomEE/"><i class="fa fa-facebook"></i></a></li> + <li><a href="https://twitter.com/apachetomee"><i class="fa fa-twitter"></i></a></li> + <li><a href="https://plus.google.com/communities/105208241852045684449"><i class="fa fa-google-plus"></i></a></li> + </ul> + </div> + <div class="col-sm-6 text-center-mobile"> + <div class="row opening-hours"> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/docs/documentation.html" class="white">Documentation</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/docs/admin/configuration/index.html" class="regular light-white">How to configure</a></li> + <li><a href="../../../latest/docs/admin/file-layout.html" class="regular light-white">Dir. Structure</a></li> + <li><a href="../../../latest/docs/developer/testing/index.html" class="regular light-white">Testing</a></li> + <li><a href="../../../latest/docs/admin/cluster/index.html" class="regular light-white">Clustering</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/examples/" class="white">Examples</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/examples/simple-cdi-interceptor.html" class="regular light-white">CDI Interceptor</a></li> + <li><a href="../../../latest/examples/rest-cdi.html" class="regular light-white">REST with CDI</a></li> + <li><a href="../../../latest/examples/ejb-examples.html" class="regular light-white">EJB</a></li> + <li><a href="../../../latest/examples/jsf-managedBean-and-ejb.html" class="regular light-white">JSF</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../community/index.html" class="white">Community</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../community/contributors.html" class="regular light-white">Contributors</a></li> + <li><a href="../../../community/social.html" class="regular light-white">Social</a></li> + <li><a href="../../../community/sources.html" class="regular light-white">Sources</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../security/index.html" class="white">Security</a></h5> + <ul class="list-unstyled"> + <li><a href="http://apache.org/security" target="_blank" class="regular light-white">Apache Security</a></li> + <li><a href="http://apache.org/security/projects.html" target="_blank" class="regular light-white">Security Projects</a></li> + <li><a href="http://cve.mitre.org" target="_blank" class="regular light-white">CVE</a></li> + </ul> + </div> + </div> + </div> + </div> + <div class="row bottom-footer text-center-mobile"> + <div class="col-sm-12 light-white"> + <p>Copyright © 1999-2016 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache TomEE, TomEE, Apache, the Apache feather logo, and the Apache TomEE project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p> + </div> + </div> + </div> + </footer> + <!-- Holder for mobile navigation --> + <div class="mobile-nav"> + <ul> + <li><a hef="../../../latest/docs/admin/index.html">Administrators</a> + <li><a hef="../../../latest/docs/developer/index.html">Developers</a> + <li><a hef="../../../latest/docs/advanced/index.html">Advanced</a> + <li><a hef="../../../community/index.html">Community</a> + </ul> + <a href="#" class="close-link"><i class="arrow_up"></i></a> + </div> + <!-- Scripts --> + <script src="../../../js/jquery-1.11.1.min.js"></script> + <script src="../../../js/owl.carousel.min.js"></script> + <script src="../../../js/bootstrap.min.js"></script> + <script src="../../../js/wow.min.js"></script> + <script src="../../../js/typewriter.js"></script> + <script src="../../../js/jquery.onepagenav.js"></script> + <script src="../../../js/tree.jquery.js"></script> + <script src="../../../js/highlight.pack.js"></script> + <script src="../../../js/main.js"></script> + </body> + +</html> +
Added: tomee/site/trunk/content/tomee-8.0/pt/examples/spring-data-proxy-meta.html URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/tomee-8.0/pt/examples/spring-data-proxy-meta.html?rev=1866567&view=auto ============================================================================== --- tomee/site/trunk/content/tomee-8.0/pt/examples/spring-data-proxy-meta.html (added) +++ tomee/site/trunk/content/tomee-8.0/pt/examples/spring-data-proxy-meta.html Sat Sep 7 20:31:05 2019 @@ -0,0 +1,204 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Apache TomEE</title> + <meta name="description" + content="Apache TomEE is a lightweight, yet powerful, JavaEE Application server with feature rich tooling." /> + <meta name="keywords" content="tomee,asf,apache,javaee,jee,shade,embedded,test,junit,applicationcomposer,maven,arquillian" /> + <meta name="author" content="Luka Cvetinovic for Codrops" /> + <link rel="icon" href="../../../favicon.ico"> + <link rel="icon" type="image/png" href="../../../favicon.png"> + <meta name="msapplication-TileColor" content="#80287a"> + <meta name="theme-color" content="#80287a"> + <link rel="stylesheet" type="text/css" href="../../../css/normalize.css"> + <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.css"> + <link rel="stylesheet" type="text/css" href="../../../css/owl.css"> + <link rel="stylesheet" type="text/css" href="../../../css/animate.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/font-awesome-4.1.0/css/font-awesome.min.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/eleganticons/et-icons.css"> + <link rel="stylesheet" type="text/css" href="../../../css/jqtree.css"> + <link rel="stylesheet" type="text/css" href="../../../css/idea.css"> + <link rel="stylesheet" type="text/css" href="../../../css/cardio.css"> + + <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="preloader"> + <img src="../../../img/loader.gif" alt="Preloader image"> + </div> + <nav class="navbar"> + <div class="container"> + <div class="row"> <div class="col-md-12"> + + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/"> + <span> + + + <img src="../../../img/logo-active.png"> + + + </span> + Apache TomEE + </a> + </div> + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right main-nav"> + <li><a href="../../../docs.html">Documentation</a></li> + <li><a href="../../../community/index.html">Community</a></li> + <li><a href="../../../security/security.html">Security</a></li> + <li><a href="../../../download-ng.html">Downloads</a></li> + </ul> + </div> + <!-- /.navbar-collapse --> + </div></div> + </div> + <!-- /.container-fluid --> + </nav> + + + <div id="main-block" class="container main-block"> + <div class="row title"> + <div class="col-md-12"> + <div class='page-header'> + + <h1>null</h1> + </div> + </div> + </div> + <div class="row"> + + <div class="col-md-12"> + <div class="sect1"> +<h2 id="_amostra_spring_data_com_meta">Amostra Spring Data com Meta</h2> +<div class="sectionbody"> +<div class="paragraph"> +<p>Este exemplo simplesmente simplifica o uso do spring-data provendo uma amostra +de meta annotation <code>@SpringRepository</code> para fazer todo o trabalho EJB de proxy dinâmico.</p> +</div> +<div class="paragraph"> +<p>Ele substitui as anotações @Proxy e @Stateless.</p> +</div> +<div class="paragraph"> +<p>Não é mais confortável?</p> +</div> +<div class="paragraph"> +<p>Para fazer isso, definimos uma meta-anotação <code>Metatype</code> e a usamos.</p> +</div> +<div class="paragraph"> +<p>A implementação de proxy é a mesma que para amostra do Spring-Data.</p> +</div> +</div> +</div> + </div> + + </div> + </div> +<footer> + <div class="container"> + <div class="row"> + <div class="col-sm-6 text-center-mobile"> + <h3 class="white">Be simple. Be certified. Be Tomcat.</h3> + <h5 class="light regular light-white">"A good application in a good server"</h5> + <ul class="social-footer"> + <li><a href="https://www.facebook.com/ApacheTomEE/"><i class="fa fa-facebook"></i></a></li> + <li><a href="https://twitter.com/apachetomee"><i class="fa fa-twitter"></i></a></li> + <li><a href="https://plus.google.com/communities/105208241852045684449"><i class="fa fa-google-plus"></i></a></li> + </ul> + </div> + <div class="col-sm-6 text-center-mobile"> + <div class="row opening-hours"> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/docs/documentation.html" class="white">Documentation</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/docs/admin/configuration/index.html" class="regular light-white">How to configure</a></li> + <li><a href="../../../latest/docs/admin/file-layout.html" class="regular light-white">Dir. Structure</a></li> + <li><a href="../../../latest/docs/developer/testing/index.html" class="regular light-white">Testing</a></li> + <li><a href="../../../latest/docs/admin/cluster/index.html" class="regular light-white">Clustering</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/examples/" class="white">Examples</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/examples/simple-cdi-interceptor.html" class="regular light-white">CDI Interceptor</a></li> + <li><a href="../../../latest/examples/rest-cdi.html" class="regular light-white">REST with CDI</a></li> + <li><a href="../../../latest/examples/ejb-examples.html" class="regular light-white">EJB</a></li> + <li><a href="../../../latest/examples/jsf-managedBean-and-ejb.html" class="regular light-white">JSF</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../community/index.html" class="white">Community</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../community/contributors.html" class="regular light-white">Contributors</a></li> + <li><a href="../../../community/social.html" class="regular light-white">Social</a></li> + <li><a href="../../../community/sources.html" class="regular light-white">Sources</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../security/index.html" class="white">Security</a></h5> + <ul class="list-unstyled"> + <li><a href="http://apache.org/security" target="_blank" class="regular light-white">Apache Security</a></li> + <li><a href="http://apache.org/security/projects.html" target="_blank" class="regular light-white">Security Projects</a></li> + <li><a href="http://cve.mitre.org" target="_blank" class="regular light-white">CVE</a></li> + </ul> + </div> + </div> + </div> + </div> + <div class="row bottom-footer text-center-mobile"> + <div class="col-sm-12 light-white"> + <p>Copyright © 1999-2016 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache TomEE, TomEE, Apache, the Apache feather logo, and the Apache TomEE project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p> + </div> + </div> + </div> + </footer> + <!-- Holder for mobile navigation --> + <div class="mobile-nav"> + <ul> + <li><a hef="../../../latest/docs/admin/index.html">Administrators</a> + <li><a hef="../../../latest/docs/developer/index.html">Developers</a> + <li><a hef="../../../latest/docs/advanced/index.html">Advanced</a> + <li><a hef="../../../community/index.html">Community</a> + </ul> + <a href="#" class="close-link"><i class="arrow_up"></i></a> + </div> + <!-- Scripts --> + <script src="../../../js/jquery-1.11.1.min.js"></script> + <script src="../../../js/owl.carousel.min.js"></script> + <script src="../../../js/bootstrap.min.js"></script> + <script src="../../../js/wow.min.js"></script> + <script src="../../../js/typewriter.js"></script> + <script src="../../../js/jquery.onepagenav.js"></script> + <script src="../../../js/tree.jquery.js"></script> + <script src="../../../js/highlight.pack.js"></script> + <script src="../../../js/main.js"></script> + </body> + +</html> + Added: tomee/site/trunk/content/tomee-8.0/pt/examples/spring-data-proxy.html URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/tomee-8.0/pt/examples/spring-data-proxy.html?rev=1866567&view=auto ============================================================================== --- tomee/site/trunk/content/tomee-8.0/pt/examples/spring-data-proxy.html (added) +++ tomee/site/trunk/content/tomee-8.0/pt/examples/spring-data-proxy.html Sat Sep 7 20:31:05 2019 @@ -0,0 +1,204 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Apache TomEE</title> + <meta name="description" + content="Apache TomEE is a lightweight, yet powerful, JavaEE Application server with feature rich tooling." /> + <meta name="keywords" content="tomee,asf,apache,javaee,jee,shade,embedded,test,junit,applicationcomposer,maven,arquillian" /> + <meta name="author" content="Luka Cvetinovic for Codrops" /> + <link rel="icon" href="../../../favicon.ico"> + <link rel="icon" type="image/png" href="../../../favicon.png"> + <meta name="msapplication-TileColor" content="#80287a"> + <meta name="theme-color" content="#80287a"> + <link rel="stylesheet" type="text/css" href="../../../css/normalize.css"> + <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.css"> + <link rel="stylesheet" type="text/css" href="../../../css/owl.css"> + <link rel="stylesheet" type="text/css" href="../../../css/animate.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/font-awesome-4.1.0/css/font-awesome.min.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/eleganticons/et-icons.css"> + <link rel="stylesheet" type="text/css" href="../../../css/jqtree.css"> + <link rel="stylesheet" type="text/css" href="../../../css/idea.css"> + <link rel="stylesheet" type="text/css" href="../../../css/cardio.css"> + + <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="preloader"> + <img src="../../../img/loader.gif" alt="Preloader image"> + </div> + <nav class="navbar"> + <div class="container"> + <div class="row"> <div class="col-md-12"> + + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/"> + <span> + + + <img src="../../../img/logo-active.png"> + + + </span> + Apache TomEE + </a> + </div> + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right main-nav"> + <li><a href="../../../docs.html">Documentation</a></li> + <li><a href="../../../community/index.html">Community</a></li> + <li><a href="../../../security/security.html">Security</a></li> + <li><a href="../../../download-ng.html">Downloads</a></li> + </ul> + </div> + <!-- /.navbar-collapse --> + </div></div> + </div> + <!-- /.container-fluid --> + </nav> + + + <div id="main-block" class="container main-block"> + <div class="row title"> + <div class="col-md-12"> + <div class='page-header'> + + <h1>null</h1> + </div> + </div> + </div> + <div class="row"> + + <div class="col-md-12"> + <div class="sect1"> +<h2 id="_amostra_spring_data">Amostra Spring Data</h2> +<div class="sectionbody"> +<div class="paragraph"> +<p>Este exemplo usa ganchos OpenEJB para substituir uma implementação EJB por um proxy para usar o Spring Data no seu contêiner preferido.</p> +</div> +<div class="paragraph"> +<p>à bem simples: Simplesmente prover para o OpenEJB uma InvocationHandler +usando delegação para o Spring-Data e pronto!</p> +</div> +<div class="paragraph"> +<p>à o que é feito em <code>org.superbiz.dynamic.SpringDataProxy</code>.</p> +</div> +<div class="paragraph"> +<p>Ele contém um pequeno truque: mesmo que não seja anotado +o atributo <code>implementingInterfaceClass</code> é injetado pelo OpenEJB para obter +a interface. +Então nós simplesmente criamos o repositório Spring Data e delegamos para ele.</p> +</div> +</div> +</div> + </div> + + </div> + </div> +<footer> + <div class="container"> + <div class="row"> + <div class="col-sm-6 text-center-mobile"> + <h3 class="white">Be simple. Be certified. Be Tomcat.</h3> + <h5 class="light regular light-white">"A good application in a good server"</h5> + <ul class="social-footer"> + <li><a href="https://www.facebook.com/ApacheTomEE/"><i class="fa fa-facebook"></i></a></li> + <li><a href="https://twitter.com/apachetomee"><i class="fa fa-twitter"></i></a></li> + <li><a href="https://plus.google.com/communities/105208241852045684449"><i class="fa fa-google-plus"></i></a></li> + </ul> + </div> + <div class="col-sm-6 text-center-mobile"> + <div class="row opening-hours"> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/docs/documentation.html" class="white">Documentation</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/docs/admin/configuration/index.html" class="regular light-white">How to configure</a></li> + <li><a href="../../../latest/docs/admin/file-layout.html" class="regular light-white">Dir. Structure</a></li> + <li><a href="../../../latest/docs/developer/testing/index.html" class="regular light-white">Testing</a></li> + <li><a href="../../../latest/docs/admin/cluster/index.html" class="regular light-white">Clustering</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/examples/" class="white">Examples</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/examples/simple-cdi-interceptor.html" class="regular light-white">CDI Interceptor</a></li> + <li><a href="../../../latest/examples/rest-cdi.html" class="regular light-white">REST with CDI</a></li> + <li><a href="../../../latest/examples/ejb-examples.html" class="regular light-white">EJB</a></li> + <li><a href="../../../latest/examples/jsf-managedBean-and-ejb.html" class="regular light-white">JSF</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../community/index.html" class="white">Community</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../community/contributors.html" class="regular light-white">Contributors</a></li> + <li><a href="../../../community/social.html" class="regular light-white">Social</a></li> + <li><a href="../../../community/sources.html" class="regular light-white">Sources</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../security/index.html" class="white">Security</a></h5> + <ul class="list-unstyled"> + <li><a href="http://apache.org/security" target="_blank" class="regular light-white">Apache Security</a></li> + <li><a href="http://apache.org/security/projects.html" target="_blank" class="regular light-white">Security Projects</a></li> + <li><a href="http://cve.mitre.org" target="_blank" class="regular light-white">CVE</a></li> + </ul> + </div> + </div> + </div> + </div> + <div class="row bottom-footer text-center-mobile"> + <div class="col-sm-12 light-white"> + <p>Copyright © 1999-2016 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache TomEE, TomEE, Apache, the Apache feather logo, and the Apache TomEE project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p> + </div> + </div> + </div> + </footer> + <!-- Holder for mobile navigation --> + <div class="mobile-nav"> + <ul> + <li><a hef="../../../latest/docs/admin/index.html">Administrators</a> + <li><a hef="../../../latest/docs/developer/index.html">Developers</a> + <li><a hef="../../../latest/docs/advanced/index.html">Advanced</a> + <li><a hef="../../../community/index.html">Community</a> + </ul> + <a href="#" class="close-link"><i class="arrow_up"></i></a> + </div> + <!-- Scripts --> + <script src="../../../js/jquery-1.11.1.min.js"></script> + <script src="../../../js/owl.carousel.min.js"></script> + <script src="../../../js/bootstrap.min.js"></script> + <script src="../../../js/wow.min.js"></script> + <script src="../../../js/typewriter.js"></script> + <script src="../../../js/jquery.onepagenav.js"></script> + <script src="../../../js/tree.jquery.js"></script> + <script src="../../../js/highlight.pack.js"></script> + <script src="../../../js/main.js"></script> + </body> + +</html> + Added: tomee/site/trunk/content/tomee-8.0/pt/examples/tomee-jms-portability.html URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/tomee-8.0/pt/examples/tomee-jms-portability.html?rev=1866567&view=auto ============================================================================== --- tomee/site/trunk/content/tomee-8.0/pt/examples/tomee-jms-portability.html (added) +++ tomee/site/trunk/content/tomee-8.0/pt/examples/tomee-jms-portability.html Sat Sep 7 20:31:05 2019 @@ -0,0 +1,325 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Apache TomEE</title> + <meta name="description" + content="Apache TomEE is a lightweight, yet powerful, JavaEE Application server with feature rich tooling." /> + <meta name="keywords" content="tomee,asf,apache,javaee,jee,shade,embedded,test,junit,applicationcomposer,maven,arquillian" /> + <meta name="author" content="Luka Cvetinovic for Codrops" /> + <link rel="icon" href="../../../favicon.ico"> + <link rel="icon" type="image/png" href="../../../favicon.png"> + <meta name="msapplication-TileColor" content="#80287a"> + <meta name="theme-color" content="#80287a"> + <link rel="stylesheet" type="text/css" href="../../../css/normalize.css"> + <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.css"> + <link rel="stylesheet" type="text/css" href="../../../css/owl.css"> + <link rel="stylesheet" type="text/css" href="../../../css/animate.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/font-awesome-4.1.0/css/font-awesome.min.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/eleganticons/et-icons.css"> + <link rel="stylesheet" type="text/css" href="../../../css/jqtree.css"> + <link rel="stylesheet" type="text/css" href="../../../css/idea.css"> + <link rel="stylesheet" type="text/css" href="../../../css/cardio.css"> + + <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="preloader"> + <img src="../../../img/loader.gif" alt="Preloader image"> + </div> + <nav class="navbar"> + <div class="container"> + <div class="row"> <div class="col-md-12"> + + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/"> + <span> + + + <img src="../../../img/logo-active.png"> + + + </span> + Apache TomEE + </a> + </div> + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right main-nav"> + <li><a href="../../../docs.html">Documentation</a></li> + <li><a href="../../../community/index.html">Community</a></li> + <li><a href="../../../security/security.html">Security</a></li> + <li><a href="../../../download-ng.html">Downloads</a></li> + </ul> + </div> + <!-- /.navbar-collapse --> + </div></div> + </div> + <!-- /.container-fluid --> + </nav> + + + <div id="main-block" class="container main-block"> + <div class="row title"> + <div class="col-md-12"> + <div class='page-header'> + + <h1>Portabilidade entre ActiveMQ e IBM MQ</h1> + </div> + </div> + </div> + <div class="row"> + + <div class="col-md-12"> + <div id="preamble"> +<div class="sectionbody"> +<div class="paragraph"> +<p>Este aplicativo demonstra a capacidade de obter portabilidade/interoperabilidade entre o ActiveMQ e o IBM MQ para aplicativos baseados no tipo MDB e conexão JMS baseada em Java. Abrange padrões e aprendizados conforme listado abaixo.</p> +</div> +<div class="olist arabic"> +<ol class="arabic"> +<li> +<p>Como executar vários contêineres mdb na mesma JVM;</p> +</li> +<li> +<p>Várias maneiras de configurar IBM Filas/Tópicos vs AMQ Filas/Tópicos;</p> +</li> +<li> +<p>Configuração do MDB para IBM MQ vs AMQ e Anotações vs Configuração;</p> +</li> +<li> +<p>Declaração estática vs dinâmica/substituição de filas/tópicos;</p> +</li> +<li> +<p>Uso e importância de RA (Adaptadores de Recursos) e Fábricas de Conexão;</p> +</li> +<li> +<p>Amostras de serviço da Web para gravar dados em IBM Queues e AMQ Queues usando injeção de recursos (fábricas de conexão e filas/tópicos);</p> +</li> +<li> +<p>Referência de JNDI para recursos (consulte configuração de WMQReadBean em ejb-jar.xml);</p> +</li> +</ol> +</div> +</div> +</div> +<div class="sect1"> +<h2 id="_executando_este_aplicativo">Executando este aplicativo</h2> +<div class="sectionbody"> +<div class="sect2"> +<h3 id="_ambiente">Ambiente</h3> +<div class="paragraph"> +<p>O aplicativo pode ser importado na IDE Eclipse como um projeto maven e é testado usando apache-tomee-plume-7.0.2 e apache-activemq-5.14.3 (executando como standalone no localhost, IBM MQ 8.xx (detalhes das conexões ocultos para evitar mau uso, aqueles que desejam testar podem entrar em contato com a equipe de middleware para obter acesso à instância gerenciada do IBM MQ e ao AppWatch)).</p> +</div> +</div> +<div class="sect2"> +<h3 id="_bibliotecas_adicionais">Bibliotecas Adicionais</h3> +<div class="paragraph"> +<p>Para conectar-se ao IBM MQ, o tomee requer bibliotecas adicionais contendo implementação para Adaptador de Recurso JCA, fábricas de conexão do IBM MQ, recursos de fila/tópico, ActivationConfigs, etc. Essas bibliotecas vêm com assinatura IBM e todas elas não estão disponÃveis no maven central, abaixo é a lista de todos os arquivos jar especÃficos da IBM.</p> +</div> +<div class="paragraph"> +<p>com.ibm.mq.connector.jar +com.ibm.mq.jar +com.ibm.mq.pcf.jar +com.ibm.mq.headers.jar +com.ibm.mq.jmqi.jar +com.ibm.mqjms.jar +providerutil.jar</p> +</div> +<div class="paragraph"> +<p>com.ibm.mq.connector.jar pode ser extraido de wmq.jmsra.rar que está disponÃvel com a instalação do IBM MQ (não disponÃvel na internet).</p> +</div> +</div> +<div class="sect2"> +<h3 id="_tomee_xml">tomee.xml</h3> +<div class="paragraph"> +<p>Este arquivo (localizado em tomee_home/conf é deixado em branco, pois gostarÃamos que nosso aplicativo gerenciasse todos os recursos. Qualquer recurso declarado aqui estaria disponÃvel para todos os aplicativos implantados no servidor. +(Arquivo não incluido neste repositório git)</p> +</div> +<div class="listingblock"> +<div class="content"> +<pre class="highlight"><code class="language-xml" data-lang="xml"><?xml version="1.0" encoding="UTF-8"?> +<tomee> +</tomee></code></pre> +</div> +</div> +</div> +<div class="sect2"> +<h3 id="_catalina_properties">catalina.properties</h3> +<div class="paragraph"> +<p>Este arquivo pode ser usado para fornecer convenientemente argumentos java -D como uma entrada para tomee. No entanto, no mundo real, esses parâmetros seriam configurados usando variáveis de ambiente para evitar a adição de propriedades especÃficas do aplicativo no tomee conf (Arquivo não incluÃdo neste repositório git).</p> +</div> +<div class="listingblock"> +<div class="content"> +<pre class="highlight"><code class="language-xml" data-lang="xml">com.ibm.msg.client.commonservices.log.status=OFF + +AMQReadBean2.activation.destination=overriden_queue_IMQReadBean +#Destinos de fila +amq.variable.destination=my_overriden_value +#Substituições de recursos +#amq_ra.ServerUrl=tcp://xxxxx.xxx.xxx.com:61616 + +#Substituições de configuração de ativação do MDB +#Hierarquia para regras de substituição de ativação (especÃficas para genéricas) +#1 -D<deploymentId>.activation.<property>=<value> +#2. -D<ejbName>.activation.<property>=<value> +#3. -D<message-listener-interface>.activation.<property>=<value> +#4. -Dmdb.activation.<property>=<value> +#mdb.activation.destination=overriden_queue_value +WMQReadBean.activation.HostName=10.234.56.789</code></pre> +</div> +</div> +</div> +<div class="sect2"> +<h3 id="_resources_xml">resources.xml</h3> +<div class="paragraph"> +<p>Este arquivo é um espaço reservado para recursos especÃficos do aplicativo (ele substituirá quaisquer recursos correspondentes declarados em tomee.xml) como adaptadores de recursos, fábricas de conexão, filas, tópicos, mdb-containers, etc. +Este exemplo faz uso pesado desse arquivo que está em src/main/webapp/WEB-INF, para aplicativos implementados como arquivo war ele é copiado para <mark>#</mark>/webapps/application-name/WEB-INF/resources.xml.</p> +</div> +</div> +<div class="sect2"> +<h3 id="_ejb_jar_xml">ejb-jar.xml</h3> +<div class="paragraph"> +<p>Esse arquivo está localizado em src/main/resources/META-INF/ e contém configurações especÃficas do aplicativo para enterprise beans, na demo que configuramos nossos beans de mensagem nesse arquivo. As definições neste arquivo são equivalentes a anotações, a versão="3.1" suportará uma combinação de beans configurados e anotados. Uma diferença importante entre os beans anotados e os beans configurados é a seguinte, se houver vários contêineres definidos ou usados no mesmo aplicativo (Como esse aplicativo usa o amq-contêiner e o imq-contêiner). +Qualquer bean anotado é sequencialmente vinculado ao recurso de contêiner, isso pode trazer imprevisibilidade e pode resultar na vinculação de um Bean a um contêiner de destino incorreto. Por exemplo, o ChatBean MDB é intencionalmente comentado, pois pode gerar erros ao ser vinculado incorretamente ao IMQ. Para lidar com esses problemas, a abordagem baseada em configuração pode ser usada em conjunto com o openejb-jar.xml (conforme descrito abaixo).</p> +</div> +</div> +<div class="sect2"> +<h3 id="_openejb_jar_xml">openejb-jar.xml</h3> +<div class="paragraph"> +<p>Este arquivo está localizado em src/main/resources/META-INF/ e contém mapeamento adicional entre ejb e contêineres de destino. Ele também possui um ID de implementação que pode ser usado para criar várias implantações para o mesmo ejb em um contêiner ou em contêineres. Isso é muito útil quando você deseja vincular um bean especÃfico ao contêiner desejado (por exemplo, WMQReadBean deve obrigatoriamente ser vinculado ao contêiner simple-tomee-1.0/imq_container).</p> +</div> +</div> +<div class="sect2"> +<h3 id="_web_xml">web.xml</h3> +<div class="paragraph"> +<p>Arquivo tÃpico de recurso da Web, pouco usado neste aplicativo tutorial.</p> +</div> +</div> +<div class="sect2"> +<h3 id="_beans_xml">beans.xml</h3> +<div class="paragraph"> +<p>Para usar @Inject, a primeira coisa que você precisa é de um arquivo META-INF/beans.xml no módulo ou jar. Isso efetivamente ativa o CDI e permite que as referências do @Inject funcionem. Não META-INF/beans.xml sem injeção e perÃodo. +Não usado neste tutorial</p> +</div> +</div> +</div> +</div> +<div class="sect1"> +<h2 id="_desenvolvedores">Desenvolvedores</h2> +<div class="sectionbody"> +<div class="paragraph"> +<p>Suyog Barve <<a href="mailto:[email protected]">[email protected]</a>></p> +</div> +</div> +</div> + </div> + + </div> + </div> +<footer> + <div class="container"> + <div class="row"> + <div class="col-sm-6 text-center-mobile"> + <h3 class="white">Be simple. Be certified. Be Tomcat.</h3> + <h5 class="light regular light-white">"A good application in a good server"</h5> + <ul class="social-footer"> + <li><a href="https://www.facebook.com/ApacheTomEE/"><i class="fa fa-facebook"></i></a></li> + <li><a href="https://twitter.com/apachetomee"><i class="fa fa-twitter"></i></a></li> + <li><a href="https://plus.google.com/communities/105208241852045684449"><i class="fa fa-google-plus"></i></a></li> + </ul> + </div> + <div class="col-sm-6 text-center-mobile"> + <div class="row opening-hours"> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/docs/documentation.html" class="white">Documentation</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/docs/admin/configuration/index.html" class="regular light-white">How to configure</a></li> + <li><a href="../../../latest/docs/admin/file-layout.html" class="regular light-white">Dir. Structure</a></li> + <li><a href="../../../latest/docs/developer/testing/index.html" class="regular light-white">Testing</a></li> + <li><a href="../../../latest/docs/admin/cluster/index.html" class="regular light-white">Clustering</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/examples/" class="white">Examples</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/examples/simple-cdi-interceptor.html" class="regular light-white">CDI Interceptor</a></li> + <li><a href="../../../latest/examples/rest-cdi.html" class="regular light-white">REST with CDI</a></li> + <li><a href="../../../latest/examples/ejb-examples.html" class="regular light-white">EJB</a></li> + <li><a href="../../../latest/examples/jsf-managedBean-and-ejb.html" class="regular light-white">JSF</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../community/index.html" class="white">Community</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../community/contributors.html" class="regular light-white">Contributors</a></li> + <li><a href="../../../community/social.html" class="regular light-white">Social</a></li> + <li><a href="../../../community/sources.html" class="regular light-white">Sources</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../security/index.html" class="white">Security</a></h5> + <ul class="list-unstyled"> + <li><a href="http://apache.org/security" target="_blank" class="regular light-white">Apache Security</a></li> + <li><a href="http://apache.org/security/projects.html" target="_blank" class="regular light-white">Security Projects</a></li> + <li><a href="http://cve.mitre.org" target="_blank" class="regular light-white">CVE</a></li> + </ul> + </div> + </div> + </div> + </div> + <div class="row bottom-footer text-center-mobile"> + <div class="col-sm-12 light-white"> + <p>Copyright © 1999-2016 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache TomEE, TomEE, Apache, the Apache feather logo, and the Apache TomEE project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p> + </div> + </div> + </div> + </footer> + <!-- Holder for mobile navigation --> + <div class="mobile-nav"> + <ul> + <li><a hef="../../../latest/docs/admin/index.html">Administrators</a> + <li><a hef="../../../latest/docs/developer/index.html">Developers</a> + <li><a hef="../../../latest/docs/advanced/index.html">Advanced</a> + <li><a hef="../../../community/index.html">Community</a> + </ul> + <a href="#" class="close-link"><i class="arrow_up"></i></a> + </div> + <!-- Scripts --> + <script src="../../../js/jquery-1.11.1.min.js"></script> + <script src="../../../js/owl.carousel.min.js"></script> + <script src="../../../js/bootstrap.min.js"></script> + <script src="../../../js/wow.min.js"></script> + <script src="../../../js/typewriter.js"></script> + <script src="../../../js/jquery.onepagenav.js"></script> + <script src="../../../js/tree.jquery.js"></script> + <script src="../../../js/highlight.pack.js"></script> + <script src="../../../js/main.js"></script> + </body> + +</html> + Added: tomee/site/trunk/content/tomee-8.0/pt/examples/vaadin-lts-v08-simple.html URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/tomee-8.0/pt/examples/vaadin-lts-v08-simple.html?rev=1866567&view=auto ============================================================================== --- tomee/site/trunk/content/tomee-8.0/pt/examples/vaadin-lts-v08-simple.html (added) +++ tomee/site/trunk/content/tomee-8.0/pt/examples/vaadin-lts-v08-simple.html Sat Sep 7 20:31:05 2019 @@ -0,0 +1,253 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Apache TomEE</title> + <meta name="description" + content="Apache TomEE is a lightweight, yet powerful, JavaEE Application server with feature rich tooling." /> + <meta name="keywords" content="tomee,asf,apache,javaee,jee,shade,embedded,test,junit,applicationcomposer,maven,arquillian" /> + <meta name="author" content="Luka Cvetinovic for Codrops" /> + <link rel="icon" href="../../../favicon.ico"> + <link rel="icon" type="image/png" href="../../../favicon.png"> + <meta name="msapplication-TileColor" content="#80287a"> + <meta name="theme-color" content="#80287a"> + <link rel="stylesheet" type="text/css" href="../../../css/normalize.css"> + <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.css"> + <link rel="stylesheet" type="text/css" href="../../../css/owl.css"> + <link rel="stylesheet" type="text/css" href="../../../css/animate.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/font-awesome-4.1.0/css/font-awesome.min.css"> + <link rel="stylesheet" type="text/css" href="../../../fonts/eleganticons/et-icons.css"> + <link rel="stylesheet" type="text/css" href="../../../css/jqtree.css"> + <link rel="stylesheet" type="text/css" href="../../../css/idea.css"> + <link rel="stylesheet" type="text/css" href="../../../css/cardio.css"> + + <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="preloader"> + <img src="../../../img/loader.gif" alt="Preloader image"> + </div> + <nav class="navbar"> + <div class="container"> + <div class="row"> <div class="col-md-12"> + + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/"> + <span> + + + <img src="../../../img/logo-active.png"> + + + </span> + Apache TomEE + </a> + </div> + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right main-nav"> + <li><a href="../../../docs.html">Documentation</a></li> + <li><a href="../../../community/index.html">Community</a></li> + <li><a href="../../../security/security.html">Security</a></li> + <li><a href="../../../download-ng.html">Downloads</a></li> + </ul> + </div> + <!-- /.navbar-collapse --> + </div></div> + </div> + <!-- /.container-fluid --> + </nav> + + + <div id="main-block" class="container main-block"> + <div class="row title"> + <div class="col-md-12"> + <div class='page-header'> + + <h1>null</h1> + </div> + </div> + </div> + <div class="row"> + + <div class="col-md-12"> + <div class="sect1"> +<h2 id="_vaadin_v8_lts_webapp_simples_em_java">Vaadin V8 (LTS) - WebApp Simples em Java</h2> +<div class="sectionbody"> +<div class="paragraph"> +<p>Essa demo vai mostrar como iniciar com uma simples webapp V8, baseado na API pura do Java executando no TomEE (webprofile)</p> +</div> +<div class="paragraph"> +<p>O Framework Vaadin é open source e está disponÃvel em +<a href="https://github.com/vaadin/framework">Github</a></p> +</div> +<div class="sect2"> +<h3 id="_buildando_esse_exemplo">Buildando esse exemplo</h3> +<div class="paragraph"> +<p>Para 'buildar' esse exemplo, apenas execute <em>mvn clean install tomee:run</em> Você encontrará o app executando em <a href="http://localhost:8080/" class="bare">http://localhost:8080/</a></p> +</div> +</div> +<div class="sect2"> +<h3 id="_implementação">Implementação</h3> +<div class="paragraph"> +<p>Essa implementação está usando o <a href="https://vaadin.com/framework">Vaadin 8 +API</a>.</p> +</div> +<div class="listingblock"> +<div class="content"> +<pre class="highlight"><code class="language-java" data-lang="java">public class HelloVaadin { + + public static class MyUI extends UI { + @Override + protected void init(VaadinRequest request) { + + //create the components you want to use + // and set the main component with setContent(..) + final Layout layout = new VerticalLayout(); + layout + .addComponent(new Button("click me", + event -> layout.addComponents(new Label("clicked again")) + )); + + //set the main Component + setContent(layout); + } + + @WebServlet("/*") + @VaadinServletConfiguration(productionMode = false, ui = MyUI.class) + public static class MyProjectServlet extends VaadinServlet { } + } +}</code></pre> +</div> +</div> +<div class="paragraph"> +<p>A documentação do Vaadin Framework está disponÃvel +<a href="https://vaadin.com/docs/v8/framework/tutorial.html">aqui</a></p> +</div> +</div> +<div class="sect2"> +<h3 id="_informação_de_suporte">Informação de Suporte</h3> +<div class="paragraph"> +<p>O Framework Vaadin 8 é a versão mais recente baseada no GWT. V8 em si é uma versão +LTS.</p> +</div> +<div class="paragraph"> +<p>A nova Vaadin Platform é baseada em WebComponents. A partir do Vaadin 10, +Vaadin está sendo movido para o modelo de release train com quatro versões major todo +ano. Isso lhes permite enviar novas funcionalidades rapidamente para desenvolvedores. Vaadin +continua o seu empenho em termos de estabilidade a longo prazo com versões long-term +support (LTS). As versões LTS vão sair aproximadamente a cada dois anos e oferecerão 5 anos de suporte.</p> +</div> +</div> +</div> +</div> + </div> + + </div> + </div> +<footer> + <div class="container"> + <div class="row"> + <div class="col-sm-6 text-center-mobile"> + <h3 class="white">Be simple. Be certified. Be Tomcat.</h3> + <h5 class="light regular light-white">"A good application in a good server"</h5> + <ul class="social-footer"> + <li><a href="https://www.facebook.com/ApacheTomEE/"><i class="fa fa-facebook"></i></a></li> + <li><a href="https://twitter.com/apachetomee"><i class="fa fa-twitter"></i></a></li> + <li><a href="https://plus.google.com/communities/105208241852045684449"><i class="fa fa-google-plus"></i></a></li> + </ul> + </div> + <div class="col-sm-6 text-center-mobile"> + <div class="row opening-hours"> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/docs/documentation.html" class="white">Documentation</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/docs/admin/configuration/index.html" class="regular light-white">How to configure</a></li> + <li><a href="../../../latest/docs/admin/file-layout.html" class="regular light-white">Dir. Structure</a></li> + <li><a href="../../../latest/docs/developer/testing/index.html" class="regular light-white">Testing</a></li> + <li><a href="../../../latest/docs/admin/cluster/index.html" class="regular light-white">Clustering</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../latest/examples/" class="white">Examples</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../latest/examples/simple-cdi-interceptor.html" class="regular light-white">CDI Interceptor</a></li> + <li><a href="../../../latest/examples/rest-cdi.html" class="regular light-white">REST with CDI</a></li> + <li><a href="../../../latest/examples/ejb-examples.html" class="regular light-white">EJB</a></li> + <li><a href="../../../latest/examples/jsf-managedBean-and-ejb.html" class="regular light-white">JSF</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../community/index.html" class="white">Community</a></h5> + <ul class="list-unstyled"> + <li><a href="../../../community/contributors.html" class="regular light-white">Contributors</a></li> + <li><a href="../../../community/social.html" class="regular light-white">Social</a></li> + <li><a href="../../../community/sources.html" class="regular light-white">Sources</a></li> + </ul> + </div> + <div class="col-sm-3 text-center-mobile"> + <h5><a href="../../../security/index.html" class="white">Security</a></h5> + <ul class="list-unstyled"> + <li><a href="http://apache.org/security" target="_blank" class="regular light-white">Apache Security</a></li> + <li><a href="http://apache.org/security/projects.html" target="_blank" class="regular light-white">Security Projects</a></li> + <li><a href="http://cve.mitre.org" target="_blank" class="regular light-white">CVE</a></li> + </ul> + </div> + </div> + </div> + </div> + <div class="row bottom-footer text-center-mobile"> + <div class="col-sm-12 light-white"> + <p>Copyright © 1999-2016 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache TomEE, TomEE, Apache, the Apache feather logo, and the Apache TomEE project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p> + </div> + </div> + </div> + </footer> + <!-- Holder for mobile navigation --> + <div class="mobile-nav"> + <ul> + <li><a hef="../../../latest/docs/admin/index.html">Administrators</a> + <li><a hef="../../../latest/docs/developer/index.html">Developers</a> + <li><a hef="../../../latest/docs/advanced/index.html">Advanced</a> + <li><a hef="../../../community/index.html">Community</a> + </ul> + <a href="#" class="close-link"><i class="arrow_up"></i></a> + </div> + <!-- Scripts --> + <script src="../../../js/jquery-1.11.1.min.js"></script> + <script src="../../../js/owl.carousel.min.js"></script> + <script src="../../../js/bootstrap.min.js"></script> + <script src="../../../js/wow.min.js"></script> + <script src="../../../js/typewriter.js"></script> + <script src="../../../js/jquery.onepagenav.js"></script> + <script src="../../../js/tree.jquery.js"></script> + <script src="../../../js/highlight.pack.js"></script> + <script src="../../../js/main.js"></script> + </body> + +</html> +
