Thursday, 11th March 2010.

Posted on Monday, 18th January 2010 by Balazs

Joshua Kramer has an article in LJ about Qpid and AMQP. One of the most compelling aspects of Qpid is its cross plaform and cross language capability. Finally there is a message broker that is easy to use and has ready to go clients for C++, Java, Python, Ruby and .Net. [...]

Share and Enjoy:
  • Print
  • LinkedIn
  • Facebook
  • FriendFeed
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • RSS
  • Ping.fm
  • email
  • PDF

Tags: , ,
Posted in Java | Comments (Comments)

Posted on Monday, 7th September 2009 by Balazs

Intro
Snow Leopard comes with a native 64 bit Java 1.6 environment. The Open MQ binaries are made for the JDK 1.5 in 32 bit. This article shows how to make Open MQ work on OS X 1.6 by compiling from source.
Steps

Set environment
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
export ANT_HOME=$HOME/apache-ant-1.7.1
export ANT_OPTS=-Xmx512m
export IMQ_HOME=$HOME/mq/dist/mq
export CLASSPATH=$CLASSPATH:$IMQ_HOME/lib/jms.jar:$IMQ_HOME/lib/imq.jar

Download and unpack ant in your home [...]

Share and Enjoy:
  • Print
  • LinkedIn
  • Facebook
  • FriendFeed
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • RSS
  • Ping.fm
  • email
  • PDF

Tags:
Posted in Java, Technology | Comments (Comments)

Posted on Sunday, 31st May 2009 by Balazs

To create an MD5 password at the prompt, assuming you have tomcat installed in /usr/local/tomcat, type
$ export TOMCAT=”/usr/local/tomcat”
$ java -cp “$TOMCAT/server/lib/catalina.jar:/usr/share/java/jmxri.jar:$TOMCAT/bin/commons-logging-api.jar” \
org.apache.catalina.realm.RealmBase -a md5 [secret]
by replacing “[secret]” with the password.
Some systems have a working digest.sh script that does the same thing.

Share and Enjoy:

Share and Enjoy:
  • Print
  • LinkedIn
  • Facebook
  • FriendFeed
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • RSS
  • Ping.fm
  • email
  • PDF

Tags: , ,
Posted in Java | Comments (Comments)

Posted on Sunday, 31st May 2009 by Balazs

If running a legacy java app on a newer RH or RHEL system, youget:
Error occurred during initialization of VM
Unable to load native library:
…/libjava.so: symbol __libc_wait, version GLIBC_2.0 not
defined in file libc.so.6 with link time reference
This is a symptom of an older JDKs that is buggy. Jakub Jelinek of RedHat suggests the following:
gcc -O2 -shared -o [...]

Share and Enjoy:
  • Print
  • LinkedIn
  • Facebook
  • FriendFeed
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • RSS
  • Ping.fm
  • email
  • PDF

Tags: , ,
Posted in Java | Comments (Comments)

Posted on Monday, 4th May 2009 by Balazs

To manage web applications with Tomcat, you can use the Tomcat manager application that comes with Tomcat. These simple steps show how it is done:

Make sure that there is a user with manager role set up in the …/tomcat4/conf/tomcat-users.xml file. The line to define the user should look like this:
<user username=”manager” password=”md5hash-goes-here” roles=”admin,manager”>

If you changed the [...]

Share and Enjoy:
  • Print
  • LinkedIn
  • Facebook
  • FriendFeed
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • RSS
  • Ping.fm
  • email
  • PDF

Tags:
Posted in Java | Comments (Comments)

Posted on Sunday, 3rd May 2009 by Balazs

To set up a PostgreSQL datasource for ColdFusion (CFMX), follow these steps:

Open CFMX administrator
Click on “Data Sources”
In the “add new datasource” write in a name and select “other” before clicking “add”
Fill our the fields as follows:

CF Data Source Name: JDBC
URL: jdbc:postgresql://:5432/
Driver Class: org.postgresql.Driver
Driver Name: PostgreSQL
Username: db_user_name
Password: ******
Description:

Click submit
Test connection (Status shoudl say “OK”)

Share and Enjoy:

Share and Enjoy:
  • Print
  • LinkedIn
  • Facebook
  • FriendFeed
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • RSS
  • Ping.fm
  • email
  • PDF

Tags: , ,
Posted in Java | Comments (Comments)