Collect Data from DBMS_PIPE using Java - java

I am currently working on a project where a lot of users will be making changes to our data and that rest of the clients are suppose to see data as soon as it updates. I have implemented web sockets to broadcasting the data the problem is we are using Oracle DBMS_PIPE as whenever data is changed in the DB now I was wondering if there is some api or some documentation which tell how to collect data from DBMS_PIPE using Java. any suggestions?
Thank you
F. Irfan

Related

One api for fetching one data or one api for fetching multiple data togetter?

I got a problem on how design the webpage api as the image I attached.there is 8 sections(as red boxes marked) of data should being displayed in one webpage . how to design api for this page? One api for fetching one data or one api for fetching multiple data togetter between frontend and backend?
I think it's better one API for fetching multiple data together between frontend and backend. Afterwards you can manage the data as you want in the frontend. If you want I try to get you a small demo if you give me more details. What frontend and backend framework do you use?

Sync SQLite DB on android studion with MySQL DB on web server

I am developing an android app that measures the radio interface parameters of a network periodically, stores the data in SQLite DB and transfers the data stored to MySQL DB on a web server. How can I make this possible?
I've done some research on this and found only one usable option, which is to make a web service using json or xml to pull/push data between the two databases. You could create a database link between the two, but this is not advisable.
There are numerous questions with a more detailed scope for this issue and you should be able to find one that fits your use case. If not, ask a new question after this research with more details and what you've done so far.

what will be the efficient way to expose large JSON parsed object in java to the UI?

I have a java listener which live streams the feeds from social web. I need to display these stream instantly on UI (AngularJS) as it created. What will be the best practice tp achieve it?
Writing a JSON file and calling it from UI?
Dumping the stream to Queue and from queue to UI?
or any other way to implement it fast and efficient would be helpful.
My suggestion would be to use NodeJS for the backend instead of Java. If you do so You use socket.io to move data instantly from server to browser
Your server side code running on Node.JS will be able to retrieve the data from the social sources, and immediately push the updates to the connected client in real time, so your angular code on the browser won't need to poll the server frequently to get updates. Once the client gets the updates it can display it to the user in real time.

Pulling data from Java application to Salesforce, where should i start?

I'm new in programming, and I'm trying to do a something like this.
I have data(Objects, Fields & Records) in a Java based web application.
I need that data on salesforce.com. How do i achieve this? by diggin in stack for an hour i came across couple of solutions(A part of it though).
Using data export option in Salesforce, which is again manual, i dont know if there is a automate process.
Using SOAP api or Partner API
To get the objects : describeGlobal()
To get list of fields: describeSObjects.
Any ideas ? or suggestions ?
Thanks in advance.
You Can use SOAP API to load data into salesforce if the record limit <50000 . In case you want to load huge amount of data in salesforce, you can opt for a BULK API. For SOAP you need to have the Enterprise wsdl and for bulk - its Partner WSDL.
1 - Data export functionality provided out of the box by salesforce allows your organization to generate backup files of your data on a weekly or monthly basis depending on your edition. It is mostly used for backup purposes.
2 - Is the upload process something triggered from the Java application itself ?
or you need some periodical data dump between your webapp and salesfoce ?
In the first case you have to use the SOAP API interface,directly inside your java code.
find below a good recipe from the cookbook:
http://developer.force.com/cookbook/recipe/calling-salesforce-web-services-using-apex
In the second case you can export your data into a csv file from your java app and load it in salesforce using the Dataloader. This process can be easily batched periodically.
We have experience with using SOAP API. I would suggest downloading soapUI tester and pulling the Enterprise WSDL from Salesforce, to get a feel for how to insert the data.
Also keep note of the governors and limits that SF imposes, in case you start trying to send data OUT of SF as well.
Hello Everyone I have used bulk api of salesforce.With the help of bulk api We can fetch and insert upto 10000 record in one batch .So you can go with bulk api

How to access online mysql database in android?

I have created an online database about the restaurants and I need to access this database through my android application, so that I can display the data to the users after filtering. My application does not need to update the database, but my problem is how to connect to my online mysql database and provide it to the users? I have looked on many suggestions on this site as well as on others, and I just found I have to use JSON parser while accessing but do not how to do it.
The best solution is provide a public API, managed for example with PHP, which delivers your database data filtered and displayed as your Android application needs.
This link might help you . http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/
Just get an understanding of JSON parsers and how it can be used in android for retrieving data from database on server... you can write webservices in php..
You need to provide a server side solution that the Android application can speak to. PHP scripts are a good way to go, that can directly interface with the MySQL database, and return results to the device.
You can then be creative with the PHP script, by sorting the results etc, and providing a more comprehensive solution by taking away some of the processing from the Android device, and doing it server side where battery life isn't as much of a problem.
You simply need to implement web service calls on the Android device, simple GET/POST requests over HTTP suffice depending on what you intend to do. Have a look into REST APIs for guidelines on how to implement properly.
You can easily add a PHP script to the same server as the MySQL database for this

Categories

Resources