Big project like hadoop [closed] - java

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

Related

Nosql Java cache extension? [closed]

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

How to save data of a small prog? [closed]

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 building a small java application that shall run locally on a system. The data I intend to input is little stuff like my daily expenses, a couple of contacts I have, and a couple of notes of things I want to remember.
To save the data for this matter I think installing a database like MySQL or Oracle would be an overkill. In my past projects I always used those databases.
How would I have to manage the data of a small program? Are there any ready to use solutions in the java world? Maybe with the possibility to use it together with JPA?
You should look into Apache Derby:
http://db.apache.org/derby/
or HyperSQL:
http://hsqldb.org/
They're both lightweight database engines that you can fire up on application start-up, ideal for smaller projects. They also both have Hibernate dialects for JPA.

Is there any ways in C,C++ to control the memory ram,registers according to our need? [closed]

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
Are there any ways in C and C++ to control the memory ram and registers according to our need? Eg. movement of data in ram from one location to other, changing values in registers, etc?
Is it possible in Java???
For memory management you should consider using a Memory Pool. Link.
Though you shouldn't be reinventing the wheel. Use a library instead that provides a clean templated interface to memory pools. Avoid malloc and memcpy as much as possible.
If you wan't to play with the registers you can include assembly code. Link.
I am not sure to understand your question, which is operating system, processor, and compiler specific.
With recent GCC you could do some of it (for instance, reserve registers to avoid them being used). And you could also customize the compiler (e.g. with MELT) to suite more needs. But such a customization means at least weeks of efforts.
You could also make a new backend in GCC (but this means months of work)
And recent standard C++11 library has notably std::allocator and a lot of memory management related stuff.

Java Functional testing [closed]

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 have a Java application that has a GUI for user interactions.
The GUI is implemented with SWT.
Now I want to make some Functional Tests for the application. As whitebox as possible.
I have been trying some frameworks like Maveryx, and SWTbot. But Maveryx is just a pain to configure and it didn't seem to integrate very well with a CI server. SWTBot I simply wasn't able to get it to find all the necessary classes after installing it on eclipse.
I would like to know what are other people using to test their Java GUI applications. And if possible to point me towards some tutorials about that frameworks.
Ours is awt/swing/java2d application . We use jemmy for it. According to the documentation it works with SWT as well. Please give it a try.
If you are willing to pay some money, Rational Functional Tester (very expensive) or Squish could be considered. Both are very good products, squish is significantly cheaper (or it used to be)

What is a good output format for Java app input? [closed]

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 currently need to resolve an issue with duplicated logic on web-based monitoring (Java) and a big legacy C server app.
For this I need to build new clients for the C app, but I have no idea what formats are good for Java to read.
Should I use XML, Json, or some other format?
The answer is completely dependent on your problem domain. Java has libraries available for reading XML, JSON and a host of other protocols.
You need to be asking questions like:
How much data will I be producing?
Does the data need to be human-readable?
Is storage size an issue?
Is the time to read / write the data an issue?
Do I need to support multiple, versioned protocols?
You can use either, JSON is the new standard for web-based messages and there are plenty of Java libraries to handle JSON efficiently.
There's no one stop perfect fit here, but maybe Google's protobuf is a good idea?
There's a native C++ compiler, which is probably of no use to you; there's an active protobuf-c implementation that you might be able to use, though.

Categories

Resources