Mock tests, Interview questions, Tutorials and Tech news
 
 

Archive

Archive for April, 2010

Introduction to JavaFX

April 29th, 2010 fanand 5 comments

Overview

JavaFX is a rich client platform for building cross-device applications and content. Designed to enable easy creation and deployment of rich internet applications (RIAs) with immersive media and content, the JavaFX platform ensures that RIAs look and behave consistently across diverse form factors and devices.

The JavaFX1.2 platform release includes the following components:

  • JavaFX SDK which includes the JavaFX compiler and runtime tools, graphics, media, web services, and rich text libraries to create RIAs for the desktop, browser and mobile platforms.
  • NetBeans IDE for JavaFX which provides a sophisticated integrated development environment for building, previewing, and debugging JavaFX applications. The editor features a drag-and-drop palette to quickly add JavaFX objects with transformations, effects and animation. This IDE also comes with its own set of Building Block samples and the JavaFX Mobile Emulator, a mobile phone simulator.
  • JavaFX Production Suite is a suite of tools and plugins that enable designers to export graphical assets to JavaFX applications.  (Example:: JavaFX Plugin for Adobe Photoshop and JavaFX Plugin for Adobe Illustrator)

JavaFX Vs Swing Read more…

Categories: Programming / tutorials Tags: , ,

From ESB to REST and Clouds – An Open Source Presentation

April 27th, 2010 Vinay 2 comments

Boston residents , this Thursday on 13 May NEJUG  is organizing an presentation on “From ESB to REST and Clouds an Open Source Presentation”.

Presentation Overview

The ESB concept emerges from integration requirements that have remained mostly stable and pervasive over the years. Yet many developers feel like they are run over by the bus, especially when an ESB is foisted onto their projects. Open source ESBs offer a flexibility and transparency that is hard to match without access to the source code. In the first half of this talk, we will detail the architectural considerations behind ESBs and how they are realized in JBoss ESB. With this understanding, the audience should be well prepared to use and customize ESBs to meet their specific project needs.

Error creating bean with name ‘flowExecutor’

April 26th, 2010 Vinay No comments

If you are getting this error , it because of in correct libraries in your lib folder.

If you are lazy enough to build the project using maven , here is another option

Go to this link

http://www.springsource.org/webflow-samples

Download and run the sample . Copy all the libraries into your project . Make sure you have deleted all the old jar files.

The exception you were seeing earlier should be gone.

Categories: Programming / tutorials Tags:

Image Compression using Java JAI API

April 24th, 2010 fanand 1 comment

This post explains how to do the gif, jpg, bmp, png image compression using JAI APIs.  We are not using image compression software but using open source Java Api’s to achieve compression.

The preferred method for reading an image file of any format into a RenderedImage is:

String filename = “// path and name of the file to be read,

that is on an accessible filesystem //”;

RenderedImage image = JAI.create(“fileload”, filename);

or:

URL url = “// URL of the remote image to be read //”;

RenderedImage image = JAI.create(“url”, url);

and for writing a RenderedImage to an image file in a format whose encoder is supported by an ancillary codec, using the default encoding algorithm, is:

RenderedImage image = “// the image to be stored //”;

String filename = “// path and name of the file to be writen //”;

String format = “// the format of the file //”;

RenderedOp op = JAI.create(“filestore”, image,

filename, format); Read more…

What is WCF – Window Communication Foundation ?

April 24th, 2010 Vinay No comments

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application

Some useful links

MSDN
Windows Communication Foundation Tutorial

Check out C# interview questions

Categories: Programming / tutorials Tags: , ,

Firebug cheat Sheet

April 20th, 2010 Vinay No comments

Some very helpful shortcuts and commands when working with firebug. Thanks to Duvet-Dayez for creating this cheat sheet.

Firebug cheat sheet

Categories: Programming / tutorials Tags: ,

Output parameter not allowed as argument list prevents use of RPC.

April 20th, 2010 sadhna 2 comments

While calling a stored procedure from my java class; I was getting the following  error-

java.sql.SQLException: “Output parameter not allowed as argument list prevents use of RPC.”

After doing a little research; I found that When calling a stored procedure that has output parameters, the driver has to call the procedure using a remote procedure call (RPC). Stored procedures should be invoked using the special JDBC call escape syntax.

For example, {call stored_Proc1(?,?,?,?)}.

In this case the driver will be able to use an RPC successfully as all the parameters are represented by parameter markers (?). If however parameters are supplied as a mixture of parameter markers and literals,

for example {call stored_Proc1(?,’ ‘,?,0)}

Then the driver is unable to use an RPC and therefore cannot return output parameters. In these circumstances the driver raises the above exception and execution fails.

It is possible to use mixed parameter lists to call stored procedures that do not have output parameters. In this case the driver will substitute the parameters locally and use a normal “execute procedure” SQL call; however, this mode of execution is less efficient than an RPC.

Categories: Programming / tutorials Tags: , ,

Struts 2 Overview

April 18th, 2010 Vinay No comments

Attached find presentation which gives an overview of Struts 2

Struts 2-Overview

Categories: Programming / tutorials Tags:
Get Adobe Flash playerPlugin by wpburn.com wordpress themes