Posts

Showing posts from October, 2014

Encrypt and Decrypt text using alphabet shifting method

Image
Decrypt             char [] alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" .ToCharArray();             char [] cypertext = (txtCyperText.Text.ToUpper()).ToCharArray();             string decryptText = "" ;             foreach ( char item in cypertext)             {                 for ( int i = 0; i < alpha.Length; i++)                 {                     if (item == 'A' )              ...

Find Country from URI

Image
First Add the Service reference  :  http://www.webservicex.com/geoipservice.asmx?WSDL IPAddress [] address = Dns .GetHostAddresses(textBox1.Text);             string [] array = new string [address.Count()];             int i=0;             foreach ( IPAddress item in address)             {                 array[i] = item.ToString();             }             textBox2.Text = array[0].ToString();             ServiceReference1. GeoIPServiceSoapClient cl = new ServiceReference1. GeoIPServiceSoa...

EJB Application Using Massage Driven Bean

The goal of this exercise is to create the NewsApp enterprise application containing an EJB module and a web module. The NewsApp application uses a message-driven bean called NewMessageBean to receive and process messages sent to the queue by a servlet. The application uses the two Servlets, where the PostMessage Servlet will send messages to the message-driven bean and the ListNews Servlet will display all News messages from the persistent data source. NewsEntity is an entity class representing the News table in a database. It has the attributes “title” and “body” Creating an Enterprise Application with EJB 3.1 This tutorial takes you through the basics of developing a Java EE 6 enterprise application and demonstrates some of the EJB 3.1 technology features that were introduced as part of the Java EE 6 specification. In this tutorial you will create an enterprise application that enables a user to pos...