Pages

Thursday, October 25, 2012

spring dependencies for maven


Did you spend lots of time searching for maven dependencies for your spring web application? The following page contains the dependencies for each of the spring module.

http://blog.springsource.org/2009/12/02/obtaining-spring-3-artifacts-with-maven/

Sunday, October 21, 2012

mistake when injecting null value to a variable or construct

Say you need to inject null value to a property. How would you do it? Let me guess.

<bean id="youclassid"class="yourclass">
        <property name="distance" value="null" />
</bean>

Sorry to disappoint you. The above code will not work. The correct way is shown below.


<bean id="youclassid"class="yourclass">
<property name="distance"  /><null/></property>
</bean>


Friday, October 19, 2012

RPC vs Document based webservices in jax-ws

Yeah I know the SOAP based web services are no longer widely used since REST based web services have decreased the usage of SOAP based services. Today how ever I wanted to talk about the differences in two types of SOAP based web services (RPC and SOAP).

RPC based web service with jax-ws

This type of webservices does marshalling and unmarshalling in the SOAP engine. Therefore if the message is large, then the conversion becomes a huge overhead. Hence implementing coarse grained funtionality becomes a problem. Also inter-operatability of this type is not that good plus the support for custom data types is very low since the restrictions on encoding styles. However on the other hand, the implementation of this type of a web service using jax-ws is very simple. And also is good for fine grained functionality. 

Document based web services are have the qualities exactly opposite to the above mentioned rpc based qualities. They are widely used where you need to transfer lots of data using large xml files. 
By comparison however the document based web services are used than rpc based services.

Friday, October 12, 2012

Map/Reduce with mongodb

Well I am not going  write an article by myself here. Because The concept is brilliantly explained in some other article. Visit the link below to have a good understanding about mongo map/reduce feature.
http://www.mongovue.com/2010/11/03/yet-another-mongodb-map-reduce-tutorial/

The following tutorial has a simple cool tutorial on this feature as well.
http://blog.facilelogin.com/2012/02/mapreduce-with-mongodb.html

Tuesday, October 9, 2012

Cool mongodb admin gui panel

I was looking for a mongodb admin panel to use it. Then I found this cool looking java based mongo admin gui panel called Umong.
You can download it from https://github.com/agirbal/umongo/downloads
Just extract the content and run the .sh file using command line or directly. It will launch the admin panel

How to install from unauthenticated sources

Have you seen the following error when you try to update your ubuntu system?
the action would require installation of packages from not authenticated sources...
Well the error is self explanatory. You need to allow unauthenticated sources to get around this. Use the below command to get it work.
sudo apt-get update && sudo apt-get upgrade --allow-unauthenticated
Now you are good to go.


Monday, October 8, 2012

web server vs web container vs application server

web server : is something that is capable of handling http requests (recieving http requesting, processing them, creating http responses and sending them to the clients). Apache Web Server

web container : is a J2EE compliant implementation which provides an environment for the Servlets and JSPs to run. Tomcat typically a web container

application server : is a complete environment for running business components. It contains the web server capabilities as well as web container capabilities. eg: IBM WebSphere, Oracle Application Server