java

Google App Engine java eclipse plug-in cannot suspend on exception. Is this normal?

GAE java plugin does not suspend at any exception. So I'm seeing only stack-trace. The exception is just simple type-casting exception from bug on my code. (Not a custom breakpoint) I installed all tools with default setting and nothing configured additionally. Is this normal? And addition, DataNeucleus enhancing and app startup to deb...

serializable interface

Hi, I have a class that implements java.io.Serializable interface.So all the variables in that class is serilaizable. But i want to make some of the variables are should not serializable. Is it possible? thanks, Ravi ...

Java Lucene English Stemmer?

Hello, I need help indexing and searching english text using Java Lucene over Google App Engine. The only solution I have found so far was the SnowballAnalyzer (in the contrib packages), but it only supports Lucene 3.0, and GAELucene only supports lucene 2.3.1. Just changing jars doesn't really work.. Can anyone help me index my text w...

POJO with other POJO references.

I am working on a API to access data stored in a system. The system contains things like people, appointments and procedures associated with those appointments. My application will strictly be read-only. I am using Spring w/ RowMapper to build objects such a "Person", "Appointment" and "Procedure". I have a DAO for each element. (ie: P...

Changing Java EE version in Netbeans

I downloaded Java EE 6 and it installed with no errors. I am attempting this tutorial from Sun: http://netbeans.org/kb/docs/web/jsf-jpa-crud-wizard.html The problem is that I have no idea how to change Netbeans to allow me to use Java EE version 6. I am still only offered 5. This is where I downloaded Java EE 6: http://java.sun.com...

GWT 2.0 Eclipse plugin - how to automatically launch browser on run / debug?

I've downloaded the new GTW 2.0 and it's eclipse plugin In the new eclipse plugin, when running or debugging instead of opening the browser, it shows this: For your convenience, here are some URLs that you may wish to view in development mode. Simply copy/paste a URL below into any supported browser. At least they could have made ...

what do the words platform and api exactly mean?

i've bought a book "learning the java SE 6 platform". i wonder what the word platform really means. cause isn't it just a bunch of classes that i can use. the JDK 1.6 node in Netbeans under Libraries. And what is API? isn´t it the same thing as platform. But doesnt library mean the same thing..a bunch of classes with some superclasses a...

Java C++ without JNI

My app is written in Java. There is a C++ library I need to utilize. I don't want to use JNI. 60 times a second, the C++ app needs to send the Java app 10MB of data; and the Java app needs to send the C++ app 10 MB of data. Both apps are running on the same machine; the OS is either Linux or Mac OS X. What is the most efficient way to...

Handling many-to-many inserts with Ibatis

I'm new to Ibatis and have a question regarding the mapping of many-to-many relationships. In my application's data model I have a many-to-many relationship between two of the entities, with the tables in the database looking like this: CREATE TABLE A ( id int PRIMARY KEY ) CREATE TABLE B ( id int PRIMARY KEY ) CREATE TABLE A...

Advice for efficient blocking queries

I would like to store tuples objects in a concurent java collection and then have an efficient, blocking query method that returns the first element matching a pattern. If no such element is available, it would block until such element is present. For instance if I have a class: public class Pair { public final String first; public...

"org.json.JSONArray implements Serializable": What's the best option to achieve this?

I am using Grails Webflow, what ever object I pass to a view, it must be Serialized. My domain models "implement Serializable", so they work. The problem is when I get a response from a WebService. It is of the org.json.JSONArray class. I just want to pass the whole Array over to the view yet it doesn't implement Serializable, so it fa...

Add a Group by to a Hibernate Criteria-Query without Projection

I have a Criteria-Query, which joins a second table B, to select entities from table A. The problem is, that this query returns some entities from table A multiple times. But I need the results to be distinct. Using Criteria.DISTINCT_ROOT_ENTITY is useless, becaus this filters out the multiple occurences after the SQL-Query was execute...

Dynamically generated javascript not executing in Chrome or IE, works in Firefox

I'm using the google maps API with GWT to create a tabbed infowindow with tweets inside one of the markers. the source of the tweets is dynamically generated. heres the java code: HTML recentTweets = new HTML( "<div>"+ "<script type='text/javascript' src='http://twitter.com/javascripts/blogger.js'&g...

Java and Cobol diferences

Can anyone help comparing and contrasting between Java and cobol in terms of technical differences as well as architectural design styles ...

What language do they build other languages with?

What language is used to build low level languages like c++ and java? How could you build the first language with no language? ...

proper Java package hierarchy?

I just started looking at the new FIRST Robotics Java SDK, which includes project generators to build sample robotics programs. Something I was curious about is the file it generates begins with: package edu.wpi.first.wpilibj.templates; Does this actually make sense? (The library I'm using is from first.wpi.edu, but my project doesn'...

.NET pop-up box terminology along with Java

I need to know a couple things. What is the terminology for the pop-up box shown in this Image? (Not the text, but the actual box itself) This is with Visual Studios. I need to do a project in Java and I heard that Eclipse has this pop-up box, but I cant seem to find it. Does anyone know where this option is? I was hoping maybe fi...

What kind of application would serve as a dedicated application server?

In a very popular ecommerce store, I'd imagine the actual processing of the credit card would be moved to some sort of dedicated application server, and made into more of a asynchronous process. What sort of java application type would that be? i.e. a service that would take a message of the queue, and start processing the request and ...

other than framework and java syntax, what else is a must to master?

Other than learning java, spring, hibernate, servlets, jsp's, how to use eclipse/netbeans, databases like mysql/oracle/postgresql, JMS, JUnit, etc. What other skills are essential? Coming from a MS background, and I am just a little overwhelmed by all the things going on in the java world! (btw, you guys have TONS of dlls also, a big...

convert Class object to bytes

If I have a Class instance at runtime, can I get its byte[] representation? The bytes I'm interested in would be in the Class file format, such that they'd be valid input to [ClassLoader.defineClass][3]. [3]: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html#defineClass(java.lang.String, byte[], int, int) EDIT: I've ...