Archive for the ‘Development’ Category

JMS callbacks

Monday, April 30th, 2007

Apparently, Object properties of JMS Messages will only accept primitive object types (e.g. Integer, Boolean, String, etc), which is of limited use, as Message already provides putIntegerProperty() etc. I wanted to pass an object reference (to a Session Bean), so that I could (cleverly I thought) use it to invoke a callback, and thus be able to get results back from the Message Bean which was consuming the JMS Message.

Now that I think about it, such a thing would be completely useless across JVMs (or indeed across two entirely different systems, implementing JMS) which is why I suspect you can’t do it.

It would be nice if there was an easy way to do asynchronous calls in J2EE/JEE5 with a way of retrieving the results, without resorting to using your own threads or ThreadPool inside the container, which is apparently a big no-no. I’m gonna be thinking about this one for a while I expect…

PyWeek

Monday, April 9th, 2007

Well on Sunday, Matt managed to get our PyWeek game coding contest entry submitted at literally the last minute. The theme for this one was “the only way is up”. Our game, “Gasbag Follies” is pretty simple, much simpler than our previous effort, this time you simply collect enough balloons to float to the top of the level.

This time around, I only really managed to contribute music, which got accidentally disabled in the version that got submitted. To turn it back on, edit lib/main.py and find the line that says pygame.mixer.music.play(-1) (should be around line number 71) and take the ‘#’ out from in front of it.

Download it from here: http://pyweek.org/e/vi/

You can also get “The Extraterrorestrial” (our game from last time) here: http://pyweek.org/e/hci/
I did music for that one, as well as some code and a fair bit of artwork as well.