Archive for the 'Java' Category


SPEEDTEST.NET MINI with JSP

You can download a neat flash broadband speed test from http://www.speedtest.net/mini.php and put it on your own web site.
It comes with server side scripts in PHP, ASP.NET, and ASP for the upload half of the test.  But what if you want it to run on your java web container server such as tomcat or jboss?
Well, I […]

How to Access HttpRequest from Flex Data Services 2

Sometimes in a flex app that is deployed as part of a java web app you will need to know who is the currently logged in user.  To do this in Flex 1.5 you could use the flashGateway.Gateway class.  In Flex 2.0 this is done using the flex.messaging.FlexContext class (part of the flex-messaging.jar file).  Use […]

Integrating Flex and Java in an Eclipse Web App Project

Requirements
1. Eclipse Web Tools Platform (WTP) from http://www.eclipse.org/webtools/, specifically the Web Standard Tools (WST) is used in this tutorial.
2. Flex 2 Builder Eclipse Plug-In from http://www.adobe.com/products/flex/flexbuilder/
Create the Eclipse Web App Project
1. Create a new project as “Web > Dynamic Web Project”.
2. Give it a descriptive project name.
3. Uncheck “Use default” and set “Directory” to the root directory where the project […]

Directory Structure for Integrated Flex and Java Web Applications

This blog describes a proposed directory structure for web applications that contain a mix of flex applications, java presentation layer code, and java integration layer code.  From this structure you could easily build projects using ant or maven (preferred). 

Quick and Easy POJO Web Services with JBossWS

Here is a step-by-step tutorial explaining the quickest and easiest way to expose a plain old java object (POJO) as a web service.  This example uses jboss’s new web services stack (JBossWS-1.0.2.GA).  With this method you can quickly convert any java object into a web service.  For example, you could expose data access objects to a […]