Fixing up stale data associations in Seam’s EntityHome

October 29th, 2008

Through a combination of hints found online along with some guidance from the instructor at the “Seam Essentials” training course I recently attended in Austin, TX – I figured out how to solve a problem I was having where instance data on the “far side” of @OneToOne and @OneToMany data associations was not staying synchronized with values on the “near side”.

Now that I understand the solution, it becomes clear to me that all the information I needed was out there – just not all in one place with good example code.

For the sake of formatting, I’ve placed the commented code here: http://pastie.org/private/wk2v3rbw892e5vbbenum7g (and I’m NOT claiming this is good example code)

Now I can move on to the never-ending list of other challenges.


AT&T Wireless SUCKS!

October 13th, 2008

UPDATE: After I made some substantial protests to the “office of the president”, a replacement phone was sent to me overnight. So – now they suck a little bit less.

I have a 5 month old Blackberry 8310 with what I now know to be the NOTORIOUS problem with the USB charging port. I phone AT&T customer support and the droid asks me 2 dozen stupid questions. LAST question is: “does the charging plug wiggle?” – I answer: “yes, it wiggles a very tiny bit” – then the droid tells me my warranty is voided due to physical damage.Â

Actually, it wasn’t 2 dozen stupid questions – the first question was “what color is the water exposure indicator” – THEN 22 stupid questions to distract the caller – THEN – WHAMO – “does your charging plug wiggle?”.

WTF ?????

I have 2 brand new 8310 units here with exactly the same amount of “slop” in the plug – so where the hell do they come up with “physical damage – warranty voided” ???

I guess having 5 phones on the AT&T family plan means nothing more than I get to pay them $3500/year for this bullshit. Plus the new 3g iPhone I purchased last week along with a 2 year contract upgrade.

I’m feeling really good about the fun I’m gonna have with this :-)

att wireless at&t


Java – JBoss – Seam – Eclipse Development Stack

September 25th, 2008

Here’s what I have running well at the moment (likely to change over time as needs change):

  • JDK 1.6 update 7
  • mysql-connector-java (I’m using version 5.1.6)
  • JBoss Application Server 4.2.3.GA
    • To make deployment to this application server possible/easier from my non-privileged user account:
      • chown -R jerry:jerry $JBOSS_HOME
    • I am controlling this only from the command line after observing that launching it from within Eclipse causes the load on my workstation to get very high for no apparent reason.
      • cd $JBOSS_HOME/bin
      • ./run.sh
    • Since I’m also using MySQL, I have copied the mysql-connector-java-5.1.6-bin.jar file into my $JBOSS_HOME/server/default/lib
  • Seam 2.1.0.GA
    • this Seam Getting Started guide will be helpful – and there’s plenty more good info in the Reference Guide.
    • If you’re serious about Seam development, get “Seam in Action” – it’s available as a PDF file too!
    • I do all the seam-gen stuff from the command line – it’s really easy once you get into the “flow” of doing it this way (and eliminates any issues of doing it from within your IDE). This mostly amounts to only a few commands once you start working in your code:
      • seam explode (to get things started)
      • seam restart (to compile and deploy your latest code changes)
      • As the project grows and evolves, it is likely you’ll end up with customized build and deployment command-line scripts anyway.
  • Eclipse 3.4.1 (in my case, eclipse-jee-ganymede-SR1-linux-gtk-x86_64.tar.gz)
    • Nightly build of the JBoss IDE Tools. I am using JBossTools-200810010752-nightly-ALL-linux-gtk-x86_64.zip – however a more recent build should work just as well.
      • Using a recent nightly build solved my problem with the JBoss Tools Palette not working with Eclipse 3.4 as described here
    • Debugging seems to work well (as long as the server is started in “debug” mode from inside Eclipse)
    • JBoss Tools Palette works well.
    • Looks like everything is working for now.

Here’s an important chunk of my .bashrc file:

export JAVA_HOME=/usr/local/java/latest
export PATH=$JAVA_HOME/bin:$PATH

export ANT_HOME=/usr/local/apache-ant-1.7.1
export PATH=$ANT_HOME/bin:$PATH

export JBOSS_HOME=/usr/local/jboss/jboss_as/latest
export PATH=$JBOSS_HOME/bin:$PATH

export SEAM_HOME=/usr/local/jboss/seam/latest
export PATH=$SEAM_HOME:$PATH

The “latest” directory in the paths above is the result of my use of symlinks like this:

jerry@localhost
/usr/local/jboss/seam >ll
total 8
drwxr-xr-x 11 root root 4096 2008-10-23 23:03 jboss-seam-2.1.0.CR1
drwxr-xr-x 12 root root 4096 2008-10-24 15:03 jboss-seam-2.1.0.GA
lrwxrwxrwx  1 root root   20 2008-10-24 15:12 latest -> jboss-seam-2.1.0.GA/

Friday 2008-09-19 Mountain Not Riding Report

September 19th, 2008

UPDATE: Camera details added to the Monday article. Note that all photos on this page taken with the Casio EX-Z80.

This is the worst picture I’ve ever taken – the truck loaded up and soon heading back to Florida:

The campground has a bunch of these hummingbirds zipping around that are fun to watch:


Name That Road

September 18th, 2008

You’ve probably heard of the game show “Name That Tune“. This is “Name That Road”. Truth is, I don’t even remember which roads are in some of the videos, but the likely choices are:

  • Hwy 28
  • Hwy 60
  • Hwy 68
  • Hwy 129
  • Hwy 180
  • Hwy 348 (Richard Russel Hwy)
  • Hwy 197
  • Cherohala Skyway
  • Warwoman Rd.

These videos were all captured during our 4 days of mountain road riding using my little Casio EX-Z80 camera mounted with my custom fabricated camera mount:

All the videos can also been seen on my youtube.com page.

I simply set the camera on the ground and off we went:

ok – back to the game:

Here’s the campground panorama from just outside our cabin:

more riding:

A few more videos coming soon! :-)


Thursday 2008-09-18 Mountain Ride Report

September 18th, 2008

UPDATE: Camera details added to the Monday article.

Today’s ride was almost identical to yesterday’s ride, except we did it in the opposite direction AND added a loop from Blue Ridge down hwy 60 through Suches.

We started out in a little fog this morning. FULL SIZE PICTURE:

A quick stop at T.W.O.

We found this great overlook on Richard Russell Hwy. FULL SIZE PICTURE:

From that same overlook. FULL SIZE PICTURE:

FULL SIZE VERSION

The road side work crew was also very busy today:

Wow! FULL SIZE PICTURE:

Lunch in Franklin again, but at a different place. It’s to the left of Wal Mart up a little hill:

Last rest stop on the Cherohala Skyway headed back toward the campground:

FULL SIZE

FULL SIZE

Many other people were out having fun today. FULL SIZE PICTURE

One last picture of our hooligan machines:

Tom collapsed on this roadside bench. We left him laying there and will pick him up next year:

Final score for the day:


Wednesday 2008-09-17 Mountain Ride Report

September 17th, 2008

UPDATE: Camera details added to the Monday article.

Breakfast at the same place again:

A little while later, from an overlook on the Cherohala Skyway:

After a VERY spirited run down hwy 28, where Rick gave the Hawk as much abuse as it could possibly take, with me glued to his rear fender, and Tom not far behind, we ended up in Franklin for lunch:

Headed south out of Franklin on 28 toward Highlands, NC. I stopped for some more scenery photos. FULL SIZE PHOTO IS HERE:

Downtown Highlands, NC. was busy:

Dinner back in Tellico Plains near the campground at the Tellicafe. The food is excellent!:

Back at the campground, we had to pry Tom’s stiff and sore body off the motorcycle. We left him laying on the ground where he fell:

Final score for the day:

Now let’s review today’s roads worthy of mention:


Tuesday 2008-09-16 Mountain Ride Report

September 16th, 2008

UPDATE: Camera details added to the Monday article.

We started out with breakfast at “The Prospector” restaurant in Tellico Plains. This is a new place opened in 2008 located one block east of hwy 68 where hwy 39 intersects 68. Fantastic food at a reasonable price!

After an hour riding out of Tellico Plains north on hwy 360, then east on hwy 411, then south on hwy 72, whereupon we turned onto 129 and headed toward Deals Gap. However, at the base of 129 we turned left for a short jaunt up the “Foothills Parkway” and found this scenic overlook. FULL SIZE PICTURE IS HERE.

Soon afterward we were at the overlook on the Tennessee side of Deals Gap:

Today’s conditions were good enough to get a decent shot of the dam from the overlook. FULL SIZE PICTURE IS HERE

This is “The Store” at the North Carolina end of Deals Gap. As you can see here, it was a zoo there today and many animals had escaped from their cages. While we enjoyed a refreshing beverage, I witnessed an 18-wheeler pulling a 53 foot trailer going up the hill. Not long after that we could hear the stories of the truck’s wheels hanging off the edge of the mountain from the riders coming back through from the other side. There is no way in hell to get a 53 footer over that road and I think only the very best drivers would make it with a 40 footer.

Looking in the opposite direction from the store, we are contemplating the run down hwy 28. As you might suspect, this turned out to be a very spirited section of the ride.

On the way down hwy 28, we took a short detour over to see Fontana Dam. FULL SIZE PICTURE IS HERE

And I managed to get this shot of two of the best looking motorcycles on the planet. My Suzuki GSXR-1000 and Rick’s Honda Hawk. FULL SIZE PICTURE IS HERE

Lunch in Robbinsville! Food was excellent. Rick claims the onion rings were the best he’s ever had.

On the return leg of today’s trip we found ourselves on the Cherohala Skyway. Then Rick noticed a great spot to stop for photos and videos:

Plenty of fall colors are starting to appear at these higher elevations. FULL SIZE PICTURE IS HERE

Tom on his Suzuki SV650. FULL SIZE PICTURE IS HERE

Video of Tom coming from the other direction:

Me on my Suzuki GSXR-1000. FULL SIZE PICTURE IS HERE

Video of me coming from the other direction:

Rick on the Honda Hawk. FULL SIZE PICTURE IS HERE

Video of Rick coming from the other direction:

Another photo of the world’s best looking motorcycle. FULL SIZE PICTURE IS HERE

It was chilly up here. Perhaps 55 degrees – cloudy and overcast.

This is pretty much what we had to deal with all day long: :-)

And finally – Yesterday Rick’s tag fell off on a bridge on 411 as we were returning from a gas station. We noticed it missing 100 miles later. Tom claimed he knew exactly where it fell off, but didn’t realize at the time what it was he saw bouncing on the road. We went back late this afternoon, and sure enough, it was EXACTLY where Tom said it would be:


Monday 2008-09-15 Mountain Ride Report

September 15th, 2008

UPDATE: Some people have asked what camera I used during this trip – I used two different cameras:

Yesterday morning, 7:00AM, Rick’s awesome Nissan Titan is loaded and rolling out:

loaded truck

The trip from my house in Deltona took exactly 11 hours to reach the Cherohala Motorcycle Resort. Rick and Tom stayed here last year and couldn’t say enough good things about the place. Now that I’m here, I wholeheartedly agree. Mark and Renee have worked very hard to put together a most excellent place for mountain loving motorcyclists to relax. And they have wireless internet access here too!

5 minutes into the ride today, I realize I’m nearly out of fuel – so a quick (fun) detour to a gas station. I knew I was forgetting something on my pre-departure checklist :-) – with scenery in the background to hint at what’s in store for later today:

gas

An hour after the fuel stop, we arrived at the “New York Restaurant” in McCaysville for a good breakfast:

new york cafe

The weather report had us prepared to get soaked today, so we were looking forward to trying out our new “Frog Toggs” rain suits. However, the rain gods smiled down upon us thanks to Rick’s sacrificial offering of his license plate which fell off somewhere on hwy 30 southwest of Tellico Plains.

This is part of the reservoir at Hiawassee Dam:

dam

My camera was “big enough” for Rick to fit my fat ass into this picture:

dam

As you can probably see in this picture, Tom is having another miserable day:

dam

Another shot of the beautiful scenery at the dam:

dam

Today’s ride covered 328.61 miles, including a number of miles on a super-top-secret road Rick knows about in North Carolina. This road was, without question, the twistiest piece of truly rideable asphalt I have ever been on. I am sworn to secrecy.

My apologies for not posting videos yet. The laptop I have with me doesn’t have video processing software I want to use. Videos will be posted when I return home.


Motorcycle Tie Down Bracket

September 13th, 2008

When trailering a sport-bike, strapping the bike to the trailer is usually a challenge because of all the plastic body work interfering with the tie-down straps – which makes it impossible to get a straight path for the tie strap between something solid on the motorcycle and the trailer.

After an hour of cutting and welding out in the garage I am ready to secure the bike on the trailer tomorrow morning as we’re loading up for our 4 days of mountain riding next week.

tiedown

tiedown

tiedown

tiedown