Enetrprice Java Bean - bean life cycles

Stateless session bean - life cycle uncreted state -> active state (setSession() from container and ejbCreate() ) active state -> destroy state (ejbRemove()) Statefull session bean - life cycle Uncreated state -> Active state (setSession() from container and ejbCreate() ) Active...
Share:

Enterprice Java Beans on JBoss (Wildfly now)

EJBs are associated with applications and it can do application's work. It's that simple. So these applications have to be deployed on a server. For the server you have various servers to choose. Apche IBM websphere application server JBoss (now called as WildFly) OW2 Oracle GlassFish Resin and many more. But for now we will focus on WildFly server more particularly 9.x. PS- If you haven't install...
Share:

EJB for noobs

Lets say we have a Java program and it has a multiply method which takes 2 arguments,multiply and send back the result. So in runtime we can just pass the references of the 2 varibles and get the result right. What if the mutliply(arg1, arg2) method is not in the same machine. What if it is in a different...
Share:

Sorting algorithms 4 - Quick sort

Like merge sort, quick sort is also better than bubble,insertion and selection. Quick sort also uses divide and conqueror approach like merge sort. The basic idea behind in quick sort is that divide array using a pivot element and sort the sub arrays. Unlike merge sort, quick sort is memory wise efficient. Process In...
Share:

Sorting algorithms 4 - Merge sort

Merge sort is faster and efficient than bubble,insertion and selection sorts. But it is not efficient than quick and shell sorts. Time wise merge sort is efficient but this comes with a penalty. That is we need more additional space for merge sort. The basic of merge sort is partition the array in...
Share:

Sorting algorithms 3 - Insertion sort

Just like bubble and selection sorts, insertion sort is also a simple yet inefficient sorting algorithm on large data sets. Process Lets take a hypothetical moment where the unsorted array we want to sort is partially sorted. So the left part is sorted in ascending order and right part is...
Share:

Sorting algorithms 2 - Selection sort

Selection sort is also like bubble sort. It uses another different approach for sorting comparing to bubble sort. But when it comes to sort large volumes of data it is inefficient yet good,easy,adaptive for small volume of data. Process Lets say we want to sort an unsorted array in ascending...
Share:

Sorting algorithms 1 - Bubble Sort

Bubble sort is one of the simplest and easiest of sorting algorithms available. But bubble sort is has almost no practical usage because it is inefficient to sort large volumes of data. Then again bubble sort is good easy solution for simple low volumes of data. Process Lets say we want an...
Share:

MATLAB not starting working on Windows 8

DISCLAIMER : This is not about MATLAB installation issues I have been using MATLAB R2013 a for a little while because I have to analyse some signal characteristics for my final year thesis. And suddenly out of nowhere it began to not start on my Windows 8 desktop. After few unsuccesfull attempts I...
Share:

Linux - interior version

HAL - HW abstraction layer.Regardless of brand names it linux uses its own naming system for similar hardawre. HAL database is stored in /sys dir  Ex: If you plug 3 diff Ethernet cards it will be eth0, eth1 and eth2. Thats it dbus -  via dbus hw can communicate between applications and...
Share:

OData based web services (Open Data)

Odata is a combination of  SOAP and REST. Therefore request messages are in a format of URIs and parameters. Response messages can be either ATOM or JSON. OData was initially created by Microsoft and later it was delivered to the open source community. Current version of OData specification...
Share:

RESTful web services

REST (Representational State Transfer) is a web services architecture. If we take SOAP , it is specification for messages used in WS. But REST is a complete architecture of web services which has all the details how it is done in web service invocation. W3 rest wiki is a one good place for...
Share:

Web Service Description Language (WSDL)

WSDL which is xml based contains the information about the web service. Typically WSDL is generated by the server in which the service is held at. After generation of WSDL it can read by SOAP library at client side. Official WSDL specification can be found in here. http://www.w3.org/TR/wsdl Sample...
Share:

SOAP message format

Schema for the SOAP 1.1 message can be found in here. http://schemas.xmlsoap.org/soap/envelope/ This says all about the SOAP message format. Example SOAP message <?xml version="1.0"?> <soap:Envelopexmlns:soap="http://www.w3.org/2001/12/soap-envelope"soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Body xmlns:m="http://www.example.org/stock">   <m:GetStockPrice>     <m:StockName>IBM</m:StockName>   </m:GetStockPrice> </soap:Body> </soap:Envelope> Code...
Share:

SOAP based web services

One major category of web services is SOAP based web services. (Simple Object Access Protocol) SOAP is a message format specification. (Which is also XML based) SOAP WS can process over HTTP, FTP,SMTP etc.. (But HTTP is being the popular protocol) SOAP has 2 major versions. See specs...
Share: