Latest stories

JDBC connection in Glassfish


How to set up a JDBC connection in Glassfish Today I will make an introductory work that will allow us to work with databases. In this case  we will create a little database with MySQL and I will setup a JDBC connection to use it later from a program. I assume that you have installed Glassfish and MySQL. Our objectives will be: Create the tables in MySQL server. Set up a JDBC connection to a...

JBoss On Ubuntu 12.10 64Bit


How To Install JBoss On Ubuntu 12.10 64Bit What is JBoss? JBoss is a powerful open source Java application server developed by RedHat. It has full support for the JavaEE 6 Webprofile, which means you have the following out of the box support: Servlet 3.0 JSF Java Server Faces EJB JPA CDI Bean Validation Additionally there is also support for other JavaEE features like JMS, JAX-RS and JAX-WS. More...

Glassfish 4.0 on Ubuntu 12.04.3


Preconditions There are many tutorials available to help you install OpenJDK and JBoss. This is one on the latest concerning Oracle Java and Glassfish. Hopefully this will make deploying easier for Java EE developers. You will need a server with Ubuntu 12.04.3 x64 that has been created with DigitalOcean. Login as root by ssh. This article assumes no Java installed and at least 1G memory, as Java...

Finding Factorial of a number using Recursion


Recursive Function : Recursive function is a type of function which calls itself in Function Definition Code Segment until a terminating condition reached. In the following program “fact( )” is a recursive function. Use long int in place of int to find factorial of large number like 100 or so on. The power of recursion evidently lies in the possibility of defining an infinite set of...

Pointers in programming


When we declare a variable in C/C++ etc. by statements like int a or int b , it tells the compiler to reserve the space of two bytes in the memory to store the integer type value and identify the storage location in the memory by ‘a’ or ‘b’ etc. So every variable has three properties 1. Identifier (Name like a or b) 2. Value(a=10 or b=15 etc) 3. Its address (hexadecimal)...

C++ program to find the length of user entered string


A Simple C++ program to find the length of user entered string.In this program we have used the two properties of Strings 1. The terminating character or end of string marker ‘\0’ and the special property of character array in which character identifier represents the address of first element of the character array(i.e string). #include <iostream.h> #include <conio.h>...

Your sidebar area is currently empty. Hurry up and add some widgets.