Results 1 to 6 of 6

Thread: Flex Directly To JdbcService

  1. #1
    Join Date
    Apr 2010
    Posts
    78

    Flex Directly To JdbcService

    I am starting now Flex . I ask myself a lot of questions . That is just stupid take an example , the addition of members. The form is done in Flex. For now I manage my member in ActionScript , I have a User class and UserFormEvent. Suppose I now save this limp member in a PostgreSQL database. How can I contact the JDBC , ActionScript , in J2EE ? Where can I find info? Any idea.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Flex Directly To JdbcService

    In the world of java web frameworks , it is one that has emerged in recent years : Spring . Adobe recognized him , because it is relatively simple to configure BlazeDS to tell it to use Spring as a container of Java classes . But he'd have to manage the configuration of one side BlazeDS and Spring configuration to another. A few months, Spring has proposed a new intiative to simplify integration with BlazeDS. In this note we propose to create a small project that will help you evaluate this new solution.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Flex Directly To JdbcService

    At the webapp , add ( drag and drop ) the following libraries in the lib :

    * driver for your database
    * spring.jar (in the / dist Project Spring )
    * webmvc.jar - spring ( in the / dist / spring project modules )
    * org.springframework.flex. - 1.0.0.RELEASE.jar ( in the / dist project flex - spring -integration )
    * cglib - nodeps - 2.1_3.jar (in the / lib / cglib project spring )
    * com.springsource.org.codehaus.jackson - 1.0.0.jar ( in the folder / project projects/ivy-cache/repository/org.codehaus.jackson/com.springsource.org.codehaus.jackson/1.0.0 spring -Flex - integration)

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Flex Directly To JdbcService

    You must specify all the classes you want to make the methods available to Flex . This is done by defining the bean in which it specifies the full name of the class , and the name of the destination ( id = " candidate " ). By tag it specifies that this bean will be exposed to Flex. So, no need to configure the remoting -config.xml file as you would in a conventional BlazeDS project. Finally , it is necessary to modify the services-config.xml file (located in WebContent / WEB -INF / flex).

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Flex Directly To JdbcService

    PureMVC is a framework containing all the design patterns from Java world . This is a multilanguage solution rather specifica Flex . For example, event handling is not supported with the native principle that prevents flex manage dataBinding . By cons , PureMVC is very effective for the management modules for all classes can be multitone . Cairngorm is not a true MVC, but rather an architecture that allows the separation layer and it becomes limited when we want to use it with Firefox (This is due to the problem of ServiceLocator is a singleton) . By cons , it is perfectly suited to the management of Events.

  6. #6
    Join Date
    Feb 2010
    Posts
    669

    Re: Flex Directly To JdbcService

    You need to define an interface that contains all the requests . This interface must extend the interface java.sql.BaseQueryAnd each method must be annotated by the annotation @ java.sql.QueryOr by @ java.sql.Update. Both annotations allow to associate a SQL query to the method. For example, to define a method that returns all elements of the table user_info.

Similar Threads

  1. Better SVG support in Flex?
    By Aaron o in forum Windows Software
    Replies: 5
    Last Post: 14-07-2010, 12:55 PM
  2. Flex and SOAP 1.2
    By Dev-Datta in forum Windows Software
    Replies: 7
    Last Post: 12-07-2010, 02:19 PM
  3. Flex 3 or Flex 4 Training
    By Sindu in forum Portable Devices
    Replies: 6
    Last Post: 10-07-2010, 02:58 AM
  4. Flex 3.4 SDK in Flex Builder 3 plug-in
    By Vivan in forum Software Development
    Replies: 5
    Last Post: 09-07-2010, 11:59 PM
  5. Suggestion for Flex 2.0
    By Lashawn in forum Windows Software
    Replies: 5
    Last Post: 04-03-2010, 10:30 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,206,895.29182 seconds with 17 queries