I'm running a nightly cpu-intensitive java-application on a Ec2-server (c1.xlarge) which has 8 cores, 7,5 GB RAM (running Linux / Ubuntu 9.10 Karmic 64 bit)
The appplication is architected in such a way that a variable number of workers are constructed (each in their own thread) and fetch messages from a queue to process them.
Throug...
There seem to be a ton of UI properties that can be set with
UIManager.put("key", value);
Is there a list somewhere of all keys that can be set?
...
I came up with the follwing code...my Document is not created.
I dont get any Error messages. Regarding the Java API i did everything in the right order. The directory is created in the right way...so i dont have to worry about that.
Anyone got an idea or an hint where to look at?
public static void main(String[] args) throws Excepti...
Is it possible to develop an android application aimed at mobile devices and also use the same code to execute on windows, linux or osx as a standalone java desktop application without using an emulator? I.e. to have the look and feel of a conventional java application running standalone?
...
I'm trying to use a select all checkbox to select a column of checkboxes.
So I gave all the ones I want checked off at once the same name ABoxesElement so that I can easily check them all on in javascript.
However when I use firebug in firefox I can see that the checkboxes did not keep the name I gave them but pre-pended the component...
I able to save (spring-hibernate saveorupdate()) field
@Lob
@Column(name = "FILENAME")
private String filename;
into oracle database datatype is clob
but when i try retrieve it, i get error
ERROR -
JDBCExceptionReporter.logExceptions(72)
| ORA-00932: inconsistent datatypes:
expected - got CLOB
below is how i retrive ...
Hi,
I have a JFace TableViewer. The values in one column should normally be unique, but there are cases where it makes sense that they are not (e.g. when a row was copied and not yet changed). However I want to alert the user of the duplicate values by highlighting the rows which contain duplicate values in that column. What's the best ...
I need to format date to app that has many languages, what is best way to format date, because every country has different kind of date formatting, so is it possible to format date by locale?
...
What is the method for converting strings in Java between upper and lower case?
...
.How can i convert rss to html to display it effectively?
...
Hi all,
I would like to know the problem of how to run xsl file in Eclipse.
I use jdk 1.6 with Eclipse platform. In fact, I want to extract a subset of XML file using XSL because of large size of xml document. I'm only interested in a subset of xml file.
...
Hi,
I have a Seam component annotated like this:
@AutoCreate
@Name("asyncServiceManager")
@Scope(ScopeType.APPLICATION)
public class AsyncServiceManager {
The classes that use it are configured like this:
@In("#{asyncServiceManager}")
private AsyncServiceManager asyncServiceManager;
When running the code, I see that the class Asyn...
In a layered architecture, you have a presentation layer, logic layer and data layer.
So far, I've been grouping classes into domain, service and dao packages. This represents the model with POJOs/JPA Entities, the business logic and data access layer.
I suppose the domain and services could be grouped to form the logic layer but that...
I have a parameters Map with property name "xx.xx", but Ibatis cannot know property named "xx.xx" ("xxxx" is ok).
how can I use Map property with name contains dot(.) character? or I have to remove the dot(.).
Thanks very much
Thang Hoang
...
I have a dll that contains legacy C code, I call this dll via JNI, but sometimes the C code crashes and causes the JVM to terminate. Is it there a way to avoid JVM crash? Can I handle the JNI fault and let the JVM survive? :)
...
Hi All,
We have 4 stored procedures which we are using to insert the entries in database, These 4 are interdependent, If any of this fails Whole operation has to be rolled back, only if everything goes well I want to commit the transaction. How do I achieve that.
Thanks,
Rohit.
...
Hi Guys,
I want to practice java programs ..can anyone point me a web site which contains java objective type questions in pdf format and readiliy available to download?
...
The context is the following :
Two domains mutually trusted
dc=dom1
dc=dom2
a group
cn=group1,ou=someou,dc=dom1
with users inside :
cn=user11,ou=anotherou,dc=dom1
cn=user12,ou=anotherou,dc=dom1
cn=user13,ou=anotherou,dc=dom1
cn=user21,ou=anotherou,dc=dom2
cn=user22,ou=anotherou,dc=dom2
cn=user23,ou=anotherou,dc=dom2
The que...
DISCLAIMER:
this is the classic case of .NET GUI trying to work his way around JAVA stuff.
PROBLEM DESCRIPTION:
I am trying to build a very simple GUI with JFace and SWT - the code is straightforward (there's plenty tutorials), what it's not so straightforward is that I can't seem to get JFace and SWT to work outside a plugin project...
When a file say 100 MB size is uploaded from browser will Spring hold whole data in memory or stores in the disk temporarily. After going through Spring doc I know how to set a temp dir but I want to know what will happen if I don't mention that.
Am having following declaration :
<bean id="multipartResolver"
class="org.springframework....