Archive for September, 2008

Reminder: RaleighRubyCamp

September 30th, 2008

Don’t forget, in a few weeks at the Red Hat offices in Raleigh, there will be an unconference-style Ruby BarCamp on October 18th.

My plan is to put together a few clumps of slides, prepare a cluster on EC2, and see if anyone wants to hear about JBoss Rails.  I’ll of course put them online sometimes [...]

Multiple instances of AS on OSX

September 29th, 2008

Rysiek asked me to elucidate my clustering on OSX…
By default, it seems that OSX provides exactly 1 localhost address, unlike RHEL.  I normally make use of 127.0.0.1/24 when I’m deploying on Linux, and figured I’d do the same on OSX.
To accomplish this, you need to create some new localhost IPs to play with.

sudo ifconfig lo0 [...]

JBoR: Will it cluster?

September 29th, 2008

JBoss on Rails will indeed cluster!
After modifying and dropping my jboss-rails.deployer into an ‘all’ configured server of JBoss AS 5, and firing up 3 instances on my localhost (non-trivial on OSX…):

10:43:28,409 INFO [RPCManagerImpl] Received new cluster view: [127.0.0.10:63740|2] [127.0.0.10:63740, 127.0.0.11:63747, 127.0.0.12:63749]
10:43:28,435 INFO [RPCManagerImpl] Cache local address is 127.0.0.12:63749
10:43:28,469 INFO [ComponentRegistry] JBoss Cache [...]

JBoss Amputation

September 23rd, 2008

Since JBoss AS 5 is built on top of Microcontainer, it’s effectively a network of beans just doing their respective jobs.  You have already probably noticed that it ships with 3 included configurations: minimal, default, and all.
Unfortunately, they’re awefully far apart along the spectrum of configuration options.  The minimal configuration barely gets the container running, [...]

Print like you mean it

September 23rd, 2008

When digging through code, I find it’s good to print it out, wander off away from the machine, and do some reading.
But if you print any reasonable-sized chunk of code from Eclipse, you’ll be carrying around several reams of paper, since Eclipse apparently thinks we’re all blind illiterates.
For the past decade, my friend & mentor [...]

JBoss on Rails

September 22nd, 2008

Tomorrow is my first real status update call with my boss, Sacha Labourey.  I’ve been anxious to deliver something, to prove I hadn’t gone completely pudding-brained during my tenure as management.
This morning, it all finally came together in a pleasing fashion, causing me to hoot and holler loud enough to scare the cats and probably [...]

Maven, Java and RSpec

September 18th, 2008

Since I’ve been back on the job, writing Java code lately, that means I’ve been testing Java code lately.
After living in the land of Ruby with RSpec, thinking about JUnit did not excite me.  Thankfully I found the rspec-maven-plugin, which integrates straight into the maven test process.
I like rspec because it removes a whole lot [...]

Deployers in JBoss Microcontainer

September 17th, 2008

In order to deploy a Rails app, I’ve had to learn the innards of Microcontainer’s deployer framework.  After a few wrong turns, I feel like I’ve finally gotten a handle on it.
While we’re all used to dropping in an .ear or a .war, and might think in terms of deploying these archive formats, that’s ultimately [...]

F3 is a beautiful thing

September 12th, 2008

Code comprehension.  It’s important when you jump into someone else’s code.
Eclipse makes it easy, with F3, command-T, and shift-command-G.
Very quickly, you can jump through a maze of classes and interfaces, diving into details or seeing the higher hierarchy.  I forgot how nice Eclipse can be.  Particularly if you’ve got the viPlugin.
72 open files (and bless [...]

Offline ain’t that bad

September 5th, 2008

I’m in the process of moving to some farmland in Virginia.  It’s out in the boonies.
How far in the boonies?  No cable.  No DSL.  GSM is sketchy.
Thankfully, I’ve moved my personal development to Git as noted previously, which works wonderously.  With no TCP in the air, I can still commit, and push my complete history [...]

Next »