Java :: Sending Date From Flex To EJB Service?

Dec 8, 2010

I have a ValueObject in Java Source Code with a java.util.Date or java.sql.Date attribute and in Flex-AS3 have a DTO mapped by [RemoteClass] using a Date AS3 Type.When I set a date in Flex with 2010-09-05 format YYYY-MM-DD in DateField component and send it to Java, java shows 2010-09-04 there is a difference of a day from flex to java

I'm using Java EJB Service + GraniteDS + RemoteObject to comunication.

View 1 Replies


Similar Posts:


Flex 4 :: Front End Connecting To Java Jersey Web Service

May 25, 2010

I created a Java REST service using Jersey. I use three of the HTTP "verbs" GET, POST and DELETE. I want to create several prototype front ends for the service. After much research, a lot dating to 2008 and 2009, I have been unable to find anything remotely simple.My three options are:

1) resthttpservice. This project hasn't been updated in a year. The only activity are one off suggestions that individual users have implemented.URL...

2) Create an AIR application. This isn't unfeasible.

3) Writing my own socket level code but there is a security restriction with flash players and I need to implement a policy server.

I have already read the question posted about asking whether using Flex for REST services were worth it. That information is old as well. I want to introduce REST services to my company but Flex's limited support for HTTP PUT and DELETE are discouraging. My service also uses the Accept header to determine if JSON or XML will be returned to the client. I can't seem to change HTTP headers without doing socket programming.Is there an easy way to use Flex 4 with RESTful services that uses PUT/DELETE and the Accept HTTP header?

View 2 Replies

Java :: Push Data From Service To Flex Clients?

Dec 9, 2010

Since my service, I would like to push data (messaging).

@Service
@RemotingDestination
public class LoginService implements ILoginService
{

[Code]....

With this implementation, nothing to do ... clients receiveid nothing.

So, how I push data from a service like that ? Is it possible ?

View 2 Replies

Java :: Flex 4 Loader Having Status With Data Service

Apr 23, 2011

I have been working on a flex application with java, as i have used Life Cycle Data Service for communication, i wana know, is there any function of flex, where i can see the loading status in percentage, that how much record is being loaded.Problem is, if there is lengthy record, no body comes to know, whats happening with software, like in Comboboxes or Grids, users usually think it as a BUG in application, but ofcourse it is not.I need such graphical loader, which keeps on loading with proper status in percentage, until it receives all data from JAVA (SQL Server).

View 2 Replies

Flex :: Unable To Retrieve Value From Java Web Service Response In It

Sep 21, 2011

I am trying to read data from the java web service from flex mxml/action script, seems like the call i.e request/response is successfully but when unable to read the value from the response[code]...

View 2 Replies

Flex :: Air - Job Scheduling Service Library (similar To Quartz In Java)?

Oct 21, 2010

I am searching for a flex library for job scheduling. I know the Timer API, but this is not exactly what I am searching for. Here is (one of) my usecase for my AIR application:Try to ping to website xyz every 15 minutesEvery first monday of a month try connect to website abcdefgo I am searching for a library like quartz in java, just a small sweet library for executing cron(like) jobs.

View 1 Replies

Java :: Flex Accessing Https Service Of The Same Domain That Swf Is Loaded

Aug 2, 2011

I am developing a flex application with flex 4.1 sdk and java backend (runs on Glassfish 3.1 via http). For security reasons I decided to move my authentication process to https until a session id is obtained. Therefore I changed the filter settings to use ssl for login and logout pages(just two pages due to performance reasons. The data-size sent to client is large and I do not want to slow down the system). Glassfish forwarded these pages to 8181 port (which is HTTPS port). Everything is ok for the java part. However flex defines the 8181 port as a different domain and then problems arise. Due to flash's same-origin policy it cannot load the secured content. Normally a crossdomain.xml is the solution but I am accessing content of the same domain through a different port. What will be the solution ?

View 1 Replies

Java :: Spring/Flex/BlazeDS Messaging Service-adapter Not Called?

Nov 5, 2009

I have attached a service-adapter to a spring message-destination as follows:

<flex:message-destination
id="secured-chat"
send-security-constraint="trusted"

[code]....

View 2 Replies

Java :: Flex - LCDS Service Returning Null Asynctoken When Executed 2nd Time?

Dec 23, 2011

I'm developing a Flex application using RobotLegs, LiveCycle DS & Java.I'm trying to implement an update function, using LCDS, but I'm running into some strange behaviour:This is the ActionScript code within a RobotLegs' execute command, used to perform the update:

var token:AsyncToken = services.requestService.commit(new Array(model.currentRequestDetail));
responder = new AsyncResponder(resultHandler, faultHandler, token);

[code].....

View 2 Replies

Java :: Flex - Date Not Serializing Using BlazeDS

Sep 30, 2009

When I pass a Actionscript Value Object that contains a Date variable using BlazeDS it is not getting transferring as a java.util.Date object correctly. When the setBaseDatefunction gets called on the Java side the baseDate value is NULL. The weird thing is if I rename the variable on the Java side to private Date date; and create a public void setDate( Date date) function it works. The problem is I need to pass 2 different dates so I can't uses this work around.

Here are my 2 classes:
AS3
package com.shua.flex.valueobjects {
[Bindable]
[RemoteClass(alias='com.shua.valueObjects.myVO')]
public class myVO {
public var label:String;
public var endDate:Date;
[Code] .....

View 3 Replies

Actionscript 3 :: Xml Serialization - Convert Date To Java.util.Date Through A Xml?

Jan 14, 2011

I want to convert Date(ActionScript 3) to java.util.Date through a xml. First, write a user defined ActionScript class like this.

[Code]...

Finally, In server side of Java, I want to convert this xml to Java class like this for using JAXB Unmarshaller.

[Code]...

View 3 Replies

Java :: Sort Dd/mm/yy Date Format In Datagrid Using Flex?

Sep 28, 2010

i used array collection sort method like below . but still sorting wrongly . Any other solution for sort date using flex3

public function SortingDate(ArrColl : ArrayCollection, field : String) : void{
var sortA:Sort = new Sort();
sortA.fields=[new SortField(field,false,true,null)];[code]...........

it's sorting but day only sorting like

31/08/10
30/09/10
28/07/10

View 1 Replies

ActionScript 3.0 :: Difference Between AS Date And Java Date?

Nov 20, 2009

Why there are differences between AS Date and Java Date? I have a startTime field in an ActionScript class and also have a startTime in the related Java class. The time set in AS is new Date(2009,11,19,10,35,50); and then I find it has the value of 2009-12-19T10:35:50.000-0500 in the Java object.

View 0 Replies

ActionScript 3.0 :: Sending Data To Web Service

Apr 7, 2009

I need to access the database using web service through CS3 i have tried accessing the database using Asp.Net page and it successed when i change just the URL of the Asp page and replace it with the web service URL it reports to me the follwoing error: Error opening [URL] Load failed: HTTP Status = 500 Load failed: IO error: Error #2032: Stream Error. [URL]

and this error elimnates when i request the web service and not sending data in the URL as i send SQL query through URLVariable as follows: var variables:URLVariables = new URLVariables();variables.SQLQuery = "select * from Employee"; this code working with the .aspx page but when i use the web service it reports the previous error inspite the code written in web service is the same in the .aspx page.where in the web service i call a function in the constructor of the web service and this function gets the data from URL and then execute it as follows : if (HttpContext.Current.Request.Form["SQLQuery"] != null)

View 6 Replies

ActionScript 3.0 :: Sending Data To Web Service?

Apr 7, 2009

I need to access the database using web service through CS3 i have tried accessing the database using Asp.Net page and it successed when i change just the URL of the Asp page and replace it with the web service URL it reports to me the follwoing error:

Error opening URL 'http://localhost/Trial/DAService.asmx' Load failed: HTTP Status = 500 Load failed: IO error: Error #2032: Stream Error. URL: http://localhost/Trial/DAService.asmx
and this error elimnates when i request the web service and not sending data in the URL as i send SQL query through URLVariable as follows:var variables:URLVariables = new URLVariables ();variables.SQLQuery = "select * from Employee";this code working with the .aspx page but when i use the web service it reports the previous error inspite the code written in web service is the same in the .aspx page.where in the web service i call a function in the constructor of the web service and this function gets the data from URL and then execute it

View 1 Replies

Java :: Service Browser For AMF Calls ?

Dec 23, 2009

Has anyone used or is aware of a service browser to test AMF calls?I am looking for a tool similar to ZamfBrowser ( http:[url].... ), but one that works for the Java environment.ZamfBrowser is geared towards AMFPHP.The idea here is to provide a service browser, that allows developers to test Java services using the AMF protocol, without having to go through the Flex UI all the time. There has got to be something out there already for this, but I can't seem to locate anything..... It's kind of funny and strange that a service browser exists for AMFPHP but not for regular AMF calls in a Java environment.

I would imagine something exists under Blaze or LCDS? ...Trying to find it in the docs but can't seem to find anything ....The best alternative I can think of at the moment is to use FlexMonkey to record stuff, and then to simulate it using that....which is okay I guess but still sucks because you have to go in and create the Flex UI first, whereas with something like ZamfBrowser, you simply point it at the service calls,it tells the server-side developers if their code works, etc. generates the required as3 classes for you... and makes the integration process much easier in a large team.

View 3 Replies

Java - Organization Of Services In Service Layer?

Oct 11, 2011

I have a Java server application with a ton of different entities. So far, each entity top level entity has its own CRUD service. By top level, I mean the root of a tree of entities that can stand alone.

Now I am getting into the heart of my Flex client and find I am needing/writing many different queries. But where best to put these queries?

Say for example, I have a query to find all "foos" based on their associate with a certain "bar". Currently that query is on the "foo" service (findAllByBar), but I am finding that it would be very convenient to have it (also?) in the "bar" service (findFoos). On the other hand, I could also create a query service and lump all the queries in there.

View 2 Replies

Php :: Flex Service - Bind A Service To A Button

Feb 2, 2011

I am experiencing a strange problem when I want to bind a service to a button or something else:

[Code]...

I can add the services to the Data Services panel but I have two strange things:

1) when I want to configure the return type he doesn't let me create a new ValueObject type, I only get the bottom datagrid which states: Properties returned by the operation: Property: country_Id, provence_Id, city_Id, id_cdpc, district_Id with the related values on the right side. Why can't I create a new data type on the top?

2) When I accept this and want to add the service call to a button (drag&drop) I get the following error: Error occurred while generating code. Make sure that there are no compiler eroors and try again after reopening the file. Componentn type services.cdpc.CDPC not found... (ps: When I perform a Test Operation everything seems to be ok, I get the expected output values)

View 1 Replies

FLASH:: Data Integration - HTML - Switch Over To Hosting Service's Mailing List Manager For Sending Out Newsletters?

Aug 8, 2006

I have a Flash Web site for a small literary journal and am trying to switch over to my hosting service's mailing list manager for sending out newsletters. I see the HTML code for setting this up (available from my host), but do not know how to get it to work in my Flash site. (I did not build the site and know very little about Flash...I'm learning as I go in order to do updates.) It looks like the site currenly links to a PHP file to allow for sign ups to our newsletter. Can anyone tell me h how to get the HTML code to work on my site?

View 2 Replies

Flash :: Java - Sending Picture Client - Which Technology To Use

Mar 9, 2012

The question is about the following operation: Flash client sends TeX code (or file) to server. TeX is compiled into picture. Picture is sent back to client As far as I can see the best way to do that is to use flash+java remoting. But, there're several java servers (looks like BlazeDS and Red5 are the most popular). Which one do you advise to use for my purposes? Note that steps 1-3 are not final, picture will be changed after that (e.g. some marks will be made).

View 1 Replies

Java :: Error #2173 When Sending Gravity Message?

Mar 23, 2012

I have a problem with Map objects, while using Gravity. All messages works ok, except the ones which includes Map objects. They throw the following exception:ArgumentError: Error #2173: Could not read the object in the stream. though lass:org.granite.collections.BasicMap do not implement flash.utils.IExternalizable,but we know that it's Class:externalizable by its alias.I've found that this error occurs when you do not include granite-essentials.swc, but I don't think that's the case, because normal messaging using RemoteObject works fine, even with Map objects

View 1 Replies

Java :: Sending Server Side Messages From BlazeDS To All Browsers

Oct 29, 2010

I've run into a bit of a wall with sending messages from BlazeDS on the server to Flex clients. I have my adapters and destinations set properly (I think) messaging-config.xml and my streaming channel setup in my services-config.xml files. The messages work beautifully in Safari (Mac and PC) but no other browsers.

[Code]...

I feel like things are setup correctly in the channel definition but, perhaps, some of those user-agent settings are off (I have played with their settings, to no avail thus far).

View 1 Replies

Java :: Sending Server Side Messages From BlazeDS To All Browsers?

Nov 25, 2010

I've run into a bit of a wall with sending messages from BlazeDS on the server to Flex clients. I have my adapters and destinations set properly (I think) messaging-config.xml and my streaming channel setup in my services-config.xml files. The messages work beautifully in Safari (Mac and PC) but no other browsers. relevant Bits from messaging-config.xmlAdapter:Destination:

<destination id="FriendNotifierGateway">
<adapter ref="friendNotifierAdapter" />
<properties>

[code]......

View 0 Replies

Php :: Split Date Form Date Of String Formate Using Flex?

Nov 30, 2009

my date of string like (2009-12-03 21:05:00) date with time . so i used to store var newdate:Date=new Date(Date.parse(startdate)); but shows some errors.and also i tried to split string(date) used date function likevar datenumber:Number= (new Date(Date.parse(startdate))).getDate();

View 1 Replies

Actionscript 3 :: Flex - Date Serialization - Render A Null Date Value

Aug 24, 2010

Does anyone know how to get actionscript to render a null date value '000:00:00T00:00:00'? I am calling a web service that expects date fields in the SOAP xml. I need some of these dates to serialize as null and I can't see how to produce null. The closest value I can get is '1899-11-30T00:00:00Z'. Below is the code I am using:

[Code]...

View 3 Replies

Java :: Intercepting Date Objects Coming From BlazeDS And Adjusting For Timezone Differences?

Oct 27, 2010

I am working on an application that is near the end of its development cycle and has mostly passed user testing. We recently realized that having flex convert dates to the client's local timezone is not desired, as all of our dates are in EST and contain no time data. Since BlazeDS sends dates in UTC, this results in the dates being converted to the day before in timezones west of EST.

The best solution is to go in and refactor all dates to adjust for the timezone offset, but that is just not doable at this stage. Since all dates in our application don't care about time, I would really like to be able to intercept all Date objects that come across BlazeDS and adjust for the timezone offset.

View 1 Replies

Flex :: Create A Timeline From Date To Date In AS3?

Aug 25, 2009

I need to create a timeline between 2 given dates, ie:2006-01-20 - 2009-02-14

The timeline must be drawn on a given width (can be altered), ie: 600px

But I need to add markers, one on year beginning, and others 4 times during the year (each 73 days aprox)

View 2 Replies

Flex :: Date Displaying Wrong Date?

Sep 29, 2009

I am experiencing a very strange behavoiour of Flex Date object. My web service is written in .Net 3.5 and all object which I am retriving or updating have Creation Date (Date Type) in .Net code.

But when I am calling .Net web service and displaying data in Flex, Flex displaying a different Date than what stored in web service. When I update my object using Flex UI, every time update time is very different than actual update time set by .Net code.

View 4 Replies

Java :: Flex - Max Upload File Size For Java Using Remote Object (BlazDS)?

Jul 16, 2010

I tried with flex and java in the backend. In this, I am able to upload files till 100 MB using remote object (blazeDs) where we will read the file as byte array and send it to the java method. If the file size exceeds after that, then I get the run time error in IE.

View 1 Replies

Java :: Flex - Unable To Send MIDI File Name To Java To Playback Music?

Oct 27, 2010

I could play MIDI file where "filename" is a String type with "asd.mid" value. However, I tried to sent AIR's nativeprocess command to Java, it shown "could not read" error.

[Code]...

View 1 Replies







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