java-ee

Best (most efficient) DataType to use for UUIDs as JPA IDs

I want to use UUIDs as IDs for my JPA Objects. I am currently just using a String to store the UUID. What would be more efficient? ...

Apache Cocoon JAR configuration - I want to use .class files !

Hey guys and gals I'm using the Apache Cocoon framework, set up several eons ago for the web app I'm developing. I don't know if its how cocoon is set up for everyone, or its if some 'special' configuration my company has performed, but this is what happens. In order for cocoon to use ANY class files, they must be bundled up into a JA...

Why the jsf view is not updated after new data in the backing bean are loaded from database?

hello, I am - unfortunally - working with jsf and I am experiencing a problem. I have a jsf page that displays a table with some data, using the <h:dataTable> component. Every row of this table has an <h:commandLink> with a Remove action to remove the item in that row. When I perform that action, the method in the backing bean is correct...

Querying Terracotta

Is there any way to Query against the objects stored by a Terracotta instance? I am looking for SQL-Like Queries or any way to filter objects based on fields. ...

Querying Java Data Structures

Is there any way to perform SQL Like Queries or Filtering on Java Data Structures? I want to filter objects in an ArrayList and a HashMap by fields of the objects contained within. ...

How to implement a generic queue monitoring component in Java EE?

I'd like to create a queue monitoring container-managed component in a Java EE 5 app. The queue is a database table and every 5 mins or so the monitor would look for records that match certain criteria in that table. If there are any matching records, the monitor starts some kind of processing in a new thread. This sleep-check-do work...

What are good InstallAnywhere replacements for installing a Java EE application?

Which (commercial or free) installer tool would you recommend to replace InstallAnywhere as the installer for a Java EE application? What do you specifically like about it, and what are its downsides? Some requirements: Must support running custom Java code as part of installation procedure Must support Windows, including latest 64-bi...

Java: Run HTTP server on demand from my app?

Hello! I want to write a simple P2P test app which uses HTTP as underlying protocol. The app has to decide on demand, if it should act as a HTTP server, or as a HTTP client. The classic way which I am aware of, would be to deploy the app on some existing HTTP server. But this is the wrong way for my intention. It has to be the other wa...

How many EJBs is too many?

Hello, I'm currently developing a large piece of software base on JavaEE. We have followed the general guidelines of JavaEE that says that each related set of operations should go into their own EJB. We currently have over 275 different EJB classes (Stateless Session beans). This number is most likely going to grow to at least double th...

transaction management with common-j components

We have a Websphere JEE application that requires parallelization, for which we're looking to use CommonJ work components. Each 'thread' would require its own view onto data coming from a database. Most of this would be pre-fetched, but it would still need to go to the database to get some. We anticipate that the duration of the overa...

Alternative to Amazon S3 for the data center?

I'm looking to for a service that is similar to Amazon S3, a simple service to store and retrieve arbitrary data (and meta-data), but one that runs locally in your own data center. Strictly speaking, I'm not sure whether you would call this a CDN or a lightweight CMS. It must be horizontally scalable (both for storage and bandwidth) a...

Need help with design structure and looking up EntityManager and UserTransaction in helper's helper

Hi there, I am basically a newbie whose starting work on a new webapp. The webapp is mostly your basic CRUD operations. For this, I have decided to use JPA with Hibernate as the Persistence provider and will be developing on Apache Derby for development and testing purposes. I am using GlassFish v2 as the App Server to deploy my EJB3 be...

Splitting Hibernate Entity among 2 Tables

I have a simple Class Hierarchy that I am trying to get to work with Hibernate/JPA. Basically what I want is for the MovementData to be in its own Table with a FK to the integer id of the Main Vehicle Table in the Database. Am I doing something wrong? How else can I accomplish something similar? I am pretty sure I am following the JPA...

Hibernate doesn't save and doesn't throw exceptions !?!

Hi, I'm stuck with this already for some weeks and I don't have the faintest idea what's going wrong. I'm quite desparate as I've wasted so much time already I use the data model described below (MySQL). I have created the hbm.xml and java classes by reverse engeneering (Eclipse/JBoss Tools) (see example below). When I try to save tw...

Recommendations for java captcha libraries

I'm looking for a replacement for JCaptcha, which doesn't seem to be maintained any more, and isn't very good to begin with. The replacement has to integrate nicely with JavaEE webapps. As I can see it, there are three options: JCaptcha - No longer maintained, crude API SimpleCaptcha - much nicer API, nicer captchas, but seems to be J...

How to pass data from JSF to a Java Applet

I'm building a web application with JSF and ICEFaces. Now I've integrated a Java Applet into one of the JSF pages. The Question is, how can I pass information stored in the backing bean to the applet? I don't think that I neeed a bidirectional communication. I'm collection data using ICEFaces input components. For instance, hitting a bu...

Netbeans Exploded EAR Development with JBoss5

I'd like for Netbeans to deploy directly into an exploded ear in JBoss, instead of the current process of deploying a whole .ear file. Development would be much quicker if it were possible to edit .jsps and backing beans without a redeploy after each change. Is this possible? ...

is struts a good starting point for java web

I've been developing in java then I stopped, so now since I have my google app engine account I wanted to start with this again. Also I love web and I know struts is a good MVC framework. I've been reading this. do you think struts can help me to start or should I start with "plain" servlets, and then go to some framework ...

Java EE and application servers - What can i do?

Hi everyone! I decided that it is time for me to dig into the whole Java EE stuff. I am using EE some techniques whithin Java SE like JPA or JMS, but i still messing around with Java SE and i believe Java EE and an application server will solve some of my problems i have. BUT: I have still some questions after reading some articles on ...

What's the best way to pass arguments to a tomcat instance?

What's the best way to pass arguments to a tomcat instance? Are command line arguments available to all applications within the container? Can I pass arguments to particular apps? Do I need to manage this through the built in app server? EDIT: To clarify, I'm looking to pass a parameter to specify the configs to use. Sometimes this migh...