Archive

Archive for the ‘General’ Category

Integrating WebDav enabled server to a java applications

February 23, 2014 Comments off

HI Guys, this time my task is to integrate a WebDav enabled server to my java application.First of all, what is WevDav, sound completely new? with a quick google search I landed on this link.

Web Distributed Authoring and Versioning (WebDAV) is an extension of the Hypertext Transfer Protocol (HTTP) that facilitates collaboration between users in editing and managing documents and files stored on World Wide Web servers.

I am not going much into details about the WevDav.But it’s a really cool standard for collaboration over Http.

By implementing WebDAV we can make our web server/application server to behave like a cloud storage.

Link for converting tomcat to a WebDav Server

similar way we can convert Apache HTTP server as a WebDAV server.

The browser is the best client to navigate through the webdav server.but it you want to integrate with your java application, Home :there are quite a few apis available like Sardine, Jackrabbit e.t.c.After a long research i found Saradine in is the most easiest api to use.so i continued with saradine.

Note : Disadvantage of Saradine is most of the security protocols are implemented,but i faced few problems with NTML authentication.now i am testing it,will post the results once it is completed.

Below are the few useful links for using sardine.

PrHome:https://github.com/lookfirst/sardine

working with saradine is straightforward.check out the code and have a look at its test.

Restrictions : 

Sardine validates https certificates very strictly.if you want to ignore the certificated u have to implement your own httpclient object and pass it to the SaradineImpl class and construct.

please leave a post if any one needs some help while implementing this.

Advertisements
Categories: Cloud, General, Java, Storage Tags: ,

Jboss Clustering and Load Balancing

October 23, 2012 Comments off
Categories: General

OpenNMS Installation inUbuntu 10.04

October 23, 2012 Comments off

The below link worked well for me.

http://www.hatimonline.com/2012/07/opennms-on-ubuntu-1004-installation.html

For adding opennms repositories follow the below link

http://www.opennms.org/wiki/Installation:Debian

 

The only issue i faced while installation is below :

While performing the install ipLike step make sure the you have disabled the password for all user or posgres use for Posegre sql db.

 

Check this step in Allowing User Access to the Database section in the opennms forum.

Other than the lines mention in the site comment out every thing.

 

 

 

 

 

 

 

Categories: General

How to run multiple Jetty instances on a host with different ports

September 18, 2012 Comments off

My Goal is to run multiple instance of jetty on the different ports in the same machine.

Pre-Requsites :
Java Installation and JAVA_HOME Environment variable.
Now download the jetty server distributable and unzip(untar) to a directory.

First of all we need to know how jetty is getting started and the various inputs/arguments it needs while starting.

for this i have gone through jetty.sh provided with the distributable.

open the jetty.sh and goto line 474(in my distributable).

give echo RUN_CMD variable.This will show you the command formed before jetty start.

mine is like this

“/home/user/installables/jdk1.6.0_22/bin/java -Xmx1024m -Xms1024m -Djetty.home=/opt/jetty-6.1.14 -Djava.io.tmpdir=/tmp -jar /opt/jetty-6.1.14/start.jar /opt/jetty-6.1.14/etc/jetty-logging.xml /opt/jetty-6.1.14/etc/jetty.xml /opt/jetty-6.1.14/etc/jetty-ssl.xml”

now goto the etc folder

create a copy of jetty.xml and jetty-ssl.xml
create a copy of jetty-A.xml and jetty-ssl-A.xml

change the port number in jetty-A.xml to some other port
<Set name=”port”><SystemProperty name=”jetty.port” default=”7010″/></Set>

change the port number in jetty-ssl-A.xml to some other port
<New>
<Set name=”Port”>7444</Set>

Now create a sh file setup.sh

copy the exe command twice with the different arguments.
“$JAVA_HOME/bin/java -Xmx1024m -Xms1024m -Djetty.home=/opt/jetty-6.1.14 -Djava.io.tmpdir=/tmp -jar /opt/jetty-6.1.14/start.jar /opt/jetty-6.1.14/etc/jetty-logging.xml /opt/jetty-6.1.14/etc/jetty.xml /opt/jetty-6.1.14/etc/jetty-ssl.xml”
“$JAVA_HOME/bin/java -Xmx1024m -Xms1024m -Djetty.home=/opt/jetty-6.1.14 -Djava.io.tmpdir=/tmp -jar /opt/jetty-6.1.14/start.jar /opt/jetty-6.1.14/etc/jetty-logging.xml /opt/jetty-6.1.14/etc/jetty-A.xml /opt/jetty-6.1.14/etc/jetty-ssl-A.xml”

and now run the ./sh file.

two jetty instances will launched with corresponding ports.

Enjoy.

Categories: General Tags:

Free Website Infrastructure monitoring service

July 10, 2012 Comments off

Dear friends,

Let me take the privilege of introducing my Cloud based Website Monitoring Service MyMonitor.in.

With a simple sign-up u will be able to monitor your URL’s,Machine Ping and the Port

you can keep monitor your URLs,machines and device with ping and services like ssh,tomcat,jetty,apache,e.t.c with port monitoring.

This tool will send u mails when ever there is a problem with your infrastructure.

You can check the reports and in graph format by login to the website.

here you can access any number of URL’s any number of machines ping for free..

give a try and let me know your feed back.

URL : http://www.mymonitor.in

Categories: General

why hash code is needed in java

June 24, 2012 Comments off
Categories: General

javax.xml.ws.soap.SOAPFaultException: “http://schemas.xmlsoap.org/wsdl/”, the namespace on the “definitions” element, is not a valid SOAP version.

March 19, 2012 Comments off
Categories: General
%d bloggers like this: