Java Expert....Java/Open Source Addict

Redes Sociales

twitterlinkedinrss feedemail youtube

Mostrando entradas con la etiqueta payaraserver. Mostrar todas las entradas
Mostrando entradas con la etiqueta payaraserver. Mostrar todas las entradas

domingo, 11 de octubre de 2020

Configure Payara Server in Eclipse IDE


Hello friends, in this opportunity I will show how to install the Payara Tools in Eclipse to work with Payara Server Application. Before to begin is important say you, that  I am working with: Eclipse IDE 2019 and Payara 5.20. Once said it, let me begin.

1.- First, we need to install the plugin Payara Tools from Eclipse Marketplace from  Help--> Eclipse Marketplace option. Click the Install button, accept the terms of the license agreements, and click the Finish button. Once installed, the eclipse needs to restart to apply the changes.



2.- Before to create a new Payara server instance, we need to create a Payara Runtime. To do this, we need to do the following:

  • Select the Windows-->Preferences-->Runtime Environments option and click the Add button to configure the Payara Runtime


  • Select the Payara Runtime Environment and click the Next button.
  • Configure the Payara and Java Location and click the Finish button. 




3.- Finally, we need to create a Payara Server Instance. To do this, we need to do the following:

  • Select the Windows-->Show View --> Server option. Once opened the view, right-click on it and select New --> Server option.


  • Select the Server type, in this case, we need to select Payara and click Next.


  • Configure the Payara Server properties, we use the default options, but you can configure the other domain, credentials, and other parameters according to your needs. Finally, click Finish and the Payara Server are ready to work with it.


I hope, that the post is useful for you. Don't forget to share, comment on it. Greetings and bless you.

miércoles, 23 de septiembre de 2020

Jakarta EE 8 archetype


Hello friends, in this opportunity, I want to share with all a JakartaEE8 Archetype, that has the following features:

  • It has an EAR, EJB y WEB project.
  • It has a basic example to save the employee data to the h2 database.
  • It can be deployed in both Wildfly and Payara, I built and tested with Wildfly 20 and Payara 5. To use the deploy, you must configure the profiles, in this link you can see how to do.
  • The Jakarta EE 8 Archetype is available on git, in the following URL.

  • Finally to install the archetype and create a project from it, you can review this link.
I hope, it will be useful. If you have any doubt, you can write to me without any problem.

Greetings

jueves, 30 de agosto de 2018

Problema Could be another instance of Payara Server or Payara Micro


Una vez que se haya instalado PayaraServer y se requiere levantar el servidor de aplicación, en el dominio por defecto (domain1) puede que se presente el siguiente error:




El cual de lo investigado se debe a un conflicto de configuración del valor que tiene la variable  hostname con el valor registrado en los hosts del equipo /etc/hosts, como se puede apreciar en la figura a continuación.




Para solventar el inconveniente, lo que se realizó es actualizar la variable de hostname a localhost para que este igual a la configuración que se tenía en /etc/hosts y posterior a eso ejecutar nuevamente el comando ./asadmin start-domain como se muestra en las figuras a continuación. Es importante mencionar que la actualización de la variable hostname debe realizarse como superusuario.


miércoles, 29 de agosto de 2018

Payara Server una alternativa interesante!!!


En el mundo del desarrollo de software de aplicaciones Java en el ámbito web se han manejado específicamente dos tipos de servidores durante varios años, los servidores web y los servidores de aplicaciones. En este último se han tenido varias opciones como JBossAS, JBossEAP, Wildfly, Gerónimo, Glassfish entre otros; manteniendo mucha similitud entre ellos.

Sin embargo a partir del 2014 se crea un nuevo servidor de aplicaciones llamado Payara Server, el cual aparece producto de la noticia de Oracle en la cual manifiesta que descontinuará el soporte comercial para Glassfish.

Dicho servidor es creado basado en el servidor de aplicaciones Glassfish, pero con algunas diferencias interesantes razón por la cual hoy muchos desarrolladores lo han adoptado y otros estamos en ese proceso.  Les quiero compartir a continuación, las más reelevantes desde mi punto de vista.


  • Actualización Constante.- Payara Server a diferencia de Glassfish  que tenia una frecuencia irregular de liberación de versiones, establece una frecuencia de liberación constante de forma trimestral no solo para las versiones sino también para los parches y actualización de componentes.
  • Herramientas de Caching.- Payara Server integra varias herramientas para manejar el tema del cache como son JCache, Domain Data Grid y Payara Scales (tiene un costo adicional).
  • Agrupamiento Automático.- Payara Server integra a Hazelcast, la cual es una herramienta escalable utilizada para la distribución de datos, para manejar la clusterización (agrupamiento) de manera automática.
  • Seguridad, Monitoreo.- Payara Server incluye varias herramientas para manejar el tema de seguridad y monitoreo.
  • Soporte Microservicios.- Payara Server cuenta con una distribución llamada Payara Micro para el manejo de microservicios. Adicionalmente soporte MicroProfile.
  • Optimizado para Producción.- Payara Server tiene un soporte comercial tanto para ambientes de producción y desarrollo que incluye un soporte 24/7 con una hora de delay de tiempo de respuesta para asuntos de producción urgentes.
  • Participación de la Comunidad.- El proyecto Payara Server se encuentra subido en un repositorio de Payara Github, lo cual permite a la comunidad revisar el código fuente, descargarlo y participar en las mejoras. Adicionalmente se puede apoyar de varias maneras lo cual se puede revisar en el siguiente enlace How to Contribuite Payara Server.

Cabe mencionar que una aplicación Web(.war) o JEE(.ear) puede ejecutarse en cualquier servidor de aplicación. Sin embargo, la decisión de elegir uno u otro dependerá mucho de las características que nos brinden y la expertiz que se tenga en el manejo de uno en particular.