Thursday, January 28, 2010

VMware ESXi 4 and physical disks

Hi there,

if you were ever wondering if it is possible to map a physical disk to a virtual machine in ESXi (even though it's not available using vSphere client) check this article out! It describes step by step how to achieve it! I've checked is using the latest ESXi and it works!


Have fun!

Wednesday, January 20, 2010

jQuery 1.4 Released!

Hi there,

in case you have missed that a new version jQuery (my favorite JavaScript library) has been released. It's the 1.4!

Go check the latest stuff on jQuery at jquery14.com


Saturday, January 16, 2010

JavaEE 6 - first impression

Hi

I've had some delay checking out the latest stuff on JavaEE 6 but finally I've done some looking around and I must honestly say that it is really impressed!

Using maven I've created 4 projects: parent, EJB, WAR and an EAR to house the others. It was relatively easy so I'd say in a scale from 1 to 10 I'd give it an 6 (the same thing using NetBeans scores a complete 10). I've implemented a EJB bean (just a class with one annotation - @Stateless - so the score is 9 because Java is just too damn verbose) and a servlet that uses that bean (that has scored a 6 because of the web.xml part, but maybe there's something new I didn't read about yet to raise the score).

Overall it was very pleasing to see the EJB part without XML configuration whatsoever :)

If you want you can check it out here.


Have fun!

Wednesday, January 13, 2010

Apache ServiceMix - Close encounter

Hi there,

I've been pushed by the project I'm working on to use a very specific platform for integrating services, namely Apache ServiceMix. After spending around 8 hours trying to put this piece of code to some use (and failing miserably) I've decided to blog about it.

It's going to be very negative! You've been warned!

Let me start from the absolute beginning which is installation. Apache ServiceMix comes in 2 different distributions: one directly from Apache and another one maintained by IONA company called Fuse ESB. Both were easy to install (especially easy in the case of Apache distro where it came in the usual zipped form ready to go after unzipping). Iona was a bit more annoying with its GUI-based installer (you guys thing we're morons not able to use zipped folders? I hope not!).

After a brief lecture of the tutorial I've started to do some coding. Well, it's an integration platform after all so I thought some "integration exercise" will be ok to start with. All I wanted to do was to generate some messages in constant intervals using quartz and send them to a message queue provided by ActiveMQ (btw. if you have not tried ActiveMQ I strongly recommend you do check it out! It's an amazing piece of free software!).

My problems started at the very beginning where I've had to browse through tons of poorly structured documentation (on both Iona and Apache web sites) to get the hang of how do I actually proceed with such a use case. At this point one might think it is ok because it is a complicated piece of technology so doing some reading is kind of expected... "Some" being the key word here: 8 hours spent on googling for information without much success is in my humble opinion a total disaster! Have you guys heard about user friendliness and learning curves? Not all of us are ESB gurus but many of us are thrown into the pit where using SMX is needed. You really might have done better here!

Speaking of which, there is actually support you can get - but it's PAID!!! You have to pay some jerks to give you information about stuff they have "packaged" and "maintained", whatever the latter part means. This is theft, to say the least...

Going back to the available materials. There's a "tutorial". A piece of "documentation" written in a very easy to understand way. Had this sh*t been right top to bottom my complains would not have been so hard. I mean can you imagine trying to find out how to deal with grails and be left with a hello-world-style application that does not even compile? Or if it actually compiles then running it is a no-go? Can you beat that?!

Moving on I've finally found the answer on the net (provided by some poor soul trying to do the same thing I did today, meaning get started with SMX) and he already found the errors so I was able to do the changes and see (exactly) one file being moved from one folder to another! Ain't that cool?!

Amazed by the extreme complexity of the solution I made I thought that doing some scripting would be kind of cool and maybe would provide me with some more confidence that not everything is actually lost. So I did some googling and bang! There it is! The actual "component" I need was called servicemix-scripting, there's a Maven archetype that creates an example service unit from scratch so I was hoping to feel a loooot more positive. Again, nothing could have been further from the truth...

servicemix-scripting is not available from Iona repositories but it comes bundled with Apache distribution. It is said that "components are written to be JBI-compliant" so I thought moving one component from one distro to the other should not present any issues since both are JBI compliant. The disappointment was huge when I found out that my service unit not only does not start (the one generated by default using Maven archetype) but the error message says completly nothing. I was like "assembly failed to do something because of administrative error of some damn kind"... ehhhhhhh...

I will not bother you with the "F" words I wanted to say about JMS integration. Suffice to say its description and tutorials are where the sun does not shine.

Well, had this not been part of my daily work I would have thrown it away after like 1 hour (yes, I am extremely pervasive! :) ). Will see if I can squeeze some positive outcome in the coming days out of this product. If I do (or if I don't) I'll blog about it soon.

Sunday, January 3, 2010

JavaScript Framework Comparison

I've just stumbled upon a very nice JavaScript framework comparison by Matthias Schuetz. Check it out at here