I am working in Flex with Java. I have a question about Flex application running in Google app engine. Can we upload documents from a Flex client to Google app. engine blobstore?
Yes, you can.
If you have written server side code using Java (or Python), and using HTTP for uploading files to server. I mean that there is need to be an server side code, because you can't access database directly from Flex.
If you can create and submit multipart forms in Flex, you can upload to the blobstore. From Flex's point of view, there is no difference between uploading files to the blobstore and uploading them anywhere else. You do not access the blobstore in Flex - you just upload to a URL provided by your server-side code.
If you've tried this and are having specific problems, you should update your post with details.
Related
Background Information:
The organization where am working uses Java, Oracle ADF framework,Oracle db/weblogic server stack.
New Requirement
I have this tricky requirement for a new project to make the web application that I am building on to work offline also. As per the requirements a user should be able to click on a 'Work offline' button while in the 'online' mode and be able to get a local copy of the application/or page to their device.
And once the user complete the data entry in the offline version of the application downloaded to their local device, then the user should be able to click on a 'Submit' button and upload the local details to the server (ie. to the main production server. And it is to be done when there is internet connectivity).
The solution am trying to proceed with is as follows:
I build a std web application to work on the production online mode.
It will use ADF or /JSF with Oracle db.
I will build a simple application for offline mode which will reuse
most of the pages developed for online mode. But the database use
will be a lightweight one like hsqldb. And the whole application
will be bundled with a lightweight server like jetty.
The whole offline application and server will be bundled together as
an executable jar which can be downloaded and run from any device.
The local offline version of the app will have a 'submit' button.
And on clicking this button when there is internet conectivity then
we will make a webservice call to the production server, and submit
the data collected
My Questions :
Will my proposed solution work ? ...is there a better way to do this?
Is hsqldb the best lightweight embedded database for offline mode?
Is jetty a good lightweight embedded web server?...is there a better
one ?
Can an executable jar be run on any device like
mac,ios,linux,android,windows etc.
The approach I have followed is as follows:
I built my web pages UI with angularjs inside a normal html5 page
and hosted it on my weblogic server.
I wrote a appcache.manifest file for the html page describing all
the css/js/image files used by the application. So that if the page
is once loaded on to a browser then the page will be cached on the
browser.
I created restful services for exchanging data to my html page from
server. The data was passed in the json format and I was encrypting
the json payload using AES encryption. At the client side I used
cryptojs library to decrypt the data provided by the rest service.
how does cryptojs works
I used pouchdb javascript library for storing data provided by the
user locally onto the in browser database(pouchdb store data to indexedDB in case of chrome and firefox, it store data to webSQLDB in case of safari and other brwosers).
You can use ADF Essentials that is supported on GlassFish for the offline version.
(This will also reduce your license cost). You could use an Oracle XE database for the offline version. http://www.oracle.com/technetwork/developer-tools/adf/overview/adfessentials-1719844.html
I am creating an android application and I want that when user fill up the registration form in my android application then that data should be saved in remote MySQL database.But i want JSP and Servlet for this as middle level.
I searched a lot on internet but every tutorial shown on internet are using PHP. I don't want to use PHP at server side.
So is there any tutorial or resource for saving android application data to remote MySQL database using JSP and Servlet.
You usually call RESTful services from the Android App. The RESTful services can be written in any language of your choice. Your Android client is one which is communicating with the REST Backend. If you are using ButtonView and on the click of it some update or retrieval are supposed to be performed then REST based services are best.
I would recommend this approach.
Look at the way servlet is deployed from the below blog :
http://hmkcode.com/java-servlet-send-receive-json-using-jquery-ajax/
Hit the servlet URL in a browser.If u get the JSON response, the same call can be leveraged from the mobile client building the URLconnection and rendered in the app using some Parser at Mobile end.
Hope this meets the requirement.
I'm planning to setup an Enterprise application where the Java standalone client can upload and download .doc and .odt documents from an application server (WildFly). I'm evaluating different solutions such as:
Using a Servlet as bridge to upload documents and download using an HttpConnection.
Using a REST Web service to upload and download the document
Using an EJB and passing the document as argument and returning the document from the EJB call
I think all of the above solutions should somehow work, but which is more fit for a Desktop application, which also needs some level of authentication during the communication?
Thanks
I agree all of the above solutions should work, however instead of using plain Servlets, why not using HttpClient libraries from Apache which make fairly simple to upload and download files ? There is even a library written on the top of HttpClient which is named Awake file which is opensource and allows secure upload and download of documents from Java Desktop applications and Android clients as well.
Hope it helps
I am developing a web application in java/j2ee, in this project I am having two screens which are built using flex. My requirement is while clicking a table in java screen I have to send a string value to the swf file and load that flex page with that string value.
I am confused with how to send data from java to swf file.Please help me out in this issue.
Flex provides multiple ways to interact with java such as
BlazeDS Java object access
Http Services
Web Services
Follow this link to learn more:
http://www.adobe.com/devnet/flex/flex_java.html
I am using google app engine and eclipse to do up the web server and capture images and images data from an iPad app, it means when the user use the iPad app to upload images and it can be save on a web server instead of saving on the iPad. So How do I do up a web service in eclipse using java and it can be link to google app engine and the google app engine can link to the iPad App? I really appreciate that someone could help. Thanks.
Read up about RESTful web services. Basically make an HTTP request from your iPad app to get data from the server or put data on the server.