7 Replies Latest reply on Jan 6, 2009 1:03 AM by (Gautham)

    Flex And LCDS

      Hello,

      For futur development, we need to choose a new Web oriented solution.
      Flex look's like as we need because it's open source, Cross-platform,
      AIR (deploy applications to the desktop), develop by Adobe, ...

      When i'm look on Adobe's solutions, i'm quickly lose :  Flex, LiveCycle
      Data Services Flex Data services, ColdFusion, ... plus components like AMFPHP.
      So, I don't know what i need.

      We want :
      - Use PostgreSQL 8 as RDBMS,
      - Flex as client,
      - Connected mode (sessions management),
      - Data push
      ...

      If it's possible, we want it without any server-side language (PHP, Java, ...)
      or use it as less as possible.

      On Web, there is a lot's of example but when we search database connection ...

      Cordially,
        • 1. Re: Flex And LCDS
          Peter Farland Level 3
          I would suggest looking into using Flex with LCDS 2.5.1 and its SQLAssembler
          feature for Data Services where you can configure a destination and simply
          provide the SQL for creating, retrieving, updating and deleting items directly
          in the configuration - so no server side code to be written.
          • 2. Re: Flex And LCDS
            Level 1
            Thank you for your answer,

            Is what the management of persistence and sessions with LCDS is
            possible? (without using java/tomcat/hibernate...)

            Cordially,
            • 3. Re: Flex And LCDS
              hi i m trying to use live cycle data services and java as back end but i get these errors when i try to get the data using fill method any idea where i m going wrong actually i m using data service and declare the service in service_config.xml and have the assembler class a service class and a java class to define the object and i get the following error
              [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8088/rajcon/messagebroker/amf'"]
              at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEve nt()
              at private::DataListRequestResponder/fault()
              at mx.rpc::AsyncRequest/fault()
              at mx.messaging::ChannelSet/private::faultPendingSends()
              at mx.messaging::ChannelSet/channelFaultHandler()
              at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at mx.messaging::Channel/mx.messaging:Channel::connectFailed()
              at mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::connectFailed ()
              at mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::statusHandler()
              • 4. Re: Flex And LCDS
                Hi All,

                I would like to build an Flex/AIR application that initially provides LDAP authentication.

                I am new to these Flex/Actionscript/DataServices however I have managed to get a nice datagrid querying & updating a MySQL Db from a Flex App using AmfPHP... Nice. I'm learning :-)

                My question at the moment is what is the best/easiest way to enable LDAP authentication?

                Could I use the following setup?
                Flex/AIR IDE, LiveCycle Data Services ES Express, LDAP server?

                Or do I NEED a j2SE server in there somewhere? or even a Coldfusion server?
                I would like to try and avoid the need to include j2SE or Coldfusion servers at this stage.

                Hope this makes sense.

                TIA
                Danny

                PS: Thought I'd started a new thread, as I didnt I will re-post (apologies if I shouldn't)
                • 5. Re: Flex And LCDS
                  Hi ,

                  when i trying to retrieve the data from lcds server through Flex HttpService then i am getting this client.Error.MessageSend error ,can anyone guide me how to resolve this problem
                  • 6. Re: Flex And LCDS
                    <b>Cannot get Data</b><br />Hello,<br />I having problem and im totally new to flex and cairngorm... here is my code snippet:<br /><br />im my java end:<br /><br /> List<Users> getAll() {  // from hibernate dao then return result which llist of users }<br /><br />in AS files:<br /><br />public class ListDelegate extends EventDispatcher<br />        {<br />                private var userService:RemoteObject;<br />                private var responder:IResponder;<br />               <br />                public function ListDelegate(responder:IResponder)<br />                {<br />                        this.userService = new  RemoteObject("userService");<br />                       <br />                        this.responder = responder;<br />                }<br />               <br />                public function getUserList():void<br />                {<br />                       <br />    var call : Object = userService.getAll();<br />   <br />                        call.addResponder( responder );<br />                       <br />                }<br />        }<br /><br />public class ListUserCommand extends BaseCommand<br />        {<br />               <br />               <br />                override protected function callDelegate():void<br />                {<br />                        var listdelegate:ListDelegate = new ListDelegate(this);<br />                        listdelegate.getUserList();<br />                }<br />               <br />                override public function result( event : Object ) : void<br />                {<br />                        this.modelHelper.onResultUser(event);<br />                               <br />                }<br />       <br />                override public function fault( event : Object ) : void<br />                {<br />                        var faultevt:FaultEvent = event as FaultEvent;<br />                        Alert.show(faultevt.fault.rootCause.toString());<br />                }<br /><br />        }<br /><br />public class ModelHelper<br />        {<br />                [Bindable]<br />                public var userlist: UserList;<br />               <br />                public function ModelHelper(userlist: UserList)<br />                {<br />                        this.userlist = userlist;<br />                }<br />               <br />                public function getUserList():void<br />                {<br />                        new ListUserEvent(this).dispatch();<br />                }<br />               <br />                public function onResultUser(event:Object):void<br />                {<br />                        this.userlist.listusers = event.result as ArrayCollection;<br />                }<br /><br />        }<br /><br />..and i use DataGrid to display datas:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"<br />        initialize="init()"<br />        creationComplete="loadAll()" ><br />       <br />        <mx:Script><br />  <br />  import com.test.flex.util.UserList;<br />  import mx.rpc.events.ResultEvent;<br />  import com.test.flex.model.ViewModelLocator;<br />  import com.test.flex.events.ListUserEvent;<br />  import com.test.flex.model.ModelHelper;<br /> <br />  [Bindable]<br />  private var modelLocator:ViewModelLocator = ViewModelLocator.getInstance();<br /> <br />  [Bindable]<br />  public var modelHelper:ModelHelper;<br />  [Bindable]<br />  public var users:UserList;<br /> <br />  public function init():void<br />  {<br />                        this.users = new UserList();<br />                        this.modelHelper = new ModelHelper(users);<br />                               <br />  }<br /> <br />  public function loadAll():void<br />  {<br />  this.modelHelper.getUserList();<br />  }<br /> <br /> <br /> <br />  <br /> </mx:Script><br /> <br /> <!-- mx:Label text="{modelLocator.test}"/ --><br /> <br /> <mx:DataGrid id="userlist" dataProvider="{modelHelper.userlist.listusers}"><br />  <mx:columns><br />  <mx:DataGridColumn headerText="ID" dataField="id"/><br />  <mx:DataGridColumn headerText="Username" dataField="username"/><br />  <mx:DataGridColumn headerText="Password" dataField="password"/><br />  </mx:columns><br /> </mx:DataGrid><br /> <br />       <br />        <mx:Button id="logout" label="LogOut" click="{modelLocator.modelWorkflowState = ViewModelLocator.LOGIN_SCREEN}"/><br /></mx:VBox><br /><br />..and the rest are straigthforward code. When I change the return value to String it works fine nut when put it back to List it display nothing or error i get but when i debug it i gets the results:<br /><br />11:20:14,459 INFO  [STDOUT] Hibernate: select this_.ID as ID1_0_, this_.USERNAME as USERNAME1_0_, this_.PASSWORD as PASSWORD1_0_ from user this_<br />11:20:14,464 INFO  [STDOUT] [BlazeDS]12/02/2008 [DEBUG] [Service.Remoting] Adapter 'java-object' called 'userService.getAll(java.util.Arrays$ArrayList (Collection size:0)<br />)'<br />11:20:14,465 INFO  [STDOUT] [BlazeDS]12/02/2008 [DEBUG] [Service.Remoting] Result: 'java.util.ArrayList (Collection size:2)<br />  [0] = com.test.flex.model.User<br />    id = 1<br />    username = eman<br />    password = password<br /><br />  [1] = com.test.flex.model.User<br />    id = 2<br />    username = test<br />    password = password<br /><br />'<br />11:20:14,465 INFO  [STDOUT] [BlazeDS]12/02/2008 [DEBUG] [Message.RPC] After invoke service: remoting-service<br />  reply: java.util.ArrayList (Collection size:2)<br />  [0] = com.test.flex.model.User<br />    id = 1<br />    username = eman<br />    password = password<br /><br />  [1] = com.test.flex.model.User<br />    id = 2<br />    username = test<br />    password = password<br />11:20:14,467 INFO  [STDOUT] [BlazeDS]12/02/2008 [DEBUG] [Endpoint.AMF] Serializing AMF/HTTP response<br />Version: 3<br />  (Message #0 targetURI=/3/onResult, responseURI=)<br />    (Externalizable Object #0 'DSK')<br />      (Externalizable Object #1 'flex.messaging.io.ArrayCollection')<br />        (Array #2)<br />          [0] = (Typed Object #3 'com.test.flex.model.User')<br />            id = 1<br />            username = "eman"<br />            password = "password"<br />          [1] = (Typed Object #4 'com.test.flex.model.User')<br />            id = 2<br />            username = "test"<br />            password = "password"<br />1.228188014466E12<br />(Byte Array #5, Length 16)<br />(Byte Array #6, Length 16)<br />(Byte Array #7, Length 16)<br /><br />What im missing here?<br />Thanks a lot.<br />Cheers.
                    • 7. Re: Flex And LCDS
                      How to communicate Flex with Html. When I closed the browser i want execute an event in flex application.Kindly help me to do this !