java-ee

Book recommendation: JEE

Do you know a good book on this topic? ...

JBoss target deploy

Hi, is there a way to point a maven target (with classess) path to jBoss instead of building .ear and deploying it everytime I edit some sources? Thanks in advance, Etam. ...

UTF-8 text is garbled when form is posted as multipart/form-data

I'm uploading a file to the server. The file upload HTML form has 2 fields: File name - A HTML text box where the user can give a name in any language. File upload - A HTMl 'file' where user can specify a file from disk to upload. When the form is submitted, the file contents are received properly. However, when the file name (point ...

regarding class identification

i want to get the list of all the objects(user defined class and predefined class that are being used in my program. can anyone help me out how to do that?? ...

Java for C# developers

What is the fastest-track set of resources for a C# developer wishing to hit the ground running in an enterprise-class Java team? ...

Using JBoss 4.2.x, how can I deploy a new data source without undeploying existing ones?

Configuration management for our EE application requires us to create a new database connection datasource from time to time. We do this right now by modifying the deploy/[dbtype]-ds.xml file, inserting an additional connection definition into this file. The problem is, doing so causes the existing connections to be undeployed and rede...

Best practice to specify external directory for storing images in Tomcat?

Best practice to specify external directory for storing images in Tomcat? ...

How do you implement Basecamp style URL in Java/JEE environment? eg <username>.hostname.com

The Basecamp URL like .basecamphq.com, eg seymores.basecamp.com. How can I do the same in Tomcat environment? ...

How can I set isolation levels per method in EJB 3

Is it possible to set the database isolation level (ie Serializable, repeatable-read etc) for a given EJB 3 method call? I understand that this is not covered by the EJB Spec, so details of how to do it on either a JBoss or Glassfish specific manner would be great. I'm starting to get the impression it's not possible and that you can o...

how to run flash movie from site using embed in java desktop application

i try to run flash movies from remote site such as youtube by using embed of the movie in my java desktop application are there any liberary that help me to do this** ...

OC4J - toplink 10/11 at same time ?

Can you use both toplink v. 10 (toplink essentials) and toplink v. 11 (eclipselink) at the same time within the OC4J application server? Both are different implementations of JPA. I was wondering if both implementations can be added to the OC4J application server so that bean jars can choose themselves which implementation to use. Ple...

How can I select the local interface for an EJB?

Say I have the following EJB (using ejb3): @Stateless(name="Queries") @Remote(Queries.class) @Local(Queries.class) public final class QueriesEJB implements Queries { ... } The class is available through both a local and a remote interface. How can I inject the local interface for this EJB in another part of the app? Specifically...

EJBs and Storing Objects in a Data Structure (Map, List, etc)

Is it possible to have objects stored in a data structure for the duration of an App Server's uptime? Basically I want an EJB that interfaces with this Data Structure, but does not require a full fledged database solution. As an example I made this dummy animal object: package com.test.entities; public class Animal implements java.io...

Hibernate: Generate Statistics

So in my persistence.xml I turned on hibernate.generate_statistics. <property name="hibernate.generate_statistics">true</property> My question is.. how do I access them? Where do the statistics go? ...

How to improve productivity when developing JEE based web applications.

I'd like to know how you address the seemingly low productivity of JEE-based web application development compared to other technology stacks (Seaside, Ruby on Rails, etc). The constraints are: The finished web application must be deployable on JEE compliant application containers If possible, previous investment in Java-based solution...

How to decompile a whole Jar file?

Does anyone know of a free decompiler that can decompile an entire Jar file instead of a single class? I have a problem with sub classes like name$1.class name$2.class name.class ...

Is EJB inheritance through different EJB modules possible?

Is it possible to have an entity class which inherits from another (abstract) entity class from another ejb module? EclipseLink for example doesn't create the depending columns in database table of the subclass. It simply ignores the (abstract) superclass entity. ...

Hide .xhtml source - facelets/icefaces?

I'm new to Icefaces and Facelets both, but I'm using them on a new project. I've got everything working configured and working fine. However, when I visit mywebapp/file.xhtml, the entire facelets template source comes up in my browser. How could I hide this to prevent users from viewing my server-side templates? ...

Java EE video lectures

There are plenty of java videos and video lectures floating about, but does anyone know of any that deal specifically with Java EE? For my own point of view I'd be more interested in the EJB side of things, but any Java EE lectures would be useful, as well as videos on things like Spring etc. Thanks. ...

Hibernate not reflecting changes

I have a struts application that uses Hibernate to access a MYSQL DB. I have a number of pages that make changes to the DB. These changes go through fine, data is update in the DB. However when browsing to the page that should show this updated information its often not there, and even after a few page refreshes it still isn't there. Eve...