java

Does anyone have experience using Teiid? Is it as good as it claims?

Recently I have been reading a bit about Teiid: Teiid is a data virtualization system that allows applications to use data from multiple, heterogenous data stores. Teiid is comprised of tools, components and services for creating and executing bi-directional data services. Through abstraction and federation, data is accessed ...

Choosing between Java and Python

My team is faced with change. We develop on Unix, on backend servers. We do no GUI development. We are the business logic between another team's Java front end (XML interface) and the database. Currently our codebase is large, and it's all in C. We are held back by having to work with a very primitive ancient home-made non-relational no...

Struts2: value from Action - DAO (database) - VO - View (jsp). Suggest ?

Hi All, In my struts 2 application, I am generating a textual report in jsp. I have already fetched all the required value from databases in ResultSet available in my DAO class. Now, please suggest me the best way to get all the values (present in ResultSet) in my jsp page to show the report. I don’t want to write any login in my jsp. Pl...

Need a Java and Javascript diff tool written in Java

We need an accurate diff utility for Java and Javascript files, written in Java. It should be invokable from within an Eclipse (version 3.2 or 3.3) application. Preferably we need the Java source code for this utility also. The utility should be able to compare two files (old and new, say) and determine the following accurately: Numbe...

JAX Web Service Handler Chain -- Autogenerated Why?

I have a generated JAX web service. The class files were created with the wsimport ant task. Something has gone terribly wrong in my build process. All of a sudden the new code I'm generating is importing the package javax.jws.handlerchain inside the generated files when it never used to. It's also looking for a MyService_handler.xml f...

Eclipse JFace's Wizards

I need a wizard which second page content depends on the first page's selection. The first page asks the user the "kind" of filter he wants to create and the second one asks the user to create one filter instance of the selected "kind". JFace's wizards pages contents (createControl(...) method) are all created when the wizard is open an...

Why does the Mem Usage value increases with time ?

I have a process running 24 hours on my system comtinuously for 45 days. In the morning the number of threads are 20 and in the afternoon the number of threads are 100 and in the evening the number of threads again comes back to 20. But the Mem Usage and VM size values does not come back to the values when the number of threads were just...

Create a rounded JFrame / ContentPane

I'm creating a login window with rounded corners in java. Everything is OK, see pic, but i'm having challenges making the JFrame / ContentPane transparent. There are white areas at each corner (shown by the arrows) that i seem not to be able to remove since i can't set opague to false for the JFrame or ContentPane. Any ideas of how i ca...

Monitor UDP packet loss in Windows Server, Java

My Java application receives data through UDP. It uses the data for an online data mining task. This means that it is not critical to receive each and every packet, which is what makes the choice of UDP reasonable on the first place. Also, the data is transferred over LAN, so the physical network should be reasonably reliable. Anyway, I ...

When I launch an web start application i am geteng the following error. Please help me

am geeting the following error while launching the application. Exception in thread "javaWSApplicationMain" java.lang.NoClassDefFoundError:SimpleSerail. The java code that i am using is as follows: Aeon_PManager.java /************************************************************************** *******************************************...

Design question - java - what is the best way to doing this?

I have a design problem. I have two data objects which are instances of say class A and class B. A and B don't have any behavior - they are java beans with getters and setters. I have a Validation interface and 10 implementations of it defining different Validations. I would like to specify in my properties file which Validation appli...

servlet to jdbc threw jndi

i want to lookup object from servlet to jdbc through JNDI what is the exact code for this process? ...

is there an option for testing java applications from the outside like we do with the web applications?

I would like some suggestions if your project has some java application elements as well as web then is there an option for testing java applications from the outside like we do with the web applications ...

Android AlertDialog with dynamically changing text on every request

I want to show an AlertDialog with one option that might change on every request. So for example at one time I want to show the option "add to contacts" while another time it should be "remove from contacts". My code does work on the first time, however Android seems to cache the AlertDialog so that onCreateDialog is not executed next t...

jBPM Standalone App with SWT

According to the whitepaper on the jBPM page [1], jBMP can be easily used in a standalone app. However I could not find any information about how to actually do this. I want to create a simple java app (maybe with SWT), which displays a process with jBPM. The user should then be able to modify the applications behavior, by modifying the ...

servlet to jdbc threw jndi

i want to lookup object from servlet to jdbc threw JNDI what is the exact code for this process? ...

Migrating from Java concurrency to Scala concurrency

I have a fairly standard mechanism in Java for solving the problem: Work items must be scheduled to execute at a particular time Each work item must then wait on a condition becoming true Work items should be cancellable The solution I use is as follows: Have a single-threaded scheduler to schedule my work items Have an ExecutorSe...

Has any one use jameleon along with cruise control for testing Java GUI applications

I am looking for tool for java web applications as well as testing other components in a project. Just found a tool jameleon. Want to know whether I can carry on with this for developing automated regression tests. ...

'TimeToLiveTimeout' property for SJAS JDBC Connection pool

My application runs on Sun Java Application server v8.1 and it connects to an 0racle(10g) DB using the application server's jdbc connection pool. The datasource class name used in the pool is 'oracle.jdbc.pool.OracleDataSource'. I have enabled connection caching and I want to use the 'TimeToLiveTimeout' property for this DataSource.'Tim...

A Java bot that uses Skype API

Is there an up-to-date Java API for Skype 4.0? I'd need a simple bot that creates a chat and follows discussion. If there isn't a Java API, what ways are there to send Skype commands in Java? Also, am I allowed to use public Skype for that, or do I need to have my own Jabber server? ...