i need to retrieve data from salesforce with java, but i would like to avoid use of API.
Is there any other way to get salesforce data from java application?
thanks to all
You have four primary options for integrating with Salesforce:
Use the REST API
Use the SOAP API
Use Heroku Connect to sync the data to a Heroku Postgres database
Use a third-party integration vendor that has support for Salesforce
Related
We are trying to get live configuration data from our kubernetes cluster. Therefore we would like to read the configmaps from each of our services.
Is there a way to exctract this data with a spring microservice which runs alongside the rest of the services?
Or are there other (better?) ways / tools to get this information?
Using Kubernetes APIs you can get the configmaps you need. I am not familiar with the Java client, but here it is:
https://github.com/kubernetes-client/java
You can retrieve a list of configmaps and their contents using these APIs. Your application will need a cluster role and a cluster role binding to allow it reading from configmap resources if you're using RBAC.
To extract information you can just query the Kubernetes API, likely in your case using the Java Kubernetes client. Likely the biggest issue you will face will be ensuring you have read access for the namespace(s) that the ConfigMaps are in.
The bigger question about a 'better way' is trying to understand why you want to read all of the ConfigMaps for your applications. The goal you are trying to accomplish will guide the solution.
In my project need to create the following architecture:
Front-End application is a web site resource that will combine HTML+React technologies.
Back-End is a java application that will be connected to Mongo DB to operate with data.
Now, in the middleware should be placed Node.js. And after reading a lot of info on the internet, I have now some confusions regarding this.
As I understand Frond-End will be routed to node.js (and now the question is it Express.js-- the same thing or it's different) which is also connected to Mongo Db and Java application(this is doing all logic).
Can someone explain me should use express.js with the integration of node.js in order to route to java server application?
If you want to use a middleware. Nodejs can help you do that in a lot of ways, you can use express.js so that you won't have to do more request/response parsing work. And when you want to connect to your java server using nodejs, you can also integrate that by calling the java server API endpoint by using some http library like axios then you can directly communicate to java server app to directly communicate to the backend mongodb.
But your Front-End application can also directly communicate through your backend java by creating a REST API. And store all your business logic in the java REST API.
I am new to writing JavaEE REST Jax rs web service and I am seeking for a solution to hold/manage all data passed between users/pages and my rest web service without storing them immediately to database?
I am transporting entities/dtos in JSON and only when user clicks on save button in the page, the data shall be stored in the database on application server. What options do I have here? Any ideas? Design pattern or so?
I read the REST services shall be stateless, so what's best practice on this?
You can use java cache systems like JCS or google guava
Java cache system
Google guava
or if you are using client/server model DB you can use in memory database like SqLite for cache
Sqlite
I am importing some information (includes accounts and contacts)
Anyone have advice on the best methodology for doing the import?
Any experience with this import in specific or importing data into Salesforce in general would be appriciated.
First, you should decide is it one time migration of data, or it's iterative process which is an integral part of your solution.
In first case you can use any ETL tools that supports Salesforce integration. There are a lot of them - Talend, Pentaho Kettle, Jitterbit and many others. You can find more information about on Awesome Salesforce page.
In second case you need to implement integration API. Salesforce provides few approaches for API:
REST API - Access objects in your organization using REST
SOAP API - Integrate your organization’s data with other applications using SOAP
Bulk API - Load or delete large numbers of records
Streaming API - Provide a stream of data reflecting data changes
in your organization.
I want to use GAE datastore to store my data but instead of the java API we want to use the JSON API and making requests through spray.
But before I can even do any request I need to obtain an access token.
I can't figure out how this is done with either the Java API or any other means. Is there a way to obtain an access token which can then be used for the JSON API (through spray)?
Like many Google services, the Datastore API uses OAuth for authentication. The easiest way to use it is with one of the Google API client libraries.
Java: https://developers.google.com/api-client-library/java/
Java + Datastore: https://developers.google.com/api-client-library/java/apis/datastore/v1beta2
The documentation for the client does a pretty good job of explaining how OAuth works and how to get started calling APIs by registering your app with the Console.
(I'm not familiar with spray, but I assume you'd be able to use the Java client from Scala.)