Transcript
Page 1: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

GlassFish 4 on Ubuntu Touch

Adventures in Hacking JEE on a phone

Mike Croft

Page 2: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

INTRODUCTIONS

GlassFish on Ubuntu Touch

Page 3: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Who Am I?

• C2B2 Expert Support consultant

• Fan of anything bleeding-edge

• Snowboarder

• @croft

Page 4: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Who are you?

Page 5: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

WHAT ARE WE DOING AND WHY?

GlassFish on Ubuntu Touch

Page 6: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

What are we doing?

• Putting the full Java EE reference app server on a phone

• Getting it to run

(successfully)

• Testing performance

Page 7: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Why are we doing it?

• “Because it is there”

• Because Java EE does not automatically mean heavyweight!

• Ubuntu Touch really is a convergent device!

• Smartphones are now ultra low power PCs!

Page 8: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

HOW DO WE DO IT?

GlassFish on Ubuntu Touch

Page 9: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

How do we do it?

Demo Time!

Sort of…

Page 10: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Demo – Plan B

Page 11: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

CAN WE MAKE IT BETTER?

GlassFish on Ubuntu Touch

Page 12: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Performance

• Tune the server

• Design for performance

• It’s still only a phone!

(don’t expect miracles!)

Page 13: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Monitoring

• LightFish

– REST based (by Adam Bien)

• New Relic

– Agent based

Page 14: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Distributed Computing

• Map/Reduce

• Data grids

Page 15: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

WHAT IMPLICATIONS DOES THIS HAVE?

GlassFish on Ubuntu Touch

Page 16: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

What implications does this have?

• Why is your old Nexus sat gathering dust?

• Are you sure your GlassFish really needs all those resources?

• What could you do with the full Java EE stack in your pocket?

Page 17: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

What implications does this have?

• Internet of Things

• “Wearables”

• Other limited-resource platforms?

Page 18: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

RECAP

GlassFish on Ubuntu Touch

Page 19: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Recap

• Phones are pretty awesome

• Canonical has an interesting vision

• Challenges of seriously tiny environments

• Advantages of tiny environments!

Page 20: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Key Considerations

• Performance

– What do you need?

• Monitoring

– Can you tell if your needs change?

• Distributed computing

Page 21: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Get In Touch

@c2b2consulting

@croft

http://www.youtube.com/user/C2B2Consulting

C2B2 Consulting Limited

http://www.c2b2.co.uk/

[email protected]

Page 22: GlassFish 4 on Ubuntu Touch: Adventures in Hacking JEE on a phone

© C2B2 Consulting Limited 2013 All Rights Reserved

Any Questions?