application version update sniplets [closed] - java

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.

Related

Deploy a (portable) database Java server application [closed]

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.

SQLite database in memory [closed]

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.

Java/Scala Test collection framework [closed]

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 use a variety of tools for testing purposes: ScalaTest, JUnit, Specs2 etc.
I'm looking for a tool that is capable of:
Storing test results in a database
collecting test results
running them across servers
Has a simple UI with navigation
A perfect example is TestSwarm: http://swarm.jquery.org/, for JavaScript testing.
Is there such a framework available for the JVM world?
I suppose you could write your own framework based on Specs2. Specs2 returns Result of an assertion, so it's possible to collect those results together afterwards. You can store them in DB with a full class name. Your test harness would work like map-reduce in this case, mapping tests to different servers, and then at the final step you would combine those results and produce a report.
I don't know of any tool like that. What is a practical purpose of such a thing?

Track all Methods and Classes [closed]

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 project with many packages and classes. It is obvious that it will have many Methods too. Currently, i am using Netbeans7.0 IDE. Is there any program, API or way to track all the possible path/methods/options like tree structure of all the classes? I wish to see all the branches which starts from first Method.
So, basically, what you need is a call graph of your project? Call graphs can be generated either through static code analysis or dynamically as your code is executed. Both approaches are useful and both have their advantages and disadvantages.
Both the Eclipse and the Netbeans profiler are able to do this dynamically, as mentioned here.
For static call graph generation have a look here and here.
EDIT:
The Eclipse IDE also has the capability to generate a tree-like call structure using the Call Hierarchy tab, as mentioned here. NetBeans has something similar since version 6.5.
Give Understand a look.

Java Event Processing Framework [closed]

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 looking for a lightweight framework that builds on top of the Process Manager pattern:
http://www.eaipatterns.com/ProcessManager.html
I'm specifically interested in using this for doing event processing whereby I'm interested in the success or failure outcome of a particular event and passing a message on to another "stage" based on this outcome. There may be other outcomes aside from success and failure, so I want something that's a little flexible...
I'm not really looking for a heavyweight ESB to handle this sort of situation since it seems like complete overkill. Spring integration looks ok for this sort of thing. Can anybody recommend any other frameworks to help achieve this?
The alternative is to build something using the basic Spring framework...
The Apache Camel project implements the patterns from the EIP book. I think it does exactly what you need.
Camel can be used with Spring and can be deployed in several different containers, depending on your requirements.

Categories