TIBCO TEA deploying simple REST
Esta es la app que se deployará al TEA.
Probandolo con swagger
Exportamos la aplicacion como ear a una ruta X donde después desde el TEA lo tomaremos para deployarlo en TEA.
- Tenemos corriendo el TEA.
- Desde linea de comandos corremos el bwagent
Configuramos el bwagent para que corra en modo "enterprise" , esto en su archivo de configuración
C:\Program Files\tibco\bw6\bw\6.5\config\bwagent.ini
...
#------------------------------------------------------------------------------
# Section: BW Agent general configuraton.
#------------------------------------------------------------------------------
# Admin mode. BW Administration tools can work in two modes, enterprise mode or
# local mode. In enterprise mode it works with the agents across machines.
# In local mode it works only with local machine and assumes no data store
# and transport and agents are available. The actions performed in local mode
# are not visible to the agents when ever they are started or even
# the admin tool when it is started in the enterprise mode
#bw.admin.mode=local
bw.admin.mode=enterprise
# Network (group) name
bw.agent.networkName=bwmetaspace
...
C:\Program Files\tibco\bw6\bw\6.5\bin>bwagent
TIBCO ActiveMatrix BusinessWorks version 6.5.0, hotfix 4, build V99, 2018-11-21
BW Agent name DESKTOP-NLF0058
BW Agent stores data locally
Initializing datastore using
TIBCO ActiveSpaces (Java). Enterprise Edition. Version 2.1.6.011
...................
Initialization of datastore complete
BW Agents in the group that store data:
Name DESKTOP-NLF0058, Host 10.17.14.2
19:23:08.401 WARN [main] o.e.j.s.handler.RequestLogHandler - !RequestLog
TIBCO-BW-AGENT-300002: BusinessWorks Agent started successfully.
- Desde linea de comandos corremos el bwadmin para registrar el bwagent
Para desregistrar bwagent
C:\Program Files\tibco\bw6\bw\6.5\bin>bwadmin
TIBCO ActiveMatrix BusinessWorks version 6.5.0, hotfix 4, build V99, 2018-11-21
BusinessWorks Administration Console
Hit '<tab>' for a list of available commands
and 'help command ' for help on a specific command.
Enter 'exit' or Ctrl-D to exit the shell.
bwadmin[admin]> unregisterteaagent http://localhost:8777/tea
Connecting to the BW Agent using
TIBCO ActiveSpaces (Java). Enterprise Edition. Version 2.1.6.011
Connected to BW Agent
TIBCO-BW-ADMIN-CLI-300011: Unregistered TEA Agent [DESKTOP-NLF0058] with TEA Server.
bwadmin[admin]>
Para registrar bwagent
bwadmin[admin]> registerteaagent http://localhost:8777/tea
TIBCO-BW-ADMIN-CLI-300010: Registered TEA Agent [DESKTOP-NLF0058] with TEA Server.
Lo verificamos en el TEA
- Creamos un Dominio, un AppSpace y un Nodo.
Arrancamos el AppSpace que creamos, así se arrancarán los nodos también.
Ahora subimos el ear que deseamos deployar
lo deployamos
Ahora lo probamos llamando a la aplicación que deployamos
eot
No hay comentarios:
Publicar un comentario