AIR application and database connectivity (using JAVA)

Hi
I am creating AIR application and I want to connect with the database using java database connectivity (JDBC).
Can any body give me the some suggestion on how to how to do that.
Please give me any reference for creating AIR application for database connectivity with mysql/access.
Thanks
Sameer

lots of serching on the google and found that For AIR applications either you use Webservices(JAVA/PHP/.Net) or you can use SQLLite.
Not found any method for direct connectivity with the database using JDBC.
If any one found direct connecivity withe database using JAVA then please reply.
Thanks

Similar Messages

  • Jsp and database connection using bean

    * I want create a bean to handle database connectivity.The
              <jsp:usebean> tag uses
              no argument constructor ..so I cannot pass the userid and password to
              the constructor.
              So how can I create a database connection when the user_id and password
              will be a part of parameter ?
              * Now I'm opening database connection in the jsp scriplets. Everytime I
              refresh the
              jsp page a new connection is created ? Is it not going to choke the
              database ? I cannot use connection pool because every user logs in with
              different userid.
              Thanks
              

    You can pass your arguments in this way:
              <jsp:usebean id="myBean" scope="page"/>
              <jsp:setProperty name="myBean" property="userId", value=<%= user_id%>/>
              <jsp:setProperty name="myBean" property="password", value=<%=
              user_password%>/>
              of course, in your bean class, you should create two setter methods,
              setUserId and setPassword.
              Hopefully, this will help you.
              sonia WEN
              Chiranjib Misra wrote:
              > * I want create a bean to handle database connectivity.The
              > <jsp:usebean> tag uses
              > no argument constructor ..so I cannot pass the userid and password to
              > the constructor.
              > So how can I create a database connection when the user_id and password
              > will be a part of parameter ?
              >
              > * Now I'm opening database connection in the jsp scriplets. Everytime I
              > refresh the
              > jsp page a new connection is created ? Is it not going to choke the
              > database ? I cannot use connection pool because every user logs in with
              > different userid.
              >
              > Thanks
              

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • (IMP)Application module and database connection

    Hi,
    How application module pooling and database connection pooling is working ?
    Currently i m facing a problem like if i am creating 10 browser session then it doesn't mean that i'll have only 10 db sessions. While closing the browser session of application module time out respective db session is not removed.
    In this case, invalid db session are created in bulk which is crashing database sometime. We have writter script to kill those session periodically but in this case if application module is accessing such dbconnection then we are getting session killed error or not logged in error.
    To over come we need to bounce the server (middle tier).
    Is there any proper way to solve this or am i doing something wrong ?
    Please let me know if you need any more details.
    Thanks in advance
    Devang

    Thanks for your prompt reply Ricky.
    I just found out that in some of the JSP pages in application
    <jbo:ReleasePageResources/> is not written. Should this problem arise because of this?
    could you please tell me how can I release page resources in UIX pages ?
    Datasources.xml file content
    <data-source class="com.evermind.sql.DriverManagerDataSource"
    name="AITDS"
    location="jdbc/AITCoreDS"
    pooled-location="jdbc/pooled/AITPDS"
    xa-location="jdbc/xa/AITXADS"
    ejb-location="jdbc/AITDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username=<USERNAME>
    password=<PASSWORD>
    url=<URL>
    inactivity-timeout="30"
    />
    bc4j.xcfg file
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="GsaServerModuleLocal">
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCDataSource>jdbc/AITCoreDS</JDBCDataSource>
    <jbo.project>gsa</jbo.project>
    <AppModuleJndiName>oracle.appsit.gsa.server.GsaServerModule</AppModuleJndiName>
    <java.naming.factory.initial>oracle.jbo.common.JboInitialContextFactory</java.naming.factory.initial>
    <ApplicationName>oracle.appsit.gsa.server.GsaServerModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    Let me know if you need any more detail.
    Thanks in advance
    Devang

  • We have applications that can only use Java 6.x. Java 7 is not supported. Can Java 6.x be installed on OS X 7 and 8?

    Our workplace (a large research university) uses both Win and Mac based desktops/laptops. We are about to deploy an enterprise-wide ERP system whose components are web-based. The components the components are support I.E. & Firefox browsers, so this is not a problem for the Mac OS X users. The components only support Java 6.x. Users of OS X 10.6.x and lower can use Java 6.x since Apple supports this. However, OS X 10.7 (Lion) and 10.8 (Mountain Lion) seem to only support Java 7.x which is not supported by our new ERP system.
    Is it possible to install Java 6.x on OS X 10.7 and 10.8 desktops/laptops?  I've viewed http://support.apple.com/kb/HT5493 but that doesn't specifically answer this question.

    Thank-you everyone for your feedback. I think this is the story. If anyone can verify, thanks!!
    Mac OS X 10.6 and lower has Java 6.x as part of the operating system and does not need to be separately installed (nor CAN it be separately installed).
    Mac OS X 10.7 and 10.8 (“Lion” and “Mountain Lion”) do not have Java in the operating system. Therefore, users who need Java must go to java.com and install it themselves. However, only Java 7.x can be installed.
    Upgrading from OS X 10.6 or lower to OS X 10.7 or 10.8 turns off Java (since it was part of the older OS which the user is replacing with a new OS). However, it seems that the older version of Java is still there, simply turned off. Running a bash shell (UNIX) script (http://support.apple.com/kb/HT5559) can remove Java 7.x and re-activate Java 6 to the latest version, Java 6.37. But this only works if the Mac ever had 6.x in the first place (i.e., was running OS X 10.6 or older).
    Newer Macs (purchased after July 2011) came with OS X 7.x (“Lion”); after July 2012, 8.x (“Mountain Lion”). It may not be possible to install Java 6.x on these models without downgrading to OS X 6.x (10.6.8 is the latest version) which runs Java 6.37 for Mac.
    An alternative is to configure your desktop/laptop as dual boot (e.g., with Paralles or Fusion VM) so you can run Windows-7 for apps that must use Java 6.x or, alternately, have OS X 10.6 and OS X 10.7 or higher on the same machine.

  • Database appication using java...?

    Iam a database programmer using Microsoft Visual Basic 6 as Frunt end & Oracle 8 as back end. Iam a new in java programming & here i also want to make Desktop application using Java JDBC . One of my teacher say that java is basically made for internet i.e web development. If you want to make database application then it is still better to use Microsoft Visual Basic6 instrad of java further more java database is not so much strong as compaired to Visual basic 6...
    Iam so much confuse that is java is soo much poor that it does not have a stronge database connectivity with Oracle or Access just like vb6. If yes then it is currect that java language is basially develop for programmers who want to development for the web .
    Please guide me in this regards ...being a database programmer what do u suggest me that should i still use VB6 due to good database connectivity with Oracle or Access.
                                       Thanks in advance.

    VB actually has a data-bound table control, so the JTable example isn't the best choice for showing off Java's flexibility.
    I've used VB and I've used Java, and you'll start to suffer using VB when you have to do something that doesn't have a pre-built control for it already. I'm not incredibly impressed with Java on the desktop, but so far I can easily write classes for any functionality I've needed.
    After writing a build program for a newspaper's web site and archive in VB against an Oracle database, I never, ever want to use VB again. It was just too much of a struggle to get the API to do what I wanted.
    Java's database access if faster and more flexible, and again, it is much easier to customize your functionality in Java than in the cookie-cutter world of VB.
    My rambling two cents.

  • Enabling Usage Rights for Web Service and Database connectivity

    We are looking for code that allows us to enable web service and database connectivity rights into a form. We are using LiveCycle Forms 7.2 to render the XDP and merge data. Because we are merging data into the form, it has to be reader enabled through the  code everytime it is presented to the user in our application.
    usageRights[0] = com.adobe.document.pdf.DOCUMENT_SAVE.value;
    usageRights[1] = com.adobe.document.pdf.FORM_FILL_IN.value;
    usageRights[2] = com.adobe.document.pdf.FORM_EXPORT.value;
    usageRights[3] = com.adobe.document.pdf.FORM_IMPORT.value;
    usageRights[4] = com.adobe.document.pdf.FORM_ONLINE.value;
    Anyone's help would be greatly appreciated

    This topic was cross posted.  See responses here:
    http://forums.adobe.com/message/2111421#2111421

  • Performance with MySQL and Database connectivity toolbox

    Hi!
    I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
    I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
    My questions are:
    1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
    2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
    3. Is there any way of adjusting the MySQL setup to achieve better performance?
    Thank you very much for your time.
    Regards,
    Mattias

    First of all, thank you very much for your time. All of you have been really good support to me.
    >> Is your database on a different computer?  Does your loop execute 61 times? 
    Database is on the same computer as the MySQL server.
    The loop saves 61 values at once to the database, in one SQL-statement.
    I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
    The test database table that I add data to is created by a simple:
    create table test(aa int, bb char(15));
    ...I'm sure that this can be improved in some way.
    I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
    Any more advise will be gratefully accepted.
    Regards,
    Mattias
    Message Edited by mattias@hv on 10-23-2007 07:50 AM
    Attachments:
    front panel 2.JPG ‏101 KB
    block diagram.JPG ‏135 KB

  • I run Dev 6i on Windows 2008 R2 64-bit,the forms are working fine after connection to the database but the reports continue to request for username, password and database connection string every time i try to open a report.

    I receive REP-0501: Unable to connect to specified database. I run developer 6i application on windows 2008 r2. I have applied the nn60.dll and nnb60.dll files to the \BIN directory. The forms are working fine. The reports will only display after the correct user id (username, password and database connection string) is supplied. This is happening to all attempts to open already complied form. Pls, help.

    If you are connecting to an Oracle 11g database, remember that by default the passwords are case sensitive. To disable that, run
    ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;

  • Launching air application like adobe connect desktop

    I will like to launch my adobe air application like adobe connect meeting room launches the desktop app

    Thanks.
    reinstalling and clearing my temp dir appears to have worked !
    Awesome.

  • How to create database connection using DB2Driver in JDeveloper 10.1.2.1.0?

    I am trying to create a JDeveloper/Data Connection using com.oracle.ias.jdbc.db2.DB2Driver. The driver is registered from a User Libraries: DataDirect JDBC. I have the following class path for the library:
    E:\DataDirect\3.4\lib\YMdb2.jar;E:\DataDirect\3.4\lib\YMbase.jar;E:\DataDirect\3.4\lib\YMutil.jar
    I have no trouble configuring the connection but when I test it and I got ‘No suitable driver Vendor code 0’. What’s wrong? I have successfully created several database connections using Oracle thin driver. This is first time I am using a third party driver. Has any one successfully create a database connection using the com.oracle.ias.jdbc.db2.DB2Driver?

    Hi
    Since the error points to the unavailability of the driver class,can you double check your library claspath entries again.
    I just tried a DB2 connection using the following properties and the connection went through fine:
    Driver class name: com.oracle.ias.jdbc.db2.DB2Driver
    URL: jdbc:merant:db2://<host_name>:50000;DatabaseName=SAMPLE
    Thanks
    Prasanth

  • HT204053 i just brought new i phone 5 yesterday and now i can see all paid applications and i dont use or have credit card also now how i can buy applications which are important for me? can i buy them online? or use debit card

    i just brought new i phone 5 yesterday and now i can see all paid applications and i dont use or have credit card also now how i can buy applications which are important for me? can i buy them online? or use debit card and trust me all my friends are regretting buying phone because of this problem.Kindly help.Cant it can be deducted from our mobile charges?i would be much easier then

    You can buy apps using iTunes Gift cards without needing to register your debit card.
    http://store.apple.com/us/personalize/itunes

  • AIR Application and Installer Settings

    Hello,
    I have installed the Adobe AIR extension for Dreamweeaver
    CS3. However, whenever I click Save on the "AIR Application and
    Installer Settings" screen I get the following error and the air
    app is not built.
    quote:
    While executing onClick in AIRSettings.htm, a JavaScript
    error occurred.
    Any help would be greatly appreciated! I'd really like to get
    started building AIR apps!

    Having exactly the same problem on Dreamweaver CS4.
    Can anyone help?

  • I can not get any updates and therefor not use Java as it only run updates for Mac 10.7. and later? How do i get the updates to install and use Java?

    I can not get ny updates and therefore not use Java, as it only run updates for MAC 10.7. and later. How do i get the updates to install and use JAVA ?

    In Snow Leopard you update Java from Software Update (in the Apple menu). You can check your version by opening Terminal and typing
    java -version
    (don't get creative and type anything else)
    The latest version is 1.6.0_65.

  • Downloading images and audio file using java

    Dear All
    I have a directory on my webserver which contains images,audio files and many other data files.
    I want to download all the file but the problem is when i download image and save it, it is not viewable. I dont want to use Image class as i may have to downlaod audio files too. Please guis which stream shouldi open to download any kind of content using same code.
    Thanks in advance. And if u have some example please let me know
    Regards
    Jafery

    downloading images and audio file using java -------------------------------
    how to write it back to dataoutputstremI don't understand what you are talking about.
    Server: DataOutputStream -> Client: DataInputStream -- the two is a pair.

Maybe you are looking for

  • Totals in report header?

    I am using Crystal XI to develop a fairly simple financial report.  One of the requirements for the report is to have a copy of the totals located in the Report Header section.  It does not seem to be as simple as just putting the running total field

  • PDF document looks different in Adobe Reader 8.1.2 than in Acrobat Standard 6.0.6

    When I saved a PDF document in Acrobat Standard 6.0.6 and later opened it using Adobe Reader 8.1.2 it has stray characters (or rather little rectangles taking up the space of one text character) in different places on the page. Opening the same docum

  • Why is my macbook pro running so slowly all of a sudden?

    Just recently my 13" Macbook Pro started to run very slowly. When I search something on google, the spinning wheel will pop up as my cursor and remain for about 30 seconds while I am unable to do or click on anything and if itunes is playing in the b

  • InDesign CS4 fails to bold (CMD-B) a specific font

    I have the following fonts installed (.OTF): Kepler Light Semicondensed Caption Kepler Bold Semicondensed Caption Kepler Light Italic Semicondensed Caption They all show as available and work if selected from the menu. CS4 properly switches between t

  • DP performance Problem

    I'm facing some performance problems to my SCM-DP. I suspect this is related to BW statistics. Due to this I disabled the active default flag from A to I in transaction DB21 only for BW tables like /BI0/*. I run daily the program /SAPAPO/TS_PSTRU_TOO