Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a "basic" Java app that works somewhat like a server (listens to certain ports).
I want to add a database to the project so that I can interact with certain tables based on the data from the listened ports (basic operations - no alien-technology.
I am looking for a solution to implementing the database into the project so that there is no need of any "help" from outside of the app.In the end resulting and a "portable" app, that can be ran from other operating systems without any prerequisites (installing different services, etc).
I have seen solutions like H2, implementing MySQL services (way too complicated for what I need),Java GO, but I need something far less complicated, like C# and database connection to an Microsoft Acces database.
Any ideas?
You might want to look into JavaDB or SQLite. Both can be embedded into your application, and can be run fully in memory (no persistence at all) or backed up by files.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I’m currently developing code meant to interact with the API of the Bitcoin exchange with an algorithm deciding whether to buy or sell and all. However, I can’t have my laptop running 24/7, so I was wondering, if there exist another option, like some sort of online/cloud IDE for java, which had a workspace to handle files, and could run my program for me - possibly for a small fee? Thank you :)
What you are looking for is How to Deploy a Java Applet. Here is a nice tutorial.
http://docs.oracle.com/javase/tutorial/deployment/applet/index.html
If you want your applet to be available from anywhere, you will have to embed it on a page that is hosted on the Internet. Getting a page hosted costs money, especially if you don't host it yourself, but there are thousands of well-known companies that provide this service. I can't provide any advice on which one is best, for fear of being swallowed alive by StackOverflow.
Once you have a page hosted, you can embed your Java Applet by following this tutorial.
http://www.echoecho.com/applets01.htm
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
There are many frameworks to automatically update database schema's, Liquibase being a good example. This works fine for simple database changes like adding fields or changing the datatype, but when the change involves changing actual data, updating maybe involve executing business logic written in Java. Liquibase does support a java changeset, but usually (in order to have the database match the entities) Liquibase runs before the EJB services are up.
What I'm looking for is a framework that manages and executes Java sniplets, similar to Liquibase, but run separate.
You could use a second run of Liquibase that is executed after the EJB services start. In the second changelog, use CustomTaskChange implementations that do whatever buisiness logic you want.
The built-in Liquibase execution methods are built to run early in the process, but you can easily use the liquibase.Liquibase API to embed the new call to Liquibase in whatever code works best for you.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I need to find a way to run an SQLite database in memory, or some form of database that can host itself in memory. It is very performance orientated and I cannot afford the IO that a standard file-based system would use.
I originally went with SQLite is due to how keeps itself to one file and doesn't require an additional service to run, unfortunately I can't find a way to run it in memory though.
I've looked at options such as HSQLDB, although it doesn't seem to be what I am after.
To run SQLite in memory, just use the database name :memory:.
H2 database is an open source and pure Java database engine that supports in-memory databases.
Ditto for Apache Derby
Both can be run inside your app via embedded mode, instead of being run in server mode.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
Am building a restful web service which needs to populate data (from a parsed JSON object) into a cache.
Question(s):
What are the cheapest (preferably open source) and easiest to use cache systems that support Java, Web Service (Restful), and tomcat integration?
Do they have an expiration policy?
Do they have support for in-memory and / or file system persistence?
I am seeking something that doesn't require a big learning curve.
Thank you for taking the time to read this...
I'll put Guava Caching solution on the table which:
Is lighter than Memcached and EHCache
Has size/time/ref eviction policies
Lives solely in memory. If you are after built-in persisting capabilities the creators themselves point you to other solutions like Memcached in this section.
On top of that I'll add my personal experience that is easy to use and intuitive through the use of the builder design pattern as you'll find out.
You should use memcached, it supports all the three requirement you have listed. Memcached use in-memory cache. It's open source and very easy to learn.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need to do some data acquisition & would like to use Java to program my data acquisition application. Right now I am using a LabJack which has a Java wrapper for its driver & it's working ok for simple stuff but I need to upgrade to something real.
anyone aware of a data acquisition platform (NI or Measurement Computing or one of the others) that has Java device drivers available?
I've used the Phidget hardware before, but it's really hobby level. Worked a treat though.
I am currently developing for National Instruments hardware under Java, with the obvious drawback that NI doesn't support Java.
Also I'm taking advantage of an existing framework called JAW
http://www.aplu.ch/jaw/
With some reading, controlling the cards is a breeze. Note: It only works under Windows.
You might also want to check out this wikibook. I knew about Javaconn, but didn't know it had been withdrawn. I believe most of this hardware comes with serial interfaces.