Time out settings for a Web Services Client in Axis2

March 7, 2012

0

Time out can happen at the client end or the server side … If you are sure* it is the client end then … Use setTimeout(int timeoutInMilliseconds) in org.apache.axis.client.Stub class you will find in your Service Locator class * Client end timeouts should usually see the following exception  java.net.SocketTimeoutException: Read timed out … else it may […]

Posted in: Axis2 Web Services

Logging using Log4j in an Axis2 Web Service

February 1, 2012

0

Did u want to turn on logging using Log4j for u’r Axis2 based web service? Adding to the class path in the webservice or the .aar won’t work. You will need to append / edit the log4j in the axis2/WEB-INF\classes\log4j.properties file … because axis2 is the web application running using the log4j.properties file in it’s […]

Posted in: Axis2 Web Services

Compressing ur web content using Apache mod_deflate

January 22, 2012

0

I am assuming Apache 2.x web server Step 1 – Make sure mod_deflate is loaded Make sure the following line is in httpd.conf LoadModule deflate_module modules/mod_deflate.so Step 2  – Add the following to u’r httpd.conf # Method 2: Compress all content, manually excluding specified file types like images <IfModule mod_deflate.c> # place filter ‘DEFLATE’ on […]

Posted in: Performance

WAR too big and deployment takes too long in Tomcat

October 30, 2011

1

Well, if your WAR file is too big (thanks to generous inclusion of jar files from all opensource projects you could find) … and deployments take too long … this is what you do. Remove the jar files from /WEB-INF/lib from your project, so they are no longer a part of the WAR file Copy […]

Posted in: Eclipse IDE

Learnings from AWS – Issues, surprises, workarounds

July 27, 2011

0

After 30 days … Recently moved one of our products to Amazon AWS cloud (EC2 + EBS + S3) … here are some learnings Instances can hang and become unreachable … a lot more than even VPS hosting … you can’t even detach the EBS volume then … so keep a recent Snapshot … so quickly launch a […]

Posted in: Amazon AWS

Solr Index Date Format Issues

May 17, 2011

1

Solr Index uses UTC time format … Zulu time zone (GMT). “A date field shall be of the form 1995-12-31T23:59:59Z The trailing “Z” designates UTC time and is mandatory ” Say your class has a property expiryDate … create another property indexedExpiryDate and index the later field. So if you want to send data to the index […]

Posted in: Solr

XStream and Hibernate lazy loading issues

May 9, 2011

0

If you are marshalling persistent objects being managed by Hibernate, you will have issues with Lazy loading. Say you have Order class with an property which is Product class type or List of OrderItem objects … instanceof match will fail (even if you have your own Custom Converter) … as the instance will be OrderItems_javaassist_xxx […]

Posted in: Hibernate, XStream