The alphas for WebSphere Application Server V8.5.Next and WebSphere Application Server Developer Tools for Eclipse V.Next were released on Friday October 12th 2012.

The alphas for WebSphere Application Server V8.5.Next and WebSphere Application Server Developer Tools for Eclipse V.Next were released on Friday October 12th 2012. These releases add many new features such as support for EJB lite. This new and noteworthy covers some of the more notable changes.

EJB lite

The ejblite-3.1 feature can be configured to enable initial support for the EJB lite subset of the EJB specification. The alpha supports the creation of @Stateless and @Singleton EJBs packaged in an EJB jar in an EAR file. The EJBs can then be injected into EJBs and Servlets using the @EJB annotation. Configuring the appSecurity-1.0 feature will allow the use of the @DenyAll, @DeclareRoles,@RunAs, @PermitAll, @RolesAllowed annotations.

The developer tools have been updated to allow the deployment of applications containing EJBs to the Liberty profile, including adding the ejblite-3.1 feature to the runtime when the application is deployed.

Contexts and Dependency Injection

The cdi-1.0 feature can be configured to enable initial support for the Contexts and Dependency Injection specification. The feature enables an expression language lookup of an @Named CDI style bean, with other CDI beans injected into it.

The developer tools have been updated allow Context and Dependency Injection (CDI) support to be added to existing Java or JEE projects.

jcdi_screen2

When adding a CDI annotation to a POJO the developer tools provide a Quickfix to add WebSphere and Liberty profile support.

jcdi_screen1

The developer tools provide as-you-type validation for CDI specification rules.

Java API for XML Binding 2.2

The jaxb-2.2 feature can be configured to enable support for JAXB 2.2 specification.

Web Services

The jaxws-2.2 feature provides basic enablement of JAX-WS 2.2 specification for Web services. The alpha support allows for annotated Web services and Web service references to be used within the web container. Stub clients and dynamic clients are both supported. Services may be POJO based, use Service Endpoint Interfaces, or be Provider based. Services may use automatically generated WSDL (bottom up) or may specify WSDL (top down). WSDL files are published to a URL of the service soap address concatenated with “?wsdl”. Handler chains, resource injection, and MTOM attachments are also supported.

Extending the Liberty profile

You can expand the capability of the Liberty profile by using product extensions.  Product extensions usually contain one or more features but can have any content that extends the liberty profile environment, for example scripts or resources. You can write your own Liberty features and install them into an existing Liberty profile server, or you can package them for delivery to your users. Implementing a function as a feature instead of as an application might be appropriate in a number of scenarios. The following list describes some of the benefits of using a feature:

  • Features are controlled through feature manager configuration, so they are separate from user application management.
  • Feature code has access to the liberty profile SPI, which allows deeper integration with the runtime environment.
  • Features can receive user-specified configuration from the server.xml file, and expose their configuration settings in the development tools without the tools having to be changed.
  • Features can easily expose classes and services to each other and to user applications.
  • Features can be extremely lightweight with no application container dependencies.

To write your own feature, create an OSGi bundle and a corresponding feature manifest, and place them into the required locations (the OSGi bundle goes in ${wlp.usr.dir}/extension/lib, and the feature manifest goes in ${wlp.user.dir}/extension/lib/features).

The developer tools provide a wizard to create a Liberty feature and to easily add OSGi Bundles to it.

creation_wiz

A Subsystem Manifest Editor allows you to add OSGi bundles to the Liberty feature, declare API and SPI packages.
editor

Wizards allow the import and export of Liberty features as a zip file.

export

Developer Tools support for Creating Applications Using Maven

The WebSphere Application Server Developer Tools for Eclipse gain development support for Maven based projects. Use of this support requires following special installation instructions for WDT. The integration enables the use of a wizard to create new maven projects.

NewMaven

Existing Maven projects can be imported into the tools.

ImportMaven

The Maven POM can be edited using a form based editor.

image

Maven repositories can be browsed to aid in the discovery of modules.

image

Maven support can also be added to existing projects.

Web and Mobile Tools

jQuery Mobile Visual Editing Tools.  jQuery Mobile widgets appear on the Palette for drag and drop generation.  Additionally, the Properties View has been enhanced to provide editing capabilities for a number of jQuery Mobile elements.

jQuery visual tools

 jQuery Plugin and Widget wizards to create custom jQuery plugins and widgets.  This allows you to keep your custom jQuery code neatly organized into reusable modules.

widget wizard

Enhancements to the Rich Page Editor Development Page with improved mobile device appearance in editor’s Design pane.

rpe-designpane

Rotation of the device layout in the design pane preview.

rpe-landscape

Mode to scale the previewed contents.

rpe-scaling

Support for jQuery Mobile

datamobile

datajquery

Direct edit actions for many jQuery widget combinations as well as support for jQuery grids.

dea2

jQuery Smart Highlight provides instant graphical feedback for jQuery selectors.

highlight

Content assist is available for the jQuery API in the source editor.

jQuery content assist

Simplified server creation

The server creation wizard has been simplified to reduce the time required to create an initial Liberty profile server.

creationWizard

Server landing page

Accessing the root page of the Liberty http endpoint now provides a basic introduction page to the Liberty profile.

Developer friendly error page

When running applications from a developer page the Liberty profile has always provided a different error page for application errors. This page has been updated to look like the landing page.

Custom User Registries

In addition to using the Basic, LDAP, and SAF registries you can now write and deploy custom user registries into the server. Custom User Registries are made available by defining an implementation of the com.ibm.websphere.security.UserRegistry class, packaging it in an OSGi bundle, and registering it as an OSGi service. The bundle is then engaged into the runtime using a Liberty feature.

Generate Java dumps

The server command can now be used to request a Java dump for a running server. The type of dump requested can be set using the –include option. Options are heap, system,and thread.

For example, if you wanted all three of these, you would issue the command:

server javadump –include=thread,system,heap

The developer tools have been updated to allow the creation of a JVM dump as well as to expose all the normal server dump options.

generateDump

Note that not all dump report types are available on all Java Runtime Environments.

Join The Discussion

Your email address will not be published. Required fields are marked *