Você está na página 1de 28

Unpack Your Favorite

Feature

Sang Shin
sang.shin@sun.com
www.javapassion.com
Technology Architect
Sun Microsystems
Agenda

• The Packs Story


• Visual Web Pack
• NetBeans Profiler
• Mobility Pack
• Enterprise Pack
• C / C++ Pack

NetBeans Day Mexico City 2007


The Packs Story

• Packs are an evolution toward running all Sun tools


functionality on a common NetBeans binary
> In the past, they have forked

• JFluid • Profiler
• Sun Java Studio Mobililty • Mobility Pack
• Sun Java Studio Enterprise • Enterprise Pack
• Sun Studio • C/C++ Pack
• Sun Java Studio Creator • Visual Web Pack

NetBeans Day Mexico City 2007


Visual Web Pack
Visual Web Pack

• Provides the visual drag and drop web application


design experience, similar to Sun Java Studio
Creator 2
• Fully integrated with the NetBeans 5.5 IDE
> Which means you get take advantage of:
> Java SE 5
> Java EE 5
> JAX-WS
> EJB 3.0
> Java Persistence API (JPA)

NetBeans Day Mexico City 2007


Visual Web Pack

• Sample of features included in 5.5:


> JSF 1.2 support
> One-click deployment to Glassfish, JBoss, and Tomcat
> Visual Web Page Designer
> Visual Database Binding to Components
> Visual Page Navigation
> Visual Data Binding
> Visual Query Editor

NetBeans Day Mexico City 2007


Visual Web Pack

• Planned For Future Releases:


> EJB 3.0 Consumption (Definition and Drag-n-Drop
binding)
> Web Service Consumption (Drag-n-Drop binding)

NetBeans Day Mexico City 2007


DEMO: Visual Web Pack
1. Build a simple Database Application – Travel
Management application using various JSF
components.
2. Build an Ajax application using Ajax-enabled
JSF component – Auto-complete.
3. Show page navigation.


Profiler
Issues of Traditional Profiling

• You might have to add ad-hoc profiling code to the


application and rebuild the application
> This is not practical if you have only binary bits
• You cannot pick and choose the area of profiling
> You have to profile the whole application and underlying
system code
> Profiling app server code is not something you care about
> The interpretation of the collected data is not easy
• Profiling adds significant overhead
> Profiling data is tainted by the profiling itself

NetBeans Day Mexico City 2007


NetBeans Profiling

• Provides runtime behavior of your application


> Heap memory size, GC statistics, thread count, thread state
> CPU time used by application methods
• Selectively choose specific part of your app for
profiling
> No “profiler tainted performance data” problem
> Filter out any system level code for profiling
• No need to rebuild the application with ad-hoc
profiling code fragments
> You can profile running application

NetBeans Day Mexico City 2007


NetBeans Profiling Techniques

• You can change the profiling overhead as the


application is running
> You can even remove all instrumentation so that your
application is no longer being profiled
> These changes can be made adaptively as you learn more
about the behavior of the application
• The changes can be made without restarting your
application

NetBeans Day Mexico City 2007


NetBeans Profiler Features

• Low overhead profiling


• Attaching to local and remotely running applications
• CPU Performance profiling
• Memory profiling
• Memory leak debugging
• Task-based profiling
• Threads profiling
• Processing collected data offline

NetBeans Day Mexico City 2007


DEMO: Profiler
1. Diagnose performance problem of a Web
application by selectively monitoring CPU
time used by a method.
2. Locate the code where memory leak occurs.


Mobility Pack
NetBeans Mobility – Overview

• Complete and feature-rich solution for Java ME


development
• Free product
• One-step install (includes Wireless Toolkit)
• 430,000+ cumulative downloads
• For further info and downloads see
http://www.netbeans.org/products/mobility/

NetBeans Day Mexico City 2007


NetBeans Mobility 5.0 Features

• Visual Mobile Designer


> Drag & drop MIDP authoring
• Wireless Connection Wizards
> E2E app development (web services, EJBs, etc.)
• Web Services Client Generator (JSR 172)
• Emulator support
> Sun Wireless Toolkit included
> Seamlessly integrates with 3rd party emulators (Nokia,
SonyEricsson, Siemens, Sprint, etc.)
• Tools for solving device fragmentation issues

NetBeans Day Mexico City 2007


Enterprise Pack
NetBeans Enterprise Pack

• Support for composite applications in NetBeans


• Design BPEL business processes to orchestrate:
> Java EE Web services
> External Web services
> Other BPEL processes
• Develop secure, identity-enabled Java EE Web
services
• Visualize, analyze, and edit real-world XML
Schema, WSDL, and XML instance documents
• Model architectures and designs using UML 2.0

NetBeans Day Mexico City 2007


Web Service Orchestration

• Visually author BPEL 2.0 business processes with the


BPEL Designer
> Step-through debugging support
> Built-in testing capability for unit testing
> “Beyond syntax” validation of schema, WSDL, and BPEL
• BPEL Mapper
> Visually create complex XPath expressions without coding
• Deploy to the built-in BPEL engine
> JBI-based BPEL service engine + SOAP/HTTP bindings
> Running within the bundled Sun Java System Application
Server

NetBeans Day Mexico City 2007


XML Development

• Visualize, analyze, and edit XML Schemas with the


XML Schema Editor
> Refactor across XML Schema, WSDL, and BPEL files
> Run advanced queries and visually analyze XML Schema
> Visual where-used of Schema components
> Apply design patterns to XML Schema
• Author-by-example Design view
> Author complex XML Schemas by editing
easy-to-understand virtual instance documents
• Schema-based code completion for XML instances
• Create WSDL files with the WSDL Editor
NetBeans Day Mexico City 2007
Secure Service Creation

• Secure Java EE Web service development


> Message-level security for Web service clients and
providers
> J2EE 1.4 and Java EE 5
> Support provided by the bundled Sun Java System
Access Manager
> Easy installation of runtime components
• Both WSI-BSP and Liberty token profile support
> SAML, X.509, Username/password
• Includes Identity Blueprints with samples

NetBeans Day Mexico City 2007


DEMO: BPEL Travel
Arrangement
1. Open Travel Reservation BPEL sample
project.
2. Take a look at the BPEL document.
3. Take a look at the WSDL documents of
the partner services and BPEL process itself.
4. Deploy the BPEL over BPEL engine,
which runs over JBI.
5. Perform source-code level debugging
against BPEL.
UML Modeling

• Supports the UML 2.0 specification


> Activity, Class, Collaboration, Component, Deployment,
Sequence, State and Use Case diagrams supported
• Supports reverse- and forward-engineering
• “Markerless” code generation
• Rich design-time support
• Design pattern support with the Design Center and
Catalog
• Generates user-friendly web reports

NetBeans Day Mexico City 2007


DEMO: UML Modeling
1. Create a UML project from existing Java
project by performing reverse-engineering.
2. Create a Class diagram.
3. Explore the diagram editor.
4. Generate a Sequence Diagram.


C/C++ Pack
C/C++ Pack

• Support for C/C++ in NetBeans


• NetBeans is more than a Java IDE
• Features you know from Java:
> Navigation, code folding
> Code completion, templates
> Management of makefiles
> And more...
• Compilers: gcc, Sun Studio, Cygwin
• Homepage: http://cnd.netbeans.org

NetBeans Day Mexico City 2007


Unpack Your Favorite
Feature

Sang Shin
sang.shin@sun.com
www.javapassion.com
Technology Architect
Sun Microsystems

Você também pode gostar