Páginas filhas
  • Instalação do Servidor - Server (JBoss EAP 6.3.0.GA)

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

  • Para o manual de instalação no JBoss 4.2.3. clique aqui.Para o manual de instalação no JBoss 7.1.1. clique aqui.
Para quem se destina o manual

...

  • Red Hat Enterprise versões 56.x (TikangaSantiago) e 67.x (SantiagoMaipo) 64 bits;
  • Cent OS versões 67.x 64 bits;
  • Ubuntu Server versão 14.04 LTS 64 bits.

...

O TOTVS Intellector foi homologado nas versões JBoss 4.2.3-GA, JBoss 7.1.1 e JBoss EAP 6.3.0.GA. Você pode fazer o download do JBoss para qualquer plataforma nos seguintes sites:

 

Este é um bom lugar para tirar dúvidas e procurar dicas sobre o JBoss: http://wiki.jboss.org/ .

...

  • Não use a variável de ambiente -Duser.dir=seu_dir, pois isso impede o TOTVS Intellector de compilar as políticas.

 

Linux

  • Por questões de segurança em ambiente Linux NÃO pode ser usado o usuário root para executar o script de "startup" do JBoss. É indicada a criação de um usuário normal para executar o script.

 

Linux

Bloco de código
languagejava
Bloco de código
languagejava
linenumberstrue
#!/bin/bash
# exporta variaveis de ambiente necessarias
export JAVA_OPTS="-XX:+TieredCompilation -Dprogram.name=standalone.sh -Xms512M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Duser.server.node=mynode -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone-full.xml -Dfile.encoding=ISO-8859-1 -Dpersistence.configuration=$JBOSS_HOME/bin/persistence.properties"

# remove indicativo de erros no deployment
rm -fv /opt/jboss-eap6/standalone/deployments/*.failed
# atualize com seu IP
./standalone.sh -Djboss.bind.address.management=<IP_MAQUINA> -b <IP_MAQUINA>

...

 

Bloco de código
languagehtml/xml
linenumberstrue
<jms-destinations> destinations> 
 
      ....... 
 
      <!-- Acrescentar à lista de filas que já existam as filas do Intellector -->
    <jms-queue name="intellectorQueue"> 
    <entry name="queue/intellector"/> 
    <entry name="java:jboss/exported/jms/queue/intellector"/> 
    </jms-queue> 
    <jms-topic name="intellectorTopic"> 
    <entry name="topic/intellector"/> 
    <entry name="java:jboss/exported/jms/topic/intellector"/> 
    </jms-topic> 
<

      ....... 



</jms-destinations> 

 

  • Adicionar duas extensões no arquivo $JBOSS_HOME/standalone/standalone-full.xml. 

    Bloco de código
    languagexml
    title$JBOSS_HOME\\standalone\\standalone-full.xml
    ...
    <extensions>
        <extension module="org.jboss.as.configadmin"/>
        <extension module="org.jboss.as.osgi"/>
        ...
    </extensions>
    
    
Módulos Globais - EE Subsystem - Global Modules

Adicionar módulos globais

    • org.apache.commons.collections

    • org.apache.commons.codec
    • org.apache.commons.io

    • org.apache.commons.beanutils

    • org.apache.xerces

    • org.apache.santuario.xmlsec

    • org.apache.commons.lang

 

Bloco de código
languagexml
titleGlobal Modules
...
        <subsystem xmlns="urn:jboss:domain:ee:1.2">
            <global-modules>
                <module name="org.apache.commons.collections" slot="main"/>
				<module name="org.apache.commons.codec" slot="main"/>
                <module name="org.apache.commons.io" slot="main"/>
                <module name="org.apache.commons.beanutils" slot="main"/>
                <module name="org.apache.xerces" slot="main"/>
                <module name="org.apache.santuario.xmlsec" slot="main"/>
                <module name="org.apache.commons.lang" slot="main"/>
            </global-modules>
			...
        </subsystem>
...

 

Módulos a serem alterados e criados

...

Normalmente, ajustes adicionais, ou tuning, dependem de plataforma, número de requisições, escalabilidade, multi-ip, dentre outras; a mais comum é alterar a porta onde o container irá atender, default é a 8080. Outros casos, como HTTPS ou load balancer, envolvendo o Apache, devem ser analisadas e não fazem parte do escopo desse manual.

<?xml version="1.0" encoding="UTF-8"?><!--  ~ JBoss, Home of Professional Open Source.  ~ Copyright 2011, Red Hat, Inc., and individual contributors  ~ as indicated by the @author tags. See the copyright.txt file in the  ~ distribution for a full listing of individual contributors.  ~  ~ This is free software; you can redistribute it and/or modify it  ~ under the terms of the GNU Lesser General Public License as  ~ published by the Free Software Foundation; either version 2.1 of  ~ the License, or (at your option) any later version.  ~  ~ This software is distributed in the hope that it will be useful,  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  ~ Lesser General Public License for more details.  ~  ~ You should have received a copy of the GNU Lesser General Public  ~ License along with this software; if not, write to the Free  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.  --><module xmlns="urn:jboss:module:1.1" name="org.springframework.spring">    <resources>    <resource-root path="spring-jms-4.0.5.RELEASE.jar"/>    <resource-root path="spring-web-4.0.5.RELEASE.jar"/>    <resource-root path="spring-tx-4.0.5.RELEASE.jar"/>    <resource-root path="spring-context-4.0.5.RELEASE.jar"/>    <resource-root path="spring-aop-4.0.5.RELEASE.jar"/>    <resource-root path="spring-expression-4.0.5.RELEASE.jar"/>    <resource-root path="spring-beans-4.0.5.RELEASE.jar"/>    <resource-root path="spring-core-4.0.5.RELEASE.jar"/>    <!--<resource-root path="spring-web-3.0.7.RELEASE.jar"/>-->    </resources>    <dependencies>        <module name="javax.api" />        <module name="javax.jms.api" />        <module name="javax.annotation.api" />        <module name="org.apache.commons.logging" />        <module name="org.jboss.vfs" />    </dependencies></module>