Archive for the ‘J2EE’ Category

Ant: Using Secure Copy (scp) to Copy Files to Servers

Saturday, February 3rd, 2007

During my Java class, we have 2 different deployment machines: one for the MySQL server and another for the web server.

Since the remote server is not configured to accept any ftp connections, I am forced to use scp. It’s a pain to manually scp my file manually to the web server, so I did a bit of research and found a good way to securely copy my file (to the web server).

(more…)

XML Processing In Java Using XOM

Sunday, November 19th, 2006

I have decided to use XOM API to process XML data. There is no good reason actually. I may revisit another XML API (e.g. JDOM) in the future.

What I have done is to read the XML from the Internet (e.g. Digg RSS) and process it.

To summarize what I have done:
1. Open a connection.
2. Tell the XML API to read from the connection stream.

Simple, eh? :)
(more…)