I am considering using the Quartz framework to schedule the run of several hundred jobs.
According to their API, jobs can be scheduled to run at certain moments in time but not to run one after the other (and stop a chain of jobs if one fails).
The only recommended methods I was able to find are:
Using a listener which notices the com...
I am inserting a row in one table say appcapacity using stored procedure at every 1 min using timer task in java. I am monitoring that table in admin side as chart with two column values say (TIME,FILESIZE) as x and y respectively. ie. in client side by using Google visualization API.
table : appcapacity
TIME FILESIZ...
Hi all,
I don't like JSF but I need to solve this problem with it, I am working in "pure" JSF.
So this is what I baisicly need but I don't know how to accomplish it with JSF:
<c:set var="total" value="0"></c:set>
<c:forEach var="item" items="${cart}">
<tr>
<td>${item.product.name}</td>
<td>${item.product.price}</td>
...
I'm looking for a reliable java api for wiimote. and it should run under windows xp. does anybody here know one?
...
I am a c++ programmer but new to the java world. I have to display the xml data to a jtable directly.
Say,
the xml is of the following format
<Name> Tom </Name>
<DateofBirth> 12/3/1985 </DateofBirth>
<country> US </country>
Then the table needs to be dispalyed as follows
Name | DateofBirth | Country
Tom 12/3/1985 ...
I have a datasets with information like age, city, age of children, ... and a result (confirm, accept).
To help modelisation of "workflow", I want to create automatically a decision tree based on previous datasets.
I have take a look at http://en.wikipedia.org/wiki/Decision_tree_learning and I know that the problem is clearly not obvio...
I have implemented the algorithm X using Dancing Links in Java, however, I'm getting unexpected results, that is I'm having dupes of rows of results which are not exact covers.
My code can be found at http://pastebin.com/m4cd3817f .
I have previously posted a chunk of code in which the wonderful community of StackOverflow helped me fi...
I have a Swing application that is heavy customised with a lot of custom painting mainly on the panels and button to add gradients and round borders.
The application infrequently crashes with exactly the same error and i get hs_err_pid[0000].log
Snippet:
Java Threads: ( => current thread )
0x032ff400 JavaThread "Thread-1" daemon [_t...
Hi,
I'm working with JFreeChart to plot several TimeSeries charts. It seemed to be working fine, but as of today, all the graphs seem to flicker and are randomly glitching making them impossible to see. If I minimize and maximize, the issue gets fixed for a few seconds until the next update or mouse click. Does anyone have an idea about...
Say, if I have a Lisp program, which uses (eval 'sym) and looks it up in its symbol-table does it actually perform better than something like aClass.getField("sym", anInstance) in "static" languages?
...
Hi guys!
I'm trying to run an embedded ApacheDS in my application. After reading http://directory.apache.org/apacheds/1.5/41-embedding-apacheds-into-an-application.html I build this:
public void startDirectoryService() throws Exception {
service = new DefaultDirectoryService();
service.getChangeLog().setEnabled( false );
P...
I would like to say upfront that i am not a programmer. I'm 1 of 3 partners in a small start up. Two of us have a business and sales background, whilst the third guy is a very experienced Java Programmer/engineer (and a good friend).
As with most start ups we believe we'll be the next big website. We have found a opportunity that the "...
Is anyone aware of the validity of Hibernate's Criteria.list() and Query.list() methods returning multiple occurrences of the same entity?
Occasionally I find when using the Criteria API, that changing the default fetch strategy in my class mapping definition (from "select" to "join") can sometimes affect how many references to the same...
I have to write a program that can take bookings, store them and then access them at a later time, the application has to be written in Java. Because of this i have been looking into various ways to use a database with Java.
I have been looking into using the JDBC with the mySQL driver database and also looking into the javaDB. What wou...
Hello all,
I'm currently trying to pick a thesis topic, preferably using Java. :)
There are cases exists, when a full-blown Java EE stack is a bloatware. You don't use many things, you don't need such tight replication, etc.
If you choose to go on a lightweight route, you can use Spring, Guice or any other IoC framework, you can use s...
I'm developing a Java/Spring web application. The problem I'm currently facing is that I'd like to have message from message.resources shown as an attribute in an HTML.
<input type="submit" name="login" value="login" />
So instead of the hardcoded value "login" I need to the value of
<spring:message code="general.submit" /> as the v...
I have 2 session beans, OrderBean and InventoryBean which are deployed at different weblogic servers.
The OrderBean needs to access the InventoryBean to check if the supply is sufficient.
Currently, I use JNDI look up to locate the InventoryBean and it works fine.
Now I'm wondering if it is possible to use @EJB to inject InventoryBe...
I need to validate my JAXB objects before marshalling to an XML file. Prior to JAXB 2.0, one could use a javax.xml.bind.Validator. But that has been deprecated so I'm trying to figure out the proper way of doing this. I'm familiar with validating at marshall time but in my case I just want to know if its valid. I suppose I could mars...
I've a particular birt project which I've created using the eclipse ide. I am trying to understand how to deploy the report without having to use alternatives which would cost something.
So ultimately I am left with the birt report engine api. I've downloaded the report engine runtime package from the birt-exchange web site. I've found ...
I have a page: http://mypage.com/items.jsf.
This page takes the following for granted:
ID is set by GET or ID is set by POST.
Now, I can manually call items.jsf?ID=10
But what I really want to do is have a Button which calls a function that returns the navigation URL.
public String test()
{
return "10";
}
Now having the foll...