Adobe Dreamweaver Forums



Last 10 THreads :         Making constraints on a symbol... (Last Post : sirkibble2 - Replies : 0 - Views : 1 )           »          Creating a boundry in the stage... (Last Post : fazstp - Replies : 2 - Views : 3 )           »          Director or Flash? (Last Post : Sean Wilson - Replies : 1 - Views : 2 )           »          DW8 Activation not working (Last Post : moonliner - Replies : 0 - Views : 1 )           »          Re: Mouse capture won't activate (Last Post : robertnagle - Replies : 0 - Views : 1 )           »          help! my FB3 has gone insane! (Last Post : peteandrus - Replies : 0 - Views : 1 )           »          help! my FB3 has gone insane! (Last Post : peteandrus - Replies : 0 - Views : 1 )           »          How come the html is being displayed, and not the link (Last Post : Skaterstu - Replies : 0 - Views : 1 )           »          Another way to accomplish this (Last Post : Andy-K - Replies : 2 - Views : 3 )           »          HELP! Cannot upload files in DW CS4 (Last Post : dan@hoppernet.org - Replies : 6 - Views : 7 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: ,



Reply
  #1 (permalink)  
Old 09-05-2008, 06:17 AM
namala
 
Posts: n/a
Diggs:
Default Flex and Java

Hi EveryOne,

I want to know one thing about flex and java, Is there any
way to communicate with java without using server?? If There is any way please
let me know.

Thanks in advance.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-05-2008, 06:40 AM
greg h_
 
Posts: n/a
Diggs:
Default Re: Flex and Java

Hi namala,

Flex apps can be built to target either the Flash Player (generally run inside
a browser), or the Adobe AIR runtime (installs as a native app on Windows, Mac
and Linux today).

There is an open source AIR-to-Java Bridge project called Merapi. Details
here:
http://www.merapiproject.net/

If Merapi does not address your requirement, can you provide us more details
about what you requirement is? For instance what is it that you need to do
when you write "Is there any way to communicate with java without using
server??"

Please post back regarding whether the above answers your question, and if
you find it helpful :-)


Best regards,

g

Reply With Quote
  #3 (permalink)  
Old 09-05-2008, 07:04 AM
Ben Yee
 
Posts: n/a
Diggs:
Default Re: Flex and Java

You call always use a HTTPSerice component to make HTTP requests from
Flex.

Cheers
Ben

On Sep 5, 3:08*pm, "namala" <webforumsu...@macromedia.com> wrote:
> Hi EveryOne,
>
> * * * * * * * * * * I want to know one thing *aboutflex and java, Is there any
> way to communicate with java without using server?? If There is any way please
> let me know.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * Thanks in advance.


Reply With Quote


  #4 (permalink)  
Old 09-05-2008, 12:30 PM
namala
 
Posts: n/a
Diggs:
Default Re: Flex and Java

Hi

Thanks for the reply, My requirement is so simple ,i will
generate some values inside the java (Servlet ) and i will return that values
to the flex application and i will plot them using charts.

Do u have any idea??

Reply With Quote
  #5 (permalink)  
Old 09-05-2008, 12:58 PM
SujitG
 
Posts: n/a
Diggs:
Default Re: Flex and Java

Hi,

If you are using a servlet to perform the logic, then you need a servlet
container to invoke the servlet and pass on the arguments required. If you
definitely need a servlet for your computation logic to work, you might have to
use the server servlet based web server.

If you can manage to get your logic to work with out a servlet you can user a
normal POJO and consider Merapi as Greg suggested.

Hope this helps.

Reply With Quote
  #6 (permalink)  
Old 09-05-2008, 04:44 PM
wyattbiker
 
Posts: n/a
Diggs:
Default Re: Flex and Java

Have you thought of using sockets?
Reply With Quote


  #7 (permalink)  
Old 09-05-2008, 10:42 PM
greg h_
 
Posts: n/a
Diggs:
Default Re: Flex and Java

Great thought wyattbiker!

Link here to a related post (with code) from Thomas of lessrain.com:

AS3 + Java: Socket connections to ports below 1024
http://www.blog.lessrain.com/as3-jav...ts-below-1024/


And a follow-on regarding Merapi w/ AIR ... here is a quick demo video:

http://www.merapiproject.net/index.p...icle&id=51&Ite
mid=84
and you can go full screen with the same version of this video here:
http://www.youtube.com/watch?v=EGqMAGCH5Hc

So, in cases where a Java app is running local with an AIR app, the demo video
above highlights that it should be straightforward for the java app to pass
generated values to a flex charting application running in AIR.

But namala, SujitG is right. If your Java app is a servlet, then you should
be able to use standard RPCs to communicate with Flex apps in either Flash
Player or AIR. shrugs.

Note: The AIR runtime is a wrapper on Flash Player. Flash Player in a
browser is sandboxed. Flash Player in AIR is not sandboxed.

Please post back regarding whether the above answers your question, and if
you find it helpful :-)


Best regards,

g

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 02:30 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk