Use Servlet As My Backend Using A Flex Application?

May 8, 2011

I have developed a Flex application. I have also developed a Java servlet program for an Access database using Tomcat. How can I use that servlet backend for my Flex application using HTTPService ?

View 1 Replies


Similar Posts:


Flex :: Blurring And Disabling Background While Reconnecting Application To Backend

Sep 6, 2011

My Flex 4.5 application has many users from Russia and Ukraine with poor internet connections and Socket connections often interrupt and have to be reconnected.

Currently I set currentState to "offline" on IOErrorEvent.IO_ERROR and Event.CLOSE events and display just 1 component in that state:

<mx:ProgressBar indeterminate="true"
horizontalCenter="0" verticalCenter="0"
label="Reconnecting..." labelPlacement="center"

[Code]....

View 2 Replies

C# :: Flex To Communicate With C# Backend?

Jul 9, 2009

What is the best way for flex frontend to communicate with backend writted in C#? The only communication channel in HTTP, so no custom sockets.I used SOAP in the past, but am concerned about performance since the large overhead of xml, and this application I'm currently working on will be pretty data intensive.Anything that supports easy setup and transparent marshaling/unmarshaling is OK.Is there something as BlazeDS for .net?

View 2 Replies

Flex :: BlazeDS Servlet Not Responding Through Proxy?

Jan 25, 2010

I have a problem using Flex with BlazeDS on a Tomcat 5.5 through a Proxy (Apache). I already searched for it but didn't find answers which solved my problem. I hope you guys can help me out. Our scenario is the following: Flex-App using BlazeDS to communicate with our Dataservice on a Tomcat 5.5.The Webapp is balze enabled and the services config contains channel definitions like the following:

<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://xxx.xxx.xxx.xxx:8180/myDataService/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint">
</channel-definition>

[Code]...

View 2 Replies

Java :: Send Objects From Flex To Servlet?

Dec 6, 2010

This is my method in actionscript

var urlVars : URLVariables = new URLVariables();
urlVars.myname = byteArr;
var urlReq : URLRequest = new URLRequest('MyServlet');

[Code].....

How do I recieve the byte array on servlet ?

Also the byteArr above comes from java side,

byte[] byteArr = aMethodWhichReturnsaPDFByteArray();
HttpServletResponse response = FlexContext.getHttpResponse();
ServletOutputStream os = null;

[Code].....

View 3 Replies

C# :: How To Serialize Objects In Flex For Backend

Sep 26, 2009

We are developing an app with a Flex frontend and a C# backend, connected through web services. We are using the FLex Builder 3's Web Service Manager to autogenerate the webservice classes. The problem araise when Flex serialize our objects, for example, when we have a Number property with no value, this is serialized as NaN, and our backend doesn't know about NaN. Another example is when we serialize a cyclic reference, we get a stack over flow exception. I know in java, for example, you can configure the way xstream work with cyclic reference... So, the question is, can we change the way Flex serialize the objects so C# can work with this frontend? Is there any issue we should know about how flex serialize objects?

View 4 Replies

Flex :: Session Management With Java Servlet Using Httpservice

Jun 14, 2010

I am new to Flex. I am just wondering how to manage session and cookies for logging in, logging off in Flex? I am using Flex HttpService and Java servlet.

View 1 Replies

Java :: Send An Array Of Objects From Flex To Servlet?

Apr 29, 2011

I have a collection of Objects in an ArrayCollection in my flex page.

What is the best approach to send this data to a Java Servlet?

The object in the ArrayCollection is a VO that consists of an id and message for now. I want a solution that is scalable in case more properties are added later on.

View 1 Replies

Actionscript 3 :: Pass A Date Object From Flex To A JSP Servlet?

May 3, 2011

I am passing some parameters as POST to a Servlet from my Flex WebApplication. I am able to pass and retrieve strings properly. I used new Date().getTime() in my flex code and tried passing the timestamp variable hoping to parse it at the servlet and convertit into a java.util.Date object. But i am getting a NumberFormatException when i try to parse the variable from the string that i got from request.getParameter.

View 1 Replies

Ajax :: Flex - POST To Servlet: Null Parameter

Jun 27, 2011

I'm working on a flex application and I need to call some data with a synchonous method. After some research, I've found a code from adobe that use ajax and external interface. That great. the code from adobe

When I send data with the GET method, the servlet read the parameters and print some infos (to check). But when I send data with the POST method, the servlet recieve the request, but the parameters disappeared.

[CODE]...

View 1 Replies

Flex :: Connect UI To A Unix Backend Server?

Sep 23, 2011

Im working on a project with the following basic needs:

Need to invoke a Flex Webapp in a new Tab from another Webapp in Java/Jsp.This Flex UI must be connected to a unix backend to show the backend operations on the UI.The unix backend server has telnet operations and SSO

View 1 Replies

ActionScript 3.0 :: Httprequests In Flex Page To Access A Database On The Web Or A Servlet?

Nov 11, 2008

Can you make httprequests in flex the same way one does with AJAX? I would like my flex page to access a database on the web or a servlet.

View 2 Replies

Flex :: Send Error Message From Servlet To FileReference When Download?

Jul 19, 2011

I use fileReference.download() to download files. The fileReference send request to java servlet.In servlet, some error may be checked. For example error - 'File not found'. I want to send the error to flex side. I tried lots of methods,but fileReference in flex can't receive them.Such asresponse.sendError(HttpServletResponse.SC_NOT_FOUND, "File not found");r PrintWriter out = resp.getWriter(); out.print("File not found");It seems fileReference can't triggers event 'DataEvent.UPLOAD_COMPLETE_DATA' and'HTTPStatusEvent.HTTP_STATUS'.

View 1 Replies

Toad :: Get An Id Of Last Inserted Record In Backend And Display In Flex

Apr 4, 2011

How to get an Id of last inserted record from backend and display the same with success message as "RECORD INSERTED SUCCESSFULLY AS" +Id in flex...am using Toad for sql server.

View 1 Replies

Java :: Flex For Chart Based Reporting Having Oracle Backend

Nov 24, 2010

My only experience with Flex is some limited reading over the web. What i am wondering is if i want to use Flex or some variant of it for generating reports, specifically Charts, coming off a Java/Oracle backend can i accomplish that in an environment where the streaming media (we cannot play videos on our systems at work) is turned off? Also, are there any other restrictions revolving around using Flex for reporting in the form of charts? Currently, we use Jfree Chart API to develop charts but just exploring an alternative.

View 2 Replies

Flex :: Show Success Message From Backend And Display In Frontend?

Apr 20, 2011

How to show success message in frontend....when a record is inserted in backend.

View 2 Replies

Flex :: Simple File Upload Using UI And Spring/Hibernate/BlazeDS Backend?

Jul 13, 2010

I'm trying to implement a simple application which uses Flex on the front end and a Spring/Hibernate application on the back end, with communication between the two going over a BlazeDS channel.

I'm seeking direction as to the best and/or simplest way to approach this. I have the UI set up in such a way that the user is presented with a file chooser in which they pick the image file they want to upload. When this is chosen and submitted (as a form submission) then the server side should receive the image file data as well as some related metadata such as a description and date, then populate a Hibernate entity/POJO with the image file data and related metadata, and then persist the entity/POJO into the database.

I have found some examples of how you would do a file upload and download using servlets here and the FileReference class (here and here) but these don't appear to address the problem in a way which leverages BlazeDS and/or Spring/Hibernate. I want to put the image file data and related metadata (description, capture date, etc.) into a value object within the Flex application and then send this over BlazeDS to a service provided by my Spring/Hibernate application running on Tomcat. In this service I want to extract the image data (both the actual JPG/PNG/GIF data and the related metadata such as description, etc.) from the value object sent from the Flex app into an entity/POJO which is then persisted via Hibernate in my database.

Can this be done, and if so what's the best way to go about it? Am I mistaken in assuming that if I use BlazeDS then I am somehow bypassing the need to provide HTTP-based services such as servlets on the server side and instead I can use my Java services as "RemoteObjects"? Is there necessarily a one-to-one mapping between Java POJO/entity class and the Flex value object class when making this sort of transfer? If so is there a tool which creates corresponding Flex value objects from Java POJOs or vice versa.

Update: Some code to make this more clear:I have this as my value object in Flex:

package valueobjects
{
import flash.utils.ByteArray;
[Bindable]

[code]....

When I set a breakpoint in the method above and look at the image variable it looks to be empty, so I'm assuming that the transformation from the Flex value object to the Java POJO did not go as expected and that there's more to it than just adding a RemoteClass alias in the Flex value object class.

View 1 Replies

Flex :: Is There Init() Method Like Servlet Init() Only One Time Execute

Jul 25, 2011

Flex having any init(), destroy() method. Like Servlet init()method will run at Application initialize and never call it again if Refresh the Page also.

View 2 Replies

Actionscript 3 :: Write "Intercepting Filter Pattern" Like Java's Servlet Filter In Flex?

Feb 10, 2011

I want to know how to write "Intercepting Filter Pattern" like Java's servlet filter in Flex.

And I want to insert it into the classes which have a role of server communicating.

View 1 Replies

Flex :: Adobe AIR Application To Receive Back Events From Native Windows Application?

Oct 8, 2010

I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?

View 1 Replies

Actionscript 3 :: Resizing Container On Resize Of Application Window In Adobe Flex/AIR Application?

Mar 4, 2011

I am working on an Adobe AIR Application. The size on Application window is 800X600 and is contains border container and border container contains many controls. What I want is to if user re-sizes the application then that container should also be re-sized according to scale. i.e If user maximizes or minimizes the window then that border container should also be maximized or minimized respectively.

View 3 Replies

Flex :: Come Back In Main Application On Click Of Logout Button Which Is In Application's Component?

Aug 4, 2011

How I will be back in Login Page after click of logout which is in application's component.

Project.mxml

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"

[Code]....

View 2 Replies

Flex :: Delete Application Storage Directory Instance / Data When Uninstalling Any Air Application?

Dec 22, 2011

how can i delete storage directory instances or folder while uninstalling any air application. In my application when i first time run my application, application copy some data from application directory to application storage directory. now i want to delete all data and application directory folder also while uninstalling application.

I am doing that because when i launch any update then application is accessing old data which conflict with my application new features.

View 1 Replies

Flex :: Gui - Switch Between Different Applications(mxml File With Application As The Root Tag) In A Big Application?

May 16, 2010

I'm new to flex. Now I'm writing an flex application. I plan to split my application into some MXML files(Application as the root tag). How can I switch from one mxml to another?BTW, what is the best practice for design large flex application? Just one MXML Application and many MXML component or many MXML Application?

View 1 Replies

Actionscript 3 :: Using External Xml Data In A Flex Application Without Compiling The Source Into The Application?

Jul 15, 2011

I want to read xml data to a mxml application from a xml file on my filesystem. The example I found was for AIR,link2, link3. But I want to target the Flash Player runtime. If I use the the tag, I can do it; however the xml compiles into my swf. How can I retain the xml file in my release build?

View 2 Replies

Flex :: SystemManager.addEventListener Of Sub Application Is Not Working In Main Application?

Mar 31, 2011

i used systemManager.addEventListener in sub application...... it is working well....but when i load sub application into main application through swfloader it doesnot working..

View 1 Replies

Ios :: Embed Adobe Air / Flex Application Inside A Standard Application

Aug 29, 2011

I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well. Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application? While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.

View 1 Replies

URL Of Servlet In AC_FL_RunContent?

Nov 16, 2009

The instructions I read for using AC_FL_RunContent, say to leave off the file extension of the swf file, e.g.: AC_FL_RunContent(..., 'movie', 'some'); So that it will embed some.swf. However, I need to serve the swf from a servlet, e.g. /blah/SomeServletName. How can I do that? I tried changing the javascript of AC_RunActiveContent.js, so it doesn't manipulate the file extension. In other words, so I could use:

AC_FL_RunContent(..., 'movie', 'some.swf'); But, it displays nothing if I use the servlet path, instead of a path that looks like a file name, e.g.: AC_FL_RunContent(..., 'movie', '/blah/SomeServletName');

View 1 Replies

Flex - Application.application.nativeWindow.activate() On Windows?

Dec 8, 2009

I have an AIR application with a system tray icon. When clicked it shows and activates the app. This is working as expected when the app is hidden (docked), however if I select another application so my app is in the background clicking on the system tray icon does nothing.

Oddly I also have a contextual menu on the system tray icon, which has an option to restore, this calls the same event handler as ScreenMouseEvent.CLICK, yet works.

I expect it's something to do with the contextual menu changing the focus, perhaps it's a bug in how AIR works with the system tray, perhaps it's just something I'm missing. Would be good to know if that's the case.

View 1 Replies

Flex :: Launch A Separate Air Application Through My Current Air Application?

Sep 1, 2010

I've been trying to launch a separate Air Application through my current Air Application.Both apps are compiled using the Adobe Air 2.0 SDK. The methods I have found so far involve passing the Publisher ID in addition to the Application ID, but I believe the Publisher ID became redundant past Air 1.5.3? Below is my current implementation whic seems to correctly ascertain the Air Application's version number, but when I try to launch it, nothing seems to happen.

private static var _air:Object;
private static var _loader:Loader;
private static var appID:String = "someOtherAirApplication";[code].....

I have changed the app-config.xml (app descriptor) on the application I am trying to load to allow browser invocation.The version number of the app descriptor of my application I am trying to load is "V1" which the versionDetectCallback seems to pickup. If this is the case I would expect to be able to launch it but this doesn't seem the case.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved