On Fri, Jun 13, 2008 at 2:44 PM, tosisodia <[EMAIL PROTECTED]> wrote:
> hi guys,
>
> I am trying to create a POS (point of sale) application which would be
> deployed at one system only. The back end logic (in nascent stage) is
> written in java/spring/hibernate, but I want my GUI to be in FLEX/AIR.
> So far my understanding is FLEX cannot communicate with java without
> use of some web server. Since a POS appliance is very low ended I do
> not wish to use any server. Is there any way I can make FLEX
> communicate with POJO. I am very new to flex, so it would be helpful
> if you could provide some examples too.

Hi Raj,

You will have to create a server side in Java and then make Flex/AIR
communicate with your server side.
Since I have created a POS in Flex+Java, I would like to share my
experience with you. First, the communication between Java and Flex
should be just like any ordinary Flex+Java application. Where you will
have troubles is when you need to print from a specific Computer that
has it's own POS printer. That part was the trickier one. In order to
solve that problem, I had to create a print server. Since I was using
Java, I just created the print server in Java. This print server would
have a mapping of printer port to ip. So, whenever a request is coming
from a certain IP, the server knows which port to send the print
command to.

On the server side, I recommend you either use BlazeDS or the Hessian
protocol. Since I have developed the application in Flex 2, I decided
to use the Hessian protocol, which is relatively fast and easy to
setup.

I hope this information was useful.

Fidel.

Reply via email to