Posts

Showing posts from May, 2015

PrimeFaces Push with Atmosphere

PrimeFaces Push is based on Atmosphere to establish WebSocket communication in an easy way. Bellow I will share the configuration to be able to do such kind of communication.
1- Adding the PrimeFaces and Atmosphere to the pom.xml for Maven dependency. Also, I added the dependency of the Apache Commons Lang3 to use the StringEscapeUtils while sending the notification message.
<dependency> <groupId>org.atmosphere</groupId> <artifactId>atmosphere-runtime</artifactId> <version>2.1.7</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.4</version> </dependency> <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>5.0</version> </dependency> 2- The web.xml configuration for the push servlet.
<?xml version="1.0" encod…

EclipseLink on WildFly 8.2.0

Image
WildFly application server uses Hibernate as a default JPA provider. So you can ignore specifying the persistence provider configuration in the persistence.xml file as bellow:
<?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> <persistence-unit name="BidirectionalPU"> <jta-data-source>java:jboss/datasources/Bidirectional_DataSource</jta-data-source> <class>com.ithinkisink.entity.Child</class> <class>com.ithinkisink.entity.Parent</class> <class>model.TempTable</class> </persistence-unit> </persistence> The deployed application will then use Hibernate as default JPA provider. In order…

Bind WildFly to all available IP addresses on Eclipse

Image
In order to be able to access the deployed applications on the WildFly server through the machine IP address, you should add the bellow configuration to the Eclipse lunch configuration as shown in the bellow screenshots.

1- Open launch configuration dialog from Eclipse.

2- Append "-b 0.0.0.0" to the Program argument.
For more information about binding the WildFly server to different IP addresses, check the link by Arun Gupta.

References:
http://blog.arungupta.me/bind-wildfly-different-ip-address-multihomed/

Postman, a REST web service client for Chrome

In case you needed to test a REST web service through a web service client. You can install Postman which is a Chrome extension. It's a pretty good one. You can install it from the bellow link:
https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en
Update:
I figured out that there is a another packaged application version. So I'm sharing with you the other one also:
https://chrome.google.com/webstore/detail/postman-rest-client-packa/fhbjgbiflinjbdggehcddcbncdddomop?hl=en