jms @ data grid? hacking the glassfish messaging for fun & profit

8
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1

Upload: c2b2-consulting

Post on 11-Nov-2014

1.223 views

Category:

Technology


2 download

DESCRIPTION

'JMS @ Data Grid? Hacking the Glassfish messaging for fun & profit' by Jaromir Hamala, Senior Consultant at C2B2. Lightening talk delivered at the first London GlassFish User Group (GUG) event on the 18th of September 2013.

TRANSCRIPT

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1

Hacking on Glassfish!

Jaromir Hamala, Senior Consultant (and passionate developer!)

C2B2 Consulting Ltd.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 3

How You Are Using GlassFish

Hacking!

Glassfish as the hacker friendly Java EE platform

Taking advantage of modular architecture

And Java EE standards!

It’s fast to start with! (yet very reliable!) Low footprint

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 4

What Worked with GlassFish

Did I mention it’s highly hackable?

JMS broker or Data Grid?

JMS backed by Data Grid!

Demo Time!

https://github.com/jerrinot/hazelcastmq

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 5

Ingredients

Hazelcast DataGrid (implements topic and queue ootb)

JMS wrapper (written by Mike Pilone) https://github.com/mpilone/hazelcastmq

Generic JMS RA http://genericjmsra.java.net/

1 Rainy Saturday

– (or pretty much any Sunday if you live in the UK)

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 6

How GlassFish Can Be Better

Better / More descriptive error messages

No downloadable tarball with source code

SVN only

http://www.joe-ks.com/archives_aug2009/CatFish.htm

public class FlushJMSDestination {

[…] if (!success) {

//todo: enable localized string

throw new Exception();//localStrings.getLocalString("admin.mbeans.rmb.error_purging_jms_dest"));

}

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 7

Graphic Section Divider

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 8