I need to write values from form in flex to an oracle database. I know i will be using the blaze DS bridge but I can not understand how to send all the parameters at once to my java class which connects to the database. I have established the connection and I am being able retrieve values from java to flex but not vice versa. Can someone help.
Download Blazeds turnkey server from the site.
http://opensource.adobe.com/wiki/display/blazeds/BlazeDS
In tomcat\webapps\samples\WEB-INF\flex-src
Extract flex-src see the sample testdrive-update.
Related
Neo4j have recently added a BI connector tool (neo4j.com/bi-connector) which can return relational data from your graph database to your business intelligence tool such as Tableau. The question is can i send SQL queries to this connector assuming i have added the jar file to my java application class path? If yes, which APIs should i use to send this SQL query to the driver?
I'm using Neo4j4.0.
For neo4j.com/bi-connector, if you look at the document PDF that you get when you download it, on page 10 where they show how to establish a connection you'll see that you get a connection object. After you have that, you have a standard JDBC connection which is a Java interface that tells libraries how to talk to a SQL database. There are a lot of different tools that use this interface, it's kind of user preference. A common one is JOOQ.
I had created an java application which uses jdbc to access database,but for this i have to externally put mysql server on using xamppp,but i want to access database without externally making server on,so that my customer need not to bother abot this.He can just open application and store data on database.
Please help i really need this..thanks in advance
If you want to use an embedded database, see here
There is also an article about autostarting mysql with XAMPP, see here
The search function will help you to find further informations.
I'm trying to build a flash app that communicates with derby database without any JS, XML or any intermediate stuff. I've read about SQLConnection (adobe reference ) instance but dont quietly get if it's able to do same with derby.
I am quiet familiar with JSON, JAVA EE but newbie to flash development. Help would be really appreciated.
If that's not possible I'd love to try JSON Post requests to servlet ( which whill ofcourse get the stuff from db ).
No. As BotMaster said, SQLConnection only works for a SQLLite local connection. If you want to connect to any other DB technology, the standard procedure is to have what they call a Middle-Tier (Java,PHP,RoR,PHP) backend that manages the connection to your chosen DB tech.
To make this work, you would have to have a Java Web Container with the Derby stuff setup on that side. Your AS3 application would then communicate with the Web Container through whatever format you desired (AMF, Json, Raw HTTP call).
I want to know how to use php MySql with Android application for get and post the data through android application. I know the JSON Parsing as and when creating database in php with JSON format.But here is creating in MySql.So i don't know how to work with.Can someone help me please.
Here is snap shot of PHP MySql Screen .
There is no direct connection between Android and MySql & PHP.
In your screen shot you see phpMyAdmin this is just a UI for MySQL database (there are more).
To achieve your goal you need a server, for example wamp which contains Apache, MySql & PHP.
With PHP and MySql you need to create a web services.
After you create these services you can write an Android application that call these services.
You need to write a webservice which will get the data from your mysql database and send it to your android app.
First of all you need a server (Ex: Wamp). WAMP is acronym for Windows, Apache, MySQL and PHP, Perl, Python. WAMP software is one click installer which creates an environment for developing PHP, MySQL web application. By installing this software you will be installing Apache, MySQL and PHP
Second
Write a php script on your server which can retrieve the required data from the MySQL database. Encode the retrieved data inside a JSON object and send it back to your app.
This tutorial excellently illustrates what you are looking for. Hope it helps.
URL: http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/
Thanks!
To connect to the MySQL database you need to have something like a connector.php and it would be good to use a class for writing, reading, updating and deleting the data.
Then call to JSON.
JSONObject json = jsonParser.makeHttpRequest(url_create_entry, "POST", params);
I am devloping an android application using java.now i want to place db on remote server,and want to access and upgrade the database.
Can anyone help me?
It's at least a challenge to write an android application that would be able to talk with a remote database. AFAIK, there's no jdbc on android.
So your "remote database" needs an additional business layer, some sort of public API that you can use for your CRUD operations. Otherwise you'd have to port jdbc and a jdbc driver for you database for android...
A very simple (and pretty dangerous!) API would simply accept SQL strings (from a trusted source!), forward this SQL to the database and respond with the result set (csv format, for example).
Typically, you won't allow remote connections to your db from an untrusted source.
Instead, think about what operations you want to execute on the database. Then write an interface with all the required methods (addEntry, removeEntry, etc).
On the client side (android), create a class that implements this interface by delegating to the server (HTTP requests or whatsoever).
On the server side, implement the same interface with JDBC access to your db and set up a simple server process that delegates the requests (HTTP or whatever) to this implementation. That's it.