I'm learning how to use ADF to build a webservice based desktop application.
I already have the code that sync webservice data with local derby database(for cache) from exist project.
Is there anyway to access database directly via ORM/entity or something that ADF generated?
Is creating JPA persistence unit xml files & Toplink sessions a correct way coding with ADF applications?
(Not sure I've understood you correctly)
To create database connection:
Application Navigator -> Application Resources panel
right click on Connections folder -> New connection -> Database...
Then you create Application Module, put Entity Objects there and so on
Related
We are trying to deploy Camundas webapplications as standalone spring-boot application and also deploy .bpmn diagram and engine in another stand alone Spring-boot application. But only connect the two SB-apps via a shared DB or REST-calls, and still be able to update the task through Camundas webapplications.
We have managed to deploy them and connect them to a file based H2 database. So now we can do rest-calls to the .bpmn Spring-boot app and submit forms etc. and then make it show in the Webapps-tasklist/cockpit.
The problem is that if we try to submit the form through the tasklist, we get an error that it’s trying to look for a javaclass (which we have implemented in the engine-SB-application but not in the Webapplications-SB-application).
Is there any way to make it so that we can use the web-apps-tools and submit the form from there (without changing that the .bpmn diagram uses java-classes)?
Either through making the webapps update the database, or maybe through REST-calls?
We solved it by using Asynchronus Continuation.
A very good video about can be found here:
https://www.youtube.com/watch?v=Nx4I8lNMUs0
I used netbeans' automatic generation of entity classes from database and automatic generation of JSF pages from entity classes to build a simple CRUD web application.
I used glassfish server and java db.
Now I want to move the application to be usable on a usb stick for submission for a one time use.
How could i export/move the project with the data and configuration settings in place so the database will work with the project on another computer?
Any help would be much appreciated.
Please I intend to upload a small spring application I built to my git account. It uses tomcat server. What I don't know is that does the convention mandate that I upload my project together with the server or i upload the project alone and a person who intends to view the application downloads it and downloads his/her own server to be able to use the application? Here is an image file structure.
enter image description here
And another issue is this application makes use of a database I created using mySQL workbench. How do I now make this upload together with my database?
Basically if it is a pure Java / Spring application the one using it / downloading it must setup the application server and the database server. If you need any init scripts for your database you can add them to your project (e.g. SQL Scripts).
If you want everything to work out of the box, without requiring one to setup a database server and an application server, you should have a look at spring boot (ships with an embedded tomcat) and may use an embedded database like HSQL or SQLite.
Hope I could help
I have a java web application which i'm developing using a local embedded HSQL database. Is there kind of a servlet which I can plug-in into my application and expose it /dbconsole, where I can fire sql statements, inspect tables, fields and table data?
I think you can try H2 Database which is a fast java opensource database. It can be easily embedded and it has a build-in servlet (org.h2.server.web.WebServlet) for db admin usage. We have used it in our production several years and it is very stable.
Here's its web console UI rendered by org.h2.server.web.WebServlet:
I created and deployed a javadb-powered portable swing application.
The app creates the javadb database folder as expected if it doesn't exist.
Now the time may come when I would need to browse that embedded database folder like I would using Mysql Query Browser or something. How do I do this?
Any JDBC base query tool should be able to connect to the database as long as your application is not running.
A list of tools is available in the Derby wiki:
http://wiki.apache.org/db-derby/UsesOfDerby#GUI_Tools