Saturday Mar 14, 2015

Using Java API for WebSockets in JDeveloper 12.1.3 by Eugene Fedorenko

The latest release of JDeveloper 12c (12.1.3.0) along with WebLogic Server 12.1.3 came up with some new Java EE 7 features. One of them is support of JSR 356 Java API for WebSockets. Actually the WebSocket Protocol (RFC 6455) has been supported starting from 12.1.2.0 release, but it was based on WebLogic specific implementation of the WebSocket API. Now this proprietary WebLogic Server clip_image002WebSocket API has been deprecated. However, it is still supported for backward compatibility.
In this post I am going to show an example of using JSR 356 Java API for WebSockets in a simple  ADF application. The use case is about some sailing regatta which takes place in the Tasman Sea. There are three boats participating in the regatta and they are going to cross the Tasman Sea sailing from Australia to New Zealand coast. The goal of the sample application is to monitor the regatta and inform users about how it is going on, showing the positions of the boats on a map.
We're going to declare a WebSocket server endpoint in the application and when a user opens a page a Java script function opens a new WebSocket connection. The application uses a scheduled service which every second updates boats coordinates and sends a message containing new boats positions to all active WebSocket clients. On the client side a Java script function receives the message and adds markers to the Google map according to the GPS coordinates. So, each user, interested in the regatta, is going to see the same updated picture representing the current status of the competition.

WebSocket server endpoint

Let's start with declaring a WebSocket server endpoint. There is a small issue in the current implementation, which probably will be resolved in future releases. The WebSocket endpoints can not be mixed with ADF pages and they should be deployed in a separate WAR file. The easiest way to do that is to create a separate WebSocket project within the application and to declare all necessary endpoints in this project: Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Wednesday Feb 04, 2015

Building a Smart Home Server by Using the Java EE 7 WebSocket API

clip_image002

This tutorial shows you how to create an application that uses the WebSocket API for real-time communication between a client and a server. You learn how to:

  • Create a Java Platform, Enterprise Edition 7 (Java EE 7) application that uses the WebSocket API
  • Use the OnOpen and OnMessage WebSocket lifecycle events to perform different actions on the Java EE 7 application.
  • Define a client-side WebSocket endpoint by using JavaScript
  • Operate on Plain Old Java Objects (POJOs), in real-time, with actions invoked from a web browser client

Get the free tutorial here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Friday Jan 02, 2015

ADF12c-WebSockets-SlidePresenterDemo by Lucas Jellema

clip_image002

WebLogic 12c (12.1.2) has support for WebSockets. ADF 12c runs on WebLogic 12c. Therefore, we should be able to leverage that WebSockets support in an ADF application. And indeed we can, as this article describes. It will explain the creation of a simple application – the SlidePresenter – that allows users to select an image from a carousel. As soon as they make the selection, all currently connected clients are synchronized, showing the same slide: Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Friday Dec 26, 2014

Using Java API for WebSockets in JDeveloper 12.1.3 by Eugene Fedorenko

clip_image002Introduction

The latest release of JDeveloper 12c (12.1.3.0) along with WebLogic Server 12.1.3 came up with some new Java EE 7 features. One of them is support of JSR 356 Java API for WebSockets. Actually the WebSocket Protocol (RFC 6455) has been supported starting from 12.1.2.0 release, but it was based on WebLogic specific implementation of the WebSocket API. Now this proprietary WebLogic Server WebSocket API has been deprecated. However, it is still supported for backward compatibility.
In this post I am going to show an example of using JSR 356 Java API for WebSockets in a simple ADF application. The use case is about some sailing regatta which takes place in the Tasman Sea. There are three boats participating in the regatta and they are going to cross the Tasman Sea sailing from Australia to New Zealand coast. The goal of the sample application is to monitor the regatta and inform users about how it is going on, showing the positions of the boats on a map.
We're going to declare a WebSocket server endpoint in the application and when a user opens a page a Java script function opens a new WebSocket connection. The application uses a scheduled service which every second updates boats coordinates and sends a message containing new boats positions to all active WebSocket clients. On the client side a Java script function receives the message and adds markers to the Google map according to the GPS coordinates. So, each user, interested in the regatta, is going to see the same updated picture representing the current status of the competition.

WebSocket server endpoint

Let's start with declaring a WebSocket server endpoint. There is a small issue in the current implementation, which probably will be resolved in future releases. The WebSocket endpoints can not be mixed with ADF pages and they should be deployed in a separate WAR file. The easiest way to do that is to create a separate WebSocket project within the application and to declare all necessary endpoints in this project:

This is also important to set up a readable Java EE Web Context Root for the project: Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Thursday Nov 20, 2014

HTML5, WebSockets and Java EE 7 & Screencast by Adam Bien

clip_image002A simplest possible example for HTML - Java EE 7 communication using WebSockets. Watch the video here.

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.

See you at Java EE Workshops at Munich's Airport, particularly at the Java EE User Interfaces or / and Java EE 7 and HTML 5 workshops!

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Thursday Oct 16, 2014

Using the WebSocket Protocol in WebLogic Server

WebLogic Server supports the WebSocket protocol (RFC 6455), which provides full-duplex communications between two peers over the TCP protocol. The WebLogic Server implementation of the WebSocket protocol and its accompanying API enable you to develop and deploy

applications that communicate bidirectionally with clients. Although you can use the WebSocket protocol for any type of client-server communication, the implementation is most commonly used to communicate with browsers running Web pages that use the World Wide Web Consortium (W3C) JavaScript WebSocket API. The WebLogic Server implementation of the WebSocket protocol also supports Java clients.

This chapter includes the following sections:

Read the complete documentation here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Thursday Sep 18, 2014

WebLogic 12.1.3 infra (JRF) cluster with webtier by Edwin Biemond

Details

  • CentOS 6.5 vagrant box
  • Puppet 3.5.0
  • Vagrant >= 1.41
  • Oracle Virtualbox >= 4.3.6

Download & Add the all the Oracle binaries to /software edit Vagrantfile and update the software share to your own local folder.

  • wlsdb.vm.synced_folder "/Users/edwin/software", "/software"
  • jrf2admin2.vm.synced_folder "/Users/edwin/software", "/software"

Vagrant boxes

  • vagrant up wlsdb
  • vagrant up jrf2admin2

Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Monday Sep 15, 2014

WebLogic 12c Enabling Development of Modern Applications: WebSocket and Maven Support – Webcast September 18th 2014

clip_image001[5]Register for the Webcast here.

Cloud Application Foundation is the innovator’s complete and integrated modern cloud application infrastructure, built using best of breed components, such as Oracle WebLogic Server 12c, the industry's best application server for building and deploying enterprise Java EE applications.

Oracle WebLogic Server 12.1.3 provides features that directly support and enable the development of modern applications across conventional and cloud environments, both on-premise and third-party cloud, lowering cost of operations, improving performance and enhancing scalability.

The latest release of Oracle WebLogic Server is integrated with other Oracle Fusion Middleware 12.1.3 products, and provides support for selected new or updated APIs from Java EE 7, such as

These APIs and related capabilities simplify development of server applications accessed by "rich" clients using lightweight web-based protocols such as REST, WebSocket, and Server-Sent Events.

Oracle WebLogic Server has always been an efficient and compelling development platform through its developer-oriented features. Improvements to development tooling and open source support expand developer choices and simplify creation of development environments. Join this webcast as we drill into and demonstrate the implementation of WebSocket and the updated Maven Support.

Agenda:

  • WebLogic 12.1.3 New Features
  • Developing with WebLogic Server
  • Maven Support (inc. Demo)
  • WebSocket (inc. Demo)
  • Summary – Q & A

Delivery Format

This FREEonline LIVE eSeminar will be delivered over the Web. Registrations received less than 24hours prior to start time may not receive confirmation to attend.

Presenter:
Tshepo Madigage - FMW Specialist, Oracle Partner Hub Migration Center South Africa

Date: Thursday, 18th Sep 2014 - 10:00am CEST (08.00am UTC/GMT –11.00am EEST - 12.00pm GST)
Duration: 1 hour

Register for the Webcast here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Thursday Apr 10, 2014

WebLogic 12c Does WebSockets – Getting Started by C2B2

With the release of WebLogic 12.1.2 websocket support has come to WebLogic. In this blog post we'll show you how to write a simple websockets echo example just to get you started.
Unfortunately the api released with WebLogic is not the JEE7 JSR356 api, which I suspect will come when WebLogic gets JEE7 compliance. On the plus side it's a pretty simple api.
In this blog I'm using NetBeans 7.4 and I've started off by creating a basic web project and I've called it Echo.

Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Wednesday Mar 19, 2014

REST, SSE or WebSockets on WebLogic 10.3.6 by Edwin Biemond

WebLogic 10.3.6 comes with Jersey1.9 and has no support for Server Side Events or WebSockets. But for one of our projects we are making a HTML5 / AngularJS application, which need to invoke some RESTful services and we also want to use of SSE or WebSockets.

Off course we can use WebLogic 12.1.2 but we already have an OSB / SOA Suite WebLogic 10.3.6 environment.
So when you want to pimp your WebLogic 11g server you can make a new shared library which has the latest version of Jersey (1.18),  Jackson, Linking and the  Atmosphere Jersey module ( for  SSE & Websockets).  Atmosphere also comes with a WebLogic addon ( cause Servlet 3.0 is not supported on WebLogic 10.3.6 ).
The Atmosphere framework also supports IE 6 or higher and when SSE or WebSockets is not supported by your browser,  it automatically falls back to Long Polling.
Here you can download the shared library and it comes with a working demo Rest Service and SSE chat application.

Just deploy this war as a Library and target this to a managed server.
In a Web Application add the weblogic.xml deployment descriptor to the web-inf folder and add a reference to this shared library. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Wednesday Jan 08, 2014

WebLogic 12c Does WebSockets – Getting Started by Steve Millidge

With the release of W ebLogic 12.1.2 websocket support has come to WebLogic. In this blog post we'll show you how to write a simple websockets echo example just to get you started.
Unfortunately the api released with WebLogic is not the JEE7 JSR356 api, which I suspect will come when WebLogic gets JEE7 compliance. On the plus side it's a pretty simple api.
In this blog I'm using NetBeans 7.4 and I've started off by creating a basic web project and I've called it Echo. . Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

WebLogic 12c Does WebSockets – Getting Started by Steve Millidge

With the release of W ebLogic 12.1.2 websocket support has come to WebLogic. In this blog post we'll show you how to write a simple websockets echo example just to get you started.
Unfortunately the api released with WebLogic is not the JEE7 JSR356 api, which I suspect will come when WebLogic gets JEE7 compliance. On the plus side it's a pretty simple api.
In this blog I'm using NetBeans 7.4 and I've started off by creating a basic web project and I've called it Echo. . Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Search

Archives
« May 2015
SunMonTueWedThuFriSat
     
25
26
27
28
29
30
31
      
Today