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.
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 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.
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 have a Web Service and I'm trying to add a simple Web User interface with the ability of adding some text and uploading file. what is the simplest and easiest one to use and compatible with Java. I'm using eclipse to develop my application.
I don't need a lot of support I just want it to be easy to use.
I can recommend wicket (http://wicket.apache.org/) you won't have licence restrictions (it's an Apache licence) and it's a time resistent solution: JSF are too complex for simple use cases, and Struts is quite as complicated but a rather old technology. GWT is too complex and time conuming for small projects.
You can naturally use bare Servlets or JSPs if you're really in very simple use cases.
Best Regards,
Zied Hamdi
http://1vu.fr
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
Not sure if this is the right place to ask such question, maybe tell me where to move the question on another StackExchange site.
I'm evaluating cloud platforms and I have some business requirements to evaluate them against, so I'm trying to build small POCs for the products I found, but I'm not sure of which products I've included and excluded.
The PaaS I need is:
On premise: I have a private infrastructure based on VMWare
Java support: I have an IT dept that develops in Java language with Spring support
Can connect to local legacy services (DB2 via JDBC, IBM Queues and so on)
Complete: at least I need auto-scaling, monitoring, load balancing wth a comprehensive interface
Integrated (integrable) with IDE: eclipse or other Java IDEs
Integrated (integrable) with CI: automatable (scriptable) deployment to run with a CI like Jenkins or other
It seems to me there's much confusion among product offers. E.g. It's not always simple to verify if a platform is adoptable on a private data center.
Now I already have built two POCs and my attention is on these two products: vFabric and Stackato, but maybe I'm missing something important, so which are in you opinion the PaaS products that support the above technical requirements?
UPDATE
I also added to my list of viable solutions the following products/projects: Cloudify and Cloudsoft AMP.
I'm positively impressed by Cloudify and started to deploy it in a production environment for a limited set of applications.
You can also refer to cloud foundary. Since it is an Open-PaaS, it can be very useful for you and the things they don't have, you can create and contribute to them. So it will be win-win situation for both.
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 am looking for an open-source application/tool/technology which can show times of distributed request across distributed system.
I have found some wonderful stuff like AppDynamics, but they are all commercial. I don't need such a wide functionality, but simple request tracking. I have also had a look on this list, but I have some difficulties to understand it.
Could you recommend some solutions if you are experienced with APM?
i don't think that you can do full-featured profiling of distributed request across number of JVM's - AppDynamics from what i can remember understands the EE stuff - like calling DB, EJB, RMI, or remote webservice - however it still works in scope of JVM.
Isn't it suffient in your case just to use java profiler (like yourkit, jprofiler)?
Did you try the free version of AppDynamics. It's called AppDynamics LITE.
You can take a look also to EXTRAHOP free version. Maybe it is good enough for your needs.
Also you can try using a SaaS solutions such as NewRelic or Boundary. They have free accounts that could also be good enough for your needs.
Finally if you want to monitor the performance of any specific JAVA application, you can use http://www.moskito.org/. It's totaly FREE.
you can try 24x7monitoring
https://code.google.com/p/monitor-24x7/
it provides method level monitoring, SQL queries, business transactions...
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've used Mina and Netty, but now I'm in the market for a lightweight library that may also be used in Android. I prefer Nio or AsyncIo over standard io implementations.
Update 1
The lack of responses really makes me think I should write my own library. Right now I'm using raw NIO and its not a lot of fun.
You might try using some pieces from Jetty as suggested in this email. I really like Jetty because it's small, self contained, and you can use some or all of it flexibly.
Since this seems to be dead on arrival, I'll answer it by saying my custom IO library will be the best.
To answer your question, there is no one size fits all async library. Netty and Mina might be the closest to such a thing, but most projects may still have to contain some pure NIO/ASYNCIO customized solutions.
I maintain you are on the right track. The more experience you have with low-level NIO/ASYNCIO the more you will appreciate and be able to get the most out of the somewhat-less-low-level Netty.