Have you saw
this post on Twitter ?
Well, I saw
it, and I didn't tried Payara yet. So, if didn't also ...
I reserved 15 minutes to download, install
and try a quick run of a web application on Payara 4.1. More exactly, I
installed Payara using NetBeans IDE (I used 8.0.2), and I run a simple JSF/PrimeFaces/OmniFaces
application sample. After I downloaded and unzipped the Payara in a convenient
place on my computer, I started NetBeans and did the following:
1. Select
the Servers
item from the Tools
main menu:
2. Click the
Add
Server button and select the GlassFish Server option from the
available servers types. Rename it as Payara Server (or whatever name you
prefer). Click Next:
3. Navigate
to Payara installation location and click Next:
4. Payara
comes with two domains: domain1 and payaradomain. Payara: "Payara now comes
with two domains created out of the box, the default domain1 created from the original template, and the
new payaradomain based on our new template. With this
release, we’ve included a Payara domain template with some optimizations over
the default GlassFish domain template, including an increased MaxPermSize and heap size. The default template is still there for
those who need it, the new template is optional.". So, I give it a try
to payaradomain.
Click Finish:
5.The Payara
Server was added in the list of configured servers. Click Close:
6. Create a
simple Maven web application in NetBeans style. Do not forget to select the
Payara Server for deployment:
7. Further,
I added in POM the desired dependencies:
<dependencies>
<dependency>
<groupId>org.omnifaces</groupId>
<artifactId>omnifaces</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.2</version>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
8. Finally,
I developed a simple application, just used some PrimeFaces and OmniFaces tags
and a simple CDI managed bean to obtain this:
9. I run the
application and everything worked fast and smooth. The above interface was
displayed while the log revealed the below snippet of infos:
Niciun comentariu :
Trimiteți un comentariu