![Page 1: GlassFish Story by Jaromir Hamala/C2B2 Consulting](https://reader034.vdocument.in/reader034/viewer/2022051322/54431073afaf9f0e118b4818/html5/thumbnails/1.jpg)
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.1
![Page 2: GlassFish Story by Jaromir Hamala/C2B2 Consulting](https://reader034.vdocument.in/reader034/viewer/2022051322/54431073afaf9f0e118b4818/html5/thumbnails/2.jpg)
Hacking on Glassfish!Jaromir Hamala, Senior Consultant
(and passionate
developer!)C2B2 Consulting Ltd.
![Page 3: GlassFish Story by Jaromir Hamala/C2B2 Consulting](https://reader034.vdocument.in/reader034/viewer/2022051322/54431073afaf9f0e118b4818/html5/thumbnails/3.jpg)
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.3
How You Are Using GlassFishHacking!
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
![Page 4: GlassFish Story by Jaromir Hamala/C2B2 Consulting](https://reader034.vdocument.in/reader034/viewer/2022051322/54431073afaf9f0e118b4818/html5/thumbnails/4.jpg)
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.4
What Worked with GlassFishDid I mention it’s highly hackable?
JMS broker or Data Grid? JMS backed by Data Grid!
Demo Time!
https://github.com/jerrinot/hazelcastmq
![Page 5: GlassFish Story by Jaromir Hamala/C2B2 Consulting](https://reader034.vdocument.in/reader034/viewer/2022051322/54431073afaf9f0e118b4818/html5/thumbnails/5.jpg)
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 Saturday if you live in the UK)
![Page 6: GlassFish Story by Jaromir Hamala/C2B2 Consulting](https://reader034.vdocument.in/reader034/viewer/2022051322/54431073afaf9f0e118b4818/html5/thumbnails/6.jpg)
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")); }
![Page 7: GlassFish Story by Jaromir Hamala/C2B2 Consulting](https://reader034.vdocument.in/reader034/viewer/2022051322/54431073afaf9f0e118b4818/html5/thumbnails/7.jpg)
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.7
Graphic Section Divider
![Page 8: GlassFish Story by Jaromir Hamala/C2B2 Consulting](https://reader034.vdocument.in/reader034/viewer/2022051322/54431073afaf9f0e118b4818/html5/thumbnails/8.jpg)
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.8