Tag Archives: GlassFish

How to setup glassfish 4.1 with mysql, realm and java mail via command line only in 10 steps


For development and CI process I prefer docker containers. But I don’t use docker in production. So, how to setup glassfish with mysql, configure connection pool and jdbc resource, configure realm, java mail etc via command line only. Lets create linux user with home directory /home/glassfish/ for glassfish Download glassfish server glassfish-4.1.zip and extract it […]

https://agritsik.wordpress.com/2015/08/20/how-to-setup-glassfish-4-1-via-command-line-in-10-steps/

How to setup glassfish 4.1 with mysql, realm and java mail via command line only in 10 steps


For development and CI process I prefer docker containers. But I don’t use docker in production. So, how to setup glassfish with mysql, configure connection pool and jdbc resource, configure realm, java mail etc via command line only. Lets create linux user with home directory /home/glassfish/ for glassfish Download glassfish server glassfish-4.1.zip and extract it […]

https://agritsik.wordpress.com/2015/08/20/how-to-setup-glassfish-4-1-via-command-line-in-10-steps/

Jetty JSP Example


via Jetty JSP Example | Examples Java Code Geeks.

JSP (JavaServer Pages) which is core part of Java EE, enables developers to create dynamic web content based on the Java Servlet technology. In this example, we are going to enable Jetty for JSP. We will start with Embedded mode of Jetty. We are going to initialize our embedded Jetty to run JSP pages. Thereafter we will continue with standalone mode and shortly mention the JSP configuration in standalone mode.

Jetty supports two JSP Engine implementations: Apache Jasper and Glassfish Jasper. Starting from Jetty version 9.2, the default and favored implementation is Apache Jasper. In this example we are going to use this one; however we will show how we can switch to Glassfish implementation in the standalone mode.

At this point, we have to mention that, this example should not be considered as a JSP tutorial but a demonstration of JSP on Jetty container.

How to configure docker container for Glassfish with mysql connector


I use a docker a lot in continuous integration process. And the most popular application server for my Java EE projects is Glassfish. To configure a docker container I have to accomplish the following tasks: Create Dockerfile. Lets create it from officially supported image Configure JDBC resource. Download mysql driver from maven repository and put it into glassfish lib […]

https://agritsik.wordpress.com/2015/08/09/how-to-configure-docker-container-for-glassfish-with-mysql-connector/

Load balancing Glassfish Server 4 using Apache HTTP Server with mod_jk plugin


Load balancing scenarios almost always accompany server clustering. This post provides how to configure clustered Glassfish instances for load balancing using Apache mod_jk plugin, with session replication between instances.

https://geekyvivek.wordpress.com/2015/08/16/load-balance-glassfish-4-with-modjk/

How to test EJB apps with Glassfish embedded container


There are many articles about EJB deploying and testing. But after one of my colleagues spent a week trying to make it work, I decided to write my own. I’ll describe the wrong path first and then correct it.

https://victorlapin.wordpress.com/2015/06/29/how-to-test-ejb-apps-with-glassfish-embedded-container/

How to connect Glassfish 3 to an external ActiveMQ 5 broker


via How to connect Glassfish 3 to an external ActiveMQ 5 broker | Geert Schuring.

Here at ONVZ we’re using Glassfish 3 as our development and production application server, and we’re quite happy with its performance and stability, as well as the large community surrounding it. I rarely run into a problem that does not have a matching solution on stackoverflow or java.net. As part of our open source strategy we also run a customized ActiveMQ cluster called “ONVZ Message Bus”.

To enable Message Driven Beans and other EJBs to consume and produce messages to and from the ActiveMQ message brokers, ignoring the internal OpenMQ broker that comes shipped with Glassfish, an ActiveMQ Resource Adapter has to be installed. Luckily for me Sven Hafner wrote a blog post about running an embedded ActiveMQ 5 broker in Glassfish 3, and I was able to distill the information I needed to connect to an external broker instead. This blog post describes what I did to get it to work.