1 / 29

Lessons Learned from using GlassFish and NetBeans BOF2764

Lessons Learned from using GlassFish and NetBeans BOF2764. Nathan Howard and Mark Stephens IDRsolutions. Who is talking. Full time Java Developers at IDRsolutions Work on PDF, HTML5, SVG in Java Make extensive use of NetBeans and GlassFish Involved in NetBeans 7.3/7.4 testing.

breck
Download Presentation

Lessons Learned from using GlassFish and NetBeans BOF2764

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lessons Learned from using GlassFish and NetBeans BOF2764 Nathan Howard and Mark Stephens IDRsolutions

  2. Who is talking... • Full time Java Developers at IDRsolutions • Work on PDF, HTML5, SVG in Java • Make extensive use of NetBeans and GlassFish • Involved in NetBeans 7.3/7.4 testing....

  3. Talk will consist of… • Introduction to NetBeans/GlassFish and why we use it • Interactive demos (Hello GlassFish!) • Hints and tips • Any questions • Stunned silence at end

  4. Official disclaimer We will deny anything that we say in this talk (even if it is on video) No kittens were harmed (or neglected) during the making of this presentation.

  5. What is NetBeans What does this mean?

  6. NetBeans has come a long way • 15 years young. • It is not just Java and it is not just an IDE! • Fast development pace • First place many developments appear like JavaFX • A natural platform for GlassFish....

  7. NetBeans can include GlassFish in download

  8. What is GlassFish? What does this really mean?

  9. No Glass and no fish….

  10. GlassFish consists of... • The actual GlassFish program • A server instance of this (which can be on your computer with NetBeans for development/testing or a remote server on the internet). • One or more web applications running on the server • Multiple client sessions running on client computers/phones/etc talking to the web applications You can run all on a single machine for testing and development

  11. Client Applications Can be written in JSP, HTML, or any computer language Users may not even know you are using GlassFish...

  12. Deployment Is installing the software or an update to the server. You cannot just overwrite the file...

  13. 2 use case scenarios • Make it very easy for client side applications to communicate in a secure way with Java code on our server, including file transfer • Allow non-Java developers to access our Java server application via web services (we can sell Java to non-Java users!) • GlassFish takes care of all the details.... Its a magic door...

  14. Why did no-one tell us • RAD on NetBeans with local GlassFish is very fast • It is very easy to mix and match technologies (HTML5/CSS/Java) • System.out.println(“”) goes to server not project • What is the difference between a jar and a war file?

  15. Demos • Hello GlassFish • Fundamentals - Tour of GlassFish • While Nathan was doing that, here is what I did...

  16. TIPS A selection for GlassFish and NetBeans...

  17. Does CapiTalisAtion and Spealing matter? When deploying a .war file, make sure as good practice it has the correct spelling and is case sensitive. This will save you lots of hassle on UNIX

  18. Always uninstall NetBeans properly There are several ‘hidden’ directories which will all be properly removed. If you just delete NetBeans they will not...

  19. Problem accessing GlassFish When accessing GlassFish from a URL, it’s important to include the correct port numbers, for example: https://glassfish.idrsolutions.com:4848 for the admin GUI

  20. I do not use Netbeans because I already know all the shortcuts for Eclipse, IDEA, Vi, Emacs

  21. 3 War tips • Cleaning & Building Cleaning will delete the .war file, whilst building it will build the .war file. In the event where the glassfish server can't be stopped, make sure you clean and build the glassfish project at least twice. • Checking the Last Modified Time After you have built the .war file, navigate to the dist directory and ensure that the last modified time of the .war file matches the current system time. If the clean was not performed correctly then the .war file may not be replaced. • Deployment Always deploy a war in the correct way. GlassFish should always be stopped before you clean the project, otherwise you might get some dependency errors where a .jar is still in use by GlassFish.

  22. What is the Favourites tab?

  23. Gotcha on builds • Make sure you have a stable build When building the .war file, make sure you build from a stable external .jar and not the linked project in Netbeans, otherwise it will compile the Netbeans project. • Remove the external .jar If you don’t do this then any future changes you make in the project won’t be visible as it’s working off the stable .jar instead of the linked project.

  24. Uninstall or Deactivate Plugins to declutter your IDE

  25. You may need to refresh the browser In NetBeans, the moment you save a code file, the GlassFish project is re-deployed, so you have to refresh your browser window to notice the changes.

  26. NetBeans Community Testing (NetCat) • I could give you all the selfless reasons about all being in it together, saving kittens, making the world a better place... • We found lots of features we did not know existed • Higher profile for our developers • We got Oracle to fix all the bugs which mattered to us • It made a really good end of day task • We influenced development according to our requirements....

  27. Our team shameless copy any good test ideas…

  28. Questions?

  29. Details and links http://www.netbeans.org http://glassfish.java.net/ http://blog.idrsolutions.com http://convert.idrsolutions.com Stand 5174

More Related