Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I've been reading more about the Java cache and been wondering if one could extend it with a nosql system so that java apps across multiple systems can have a common cache; ie 10 app servers all running the same app on a distributed architecture behind a proxy could share a common java cache stored on a nosql system like memcached.
Does anyone know of anything like this?
The Java Cache API only defines a technology-agnostic API to access a cache from a Java application.
The main implementations are EHCache, JBoss TreeCache and a few other, but I fail to see why it wouldn't be possible to implement an adapter to use MongoDB, memcached or any other NoSQL database.
So technically, yes, it should be doable. But the API is still relatively new, so maybe those adapter will be implemented soon by your favorite database provider.
See here for the existing implementations : JSR 107 implementations
This is certainly a viable architecture approach. You might want to check out this article that provide a bit more details on how distributed caching can help distributing Java application:
http://www.cacheonix.org/articles/How_to_Distribute_Java_Application_on_Multiple_JVMs.htm
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Iam trying to make a comparsion table of some database features focused on databases that can be used as embedded (in process databases) with Java. I would like to have there a field with APIs that are usually supported by those dbs but i dont know what exactly to search for.
At this time iam looking if it has a support for ODBC, JDBC (in relational dbs), then some remote acces API (REST, Thrift – not sure if its remote access API or what exactly it is) and in Nosql dbs i usually find only some kind of native APIs for data manipulation.
Are there any others that you could recommend me? Iam not looking for some advanced technics or third party tools etc. Only basic things that are commonly used
All SQL databases that are used in Java processes rely on the JDBC API. ODBC is not relevant in this context and is used by processes that are not written in Java. Each Non-SQL database, including object databases, has its own API.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am designing an IT healthcare system for academic purposes. I would like to create a database in an ordinary Internet web-domain and a separate Java client-application.
Somehow I want the client to have access in the database through Internet. I am looking for the technology to implement that. I would really appreciate if you could share any ideas of how can I do that?
Giving direct access to the database over the public Internet is a discredited approach. Instead applications are designed as three-tiered, such that on the server side you have a dedicated application server which communicates with the database as needed.
There are many frameworks which make this task easier, such as Grails (lightweight), the Spring Framework (industrial-strength, quite heavyweight), or the Java EE platform (more heavyweight than Spring).
I would suggest developing locally.
Run your database on Vagrant or just a plain old VM and treat it like its an external database server.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
We’re working like hadoop big project. We’ve a problem.
We want to work on Java based CMS (Content management system). But this CMS must include Spring, hibernate, MySQL and must have Responsive interface (our library is twitter bootsrapt).
Our project usually quite big so, what can i do ?
What's your usage to hadoop? Is it just map and reduce? If so, I seriously recommend to write map-reduce part yourself. It's simple to code up as long as you have already object serialization and communication layer; and since you mention your project is big you probably have them already. Then the value of hadoop is just an interface and I am sure you can write it in more compact and adaptive way to suit your usage.
To me this is a typical case where a 3rd party lib gives you 20% of functionality you need while introducing 80% of its own rubbish. So I'd say just write your own.
BTW, if your use case is simple, you might also want to take a look at ForkJoinPool
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
what is the best hosting for java web application?
Amazon Ec2 - is to expensive (about 60$ per small instance a month)
Google Application - is not flexible in persistence and not fully support JDK
"best" for what purpose? The point of Amazon EC2 is that you can scale up easily and only pay for what you use.
If scaling is not an issue to you (i.e. you don't have many concurrent users and don't expect this to change quickly), then the best option is probably a virtual root server (offered by pretty much any general hosting provider these days). It offers maximal flexibility for a low price, but with limited performance, and it requires you to handle administration yourself.
javaservlethosting.com is pretty cheap if you work with tomcat and don't use hibernate. I switched over to cloud on softlayer.com after I got the info that I can't use hibernate. They have some pretty good deals but everything is over $60.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I found a post from a while ago that addresses a similar question but I think it's a bit outdated. I realize implementations of JPA tend to be more on the heavy/dense side, so if you know of any lightweight (non-JPA) ORMs I'll most certainly appreciate your input. I did see the answer about ActiveAndroid in the other post and am curious to know if anyone tried it out.
Update:
In the end, I decided to go with a more lightweight solution and chose DB4O. So far I've been very happy with my choice. It's extremely easy to use and requires a minimal amount of configuration. The website contains a wealth of information including sample projects and an in-depth tutorial that covers just about everything a developer might need to know about DB4O. Oh, and did I mention that it's free (unlike some other alternatives... coughActiveDroidcough)?
Regarding JPA implementations, there is at least a third party Dialect for SQLite for Hibernate. I'm not 100% sure but EclipseLink seems to be an option too (although SQLite is not officially supported).
But for Android development, I would definitely check ActiveAndroid.
Just in case, here are some other alternatives: jPersist, Ebean, Dreamsource ORM (have a look at the announcement on TSS).
ORMLite is not fully JPA compliant but it does support Sqlite on Android. It makes calls to the native Android OS database APIs to support its ORM functionality. We have a large number of Android users who are using it very successfully.
http://ormlite.com/sqlite_java_android_orm.shtml
BatooJPA is the only full featured JPA 2.0 spec compliant option. For mobile platforms, CPU consumption should be consider because of battery life limited CPU power etc. BatooJPA is perfect when full spec required and CPU resource does matters. For the SQLite case as far as you can provide a JDBC driver, Batoo JPA will do the rest.