Vous êtes sur la page 1sur 17

What Makes

NetBeans the Best


IDE for J2EE App
Development?
Sang Shin
sang.shin@sun.com
Technology Evangelist
Sun Microsystems, Inc.
Sun Confidential & Proprietary– Internal Use Only 1
Out of the Box NetBeans 5.0 J2EE Features
• Web application development
• Enhanced editor features*
• Debugging, testing, profiling*
• Struts and JavaServer Faces (JSF) support*
• JBoss 4, WebLogic 9, (WebSphere is coming)*
• Web services development (client + service)
• AJAX application development (Blueprints)
• Improved CVS* (Working on Improved Subversion)
• EJB application development
• Java EE 5 support* (NetBeans Java EE 5 version)
2
Demo: Web Application Development

• Develop a simple “Hello World” JSP application


> Two JSP pages: index.jsp & response.jsp
> One JavaBean: NameHandler.java
• You can try this yourself
> http://www.netbeans.org/kb/50/quickstart-webapps.html

3
Demo: Enhanced Editor Features

• HTML pallete*
• JSP, Java code error checking
• JSP, Java code completion
• More refactoring (13 of them now)*
• Error stripe*
• Code template*
• CamalHump completion*
• Context sensitive JavaDoc
4
Demo: Code Navigation

• Go to class (Alt+Shift+O)
• Select document in
• Hyperlinking
• Jump list (Alt+K, Alt+L)
• Bookmarking
• Select a tab

5
Demo: Debugging, Testing, Profiling
• JSP page debugging
> You don't have to debug the generated servlet code
• Junit support
• HTTP monitoring
> Edit and replay
• Profile the application

6
Demo: Enhanced Project Management

• Copy, Rename, Delete Netbeans Project*


• Leverage “Existing sources” option
> You can create a NetBeans project from pretty much any
existing Web application code
• Import Eclipse Project

7
Demo: Struts or JSF Support

• Develop a simple Struts and/or JSF application


> Use Struts and/or JSF template*
• Code completion in Struts and JSF tags*
• Context sensitive Struts or JSF JavaDoc
> You have to add a document zip file or API directory yourself
• Build any Struts, JSF, any Web application (using
any other Web app framework) as NetBeans project
> Using “existing source” project option
8
Demo: Web Services Development
• Develop Web service client from a public Web service
> Spell-checking Web service
> http://ws.cdyne.com/SpellChecker/check.asmx
> Test the Web service
• Create a Web Service skeleton code from a WSDL
document
• Build document-driven Web services
> Blueprint catalog
> You can try this yourself within NetBeans
9
Demo: Building AJAX Applications
• Build AJAX-enabled web applications
> Blueprint catalog, auto-completion
> Check the HTTP traffice via HTTP monitor
• You can try this yourself within NetBeans

10
Demo: Deployment Over JBoss &
WebLogic App Server
• Deploy the same application over multiple
deployment platforms
> Sun Java System App server
> Tomcat
> JBoss 4 App server*
> WebLogic 9 App server*
> WebSphere support is being worked on
• Check if the application is deployed correctly
through JBoss admin console
11
Enhanced CVS Support
• IDE integration at project level
• More intuitive user interface
• Built-in SSH support

By the way, we are working on enhancing Subversion.

12
Demo: New CVS Support
• Check out files
• Make modification to a file
• Show annotations
• Perform “Diff”'ing modified file against the previous
version
• Check the modification history
• Commit modified files
• Branching
13
Demo: Building EJB Application
• Generate the CMP entity beans from an existing
PointBase database
• Create a simple session bean to access the
database information and a Web module client
> NetBeans handles JNDI chore
• You can try this yourself
> http://www.netbeans.org/kb/50/quickstart-j2ee.html

14
Demo: Building Java EE 5 Application
• Use GlassFish as Java EE 5 app server
• Use NetBeans Java EE 5 build
• Create and test a simple "Hello world" Java EE 5
application with EJB 3.0 and dependency injection
in JSF
• Exercise Java EE Persistence
• You can try this yourself
> http://www.netbeans.org/kb/articles/javaee5-hello-world.html
> http://blogs.sun.com/roller/page/pavel?entry=java_ee_5_pers
istence_crud
15
Questions?
What Makes
NetBeans the Best
IDE for J2EE App
Development?
Sang Shin
sang.shin@sun.com
Technology Evangelist
Sun Microsystems, Inc.
Sun Confidential & Proprietary– Internal Use Only 17

Vous aimerez peut-être aussi