Introduction In this tutorial I will show how to create effective pagination example in jsf 2, hibernate and in-memory database – hsqdb . In memory database like hsqldb is good when you want to do some quick POC or testing the application without setting up a large database. There are lots of built-in API for…

Posted in JSF

Effective pagination example in jsf 2

Introduction Here you will see file upload example in JSF 2. The file upload implementation in Java based web application is very complex and you need to be dependent on Apache file upload libraries. When you work on JSF(Java Server Faces), you have JSF (Java Faces Server) pages with other inputs along with file inputs…

Posted in File Upload JSF

File Upload Example in JSF 2

Introduction This tutorial shows how to use ValueChangeListener to create dependent dropdown in JSF 2 and MySQL. I have used here JSF 2’s valueChangeListener which fires value change event when select option dropdown gets changed. Any component that receives user input, such as one of the HTML select or text input components, can publish value…

Posted in JSF

ValueChangeListener example in JSF 2

In this tutorial I will show step-by-step how to create a Liferay plugin project. This plugin project is all about creating webservice in liferay. Prerequisites Liferay Developer Studio 1.4, Liferay 6

Posted in Java

Creating Liferay webservice project

In this post I will show how to call plugin webservice remotely. If we have wsdl file then we can generate the client or stub from wsdl file and invoke the operations/methods of the service. Before reading this post I would suggest please go through Creating Liferay plugin webservice project

Posted in Java

Accessing Liferay webservices remotely

Liferay is a Open Source Content Management System and it’s popularity increasing day by day  but there are no much tutorials on this. Sometimes we find some examples but it may not work exactly the way have been written in the websites. Sometimes the tutorial steps have not been started from the scratch and it…

Posted in Java Struts

Integrate struts 2 in Liferay portlet

Here I am going to give an example on how REST webservice works. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web service is implemented using…

Posted in REST

RESTful webservice using Jersey

Introduction Authentication example in JAX-WS webservice will show you how to authenticate a user before the user is able to see the response from the SOAP based JAX-WS webservice. You may also like to read JAX-WS webservice example. In this example I will show you basic authentication example because I am going to pass credentials…

Posted in Security SOAP

Authentication example in JAX-WS webservice

Introduction In this tutorial I will show how to create the Webservice client for JAX-WS webservice. We will consume same webservice which we created in the example. We will use here gradle tool to generate client or stub from the SOAP webservice or JAX-WS webservice. A service has already been deployed into the server and…

Posted in SOAP

Consume jax-ws webservice

Introduction This issue occurs while establishing a trusted connection over SSL (Secure Socket Layer) in Artifactory. The error message indicates that Artifactory could not establish a trusted connection over SSL. You may find this issue if you are using Self-Signed certificate or a certificate that is issued by an internal Certificate Authority or if your…

Posted in SOAP

SunCertPathBuilderException: unable to find valid certification path to requested target

Introduction In this tutorial I will show how to use SSL/TSL or https in JAX-WS based SOAP webservice. For using SSL with JAX-WS webservice you need one keystore file. I will use here Java tool to generate the keystore file. I also need to configure SSL in Tomcat server because I am going to deploy…

Posted in Security SOAP

Using SSL(Secure Socket Layer) in JAX-WS webservice

Introduction We will create a post on JAX-WS webservice deployment example in Tomcat server. We have seen that we have successfully created the jax-ws webservice example tutorial and also published and tested the service successfully. Now we will deploy the same webservice in Tomcat Server.

Posted in SOAP

JAX-WS webservice deployment example in Tomcat Server