java-ee

What is a good book for a Java Enterprise Developer?

I'm going to buy a few books for my company. Can you recommend some good books dealing with newest trends on market - especially those with JEE? EDIT: I have some experience with pure Java desktop programming. But I need books that will give good overview about Java's EE technologies, also about using tools such as Eclipse, debugging, a...

Can you access EntityManagers from EntityListeners?

I'm aware that JSR-000220 Enterprise JavaBeans 3.0 Final Release (persistence) spec states: "In general, portable applications should not invoke EntityManager or Query operations, access other entity instances, or modify relationships in a lifecycle callback method." This appears extremely restrictive. We have a situation in which we w...

java session variables

i'm hearing that some people believe storing info on the server in a session is a bad idea, that its not secure. as a result, in a multi-page business process function, the application is writing data to a db, then retrieving the info when its needed. is there something necessarily unsafe about storing private info in a session? ...

Statistics engine for Java EE Web Application

We are working on a Java EE Web Application, and the people from marketing need some really detailed stats for our site. Something similar to Google Analytics, gathering the user's information, and their navigation through the site (where they come from, what they click, where they go, etc.). Depending on a third party service like Anal...

Security in Java EE Application with JBoss

What would be the basic and obvious security considerations and recommendations in a Java EE Web application? ...

How does Eclipse debug code in an application server?

What communication is going on between Eclipse and my application server (JBoss) when I run the server from within Eclipse in debugging mode? How does this work? ...

RMI, EJB and callback

Is it possible for a client to pass an RMI object as an argument to an EJB so that the EJB may callback the client? ...

JSF Memory Usage Issue when using using session beans

I am working on an application that has a navigation tree which is a session bean. Every time I invoke the page that contain this bean, my memory usage will increase. However, after few hours of inactivity, the memory still isn't freed. Are there any ideas why this happens, or workarounds? ...

[JSF] Best way to make an expandable/collapsible subTable with rich:dataTable

I've recently ported an application from JSF 1.1 to JSF 1.2. In the process we removed tomahawk and decided to use rich instead. Now I need a way to make an expandable/collapsible detailViev for each row in the table. The only thing I can think of is something along these lines (adapted from documentation at docs.jboss.com): <rich:da...

How can I customise the namespace prefixes in Metro/JavaEE auto-generated WSDL?

I'm using Java 6 + JavaEE + Tomcat 6 + Metro for SOAP web services. In the response, the namespace prefixes are ns2, ns3, ns4, and so on. I'd like to be able to instruct the web services stack to use custom names instead. How do I do this? ...

Mask urls in JSP

Related to this question: URL characters replacement in JSP with UrlRewrite I want to have masked URLs in this JSP Java EE web project. For example if I had this: http://mysite.com/products.jsp?id=42&amp;name=Programming_Book I would like to turn that URL into something more User/Google friendly like: http://mysite.com/product-Prog...

Options to communicate between WARs in the same EAR

What options do you have to communicate between the WARs in an EAR? We have several WARs providing different webservices deployed within one EAR. For their tasks they need to communicate with the other WARs. Of course they could communicate using webservices. What other, perhaps more efficient, options are there? EDIT: The reason for t...

JSF: Reset value on failed validation

Hi, I want to to achieve the following: A page should contain two inputfields and a result field that contains a server calculated result. Each of the input fields shall immidiently be validate using a4j. The result field shall on any change be updated. Here is what I've got so far: .. <h:inputText id="first" value="#{bean.first}"> ...

Associate arbitrary data with ejb call context

I've got a bunch of stateless ejb 3.0 beans calling each other in chain. Consider, BeanA.do(message) -> BeanB.do() -> BeanC.do() -> BeanD.do(). Now i'd like to access message data from BeanD.do(). Obvious solution is to pass message as a parameter to all that do() calls (actually that's how it works now), but i want some nicer solution...

JEE Hosting Service

Hello, Can anyone recommend a JEE Hosting Service? I'm a JEE developer who wants to throw some application experimentation stuff up online, but doesn't want to take on the responsibility of server administration and network management. I'd like to be able to use: - JSF - Spring - Hibernate And some sort of relational database. I'm...

Should I do more JavaSE before jumping to JavaEE?

I'm almost finished with the book "Head First Java". The reason I'm studying this is I'm hoping to get a job developing with JavaEE someday. Now I'm thinking, should I go ahead and study EE (moving on to Head First Servlets and JSP) or should I spend more time with SE? Would it help? I'll go on and say directly that I want to learn EE in...

Migrating EJB2.x BMP entity beans

We use EJB2.x entity beans with BMP (bean managed persistence). It appears BMP is not supported in EJB3. We had wanted to stay current and upgrade to EJB3. Does anyone know if there are in fact any BMP options available in 3.0? From what I can tell, using 3.0, all entity beans have to use JPA and by definition ORM. There are some op...

Improving turn around time when building JEE apps

One troubling aspect of building JEE applications is the turn around time for the edit, compile, deploy process. I tried using Jetty but even that has some problems after making several edits you will usually run into a memory error. At the moment I use Netbeans and I can see edits to the presentation layer without redeployment but when...

How to structure a Java EE system? How is the term application and thus the content of an EAR defined?

I am in the process of designing a build system and the directory structure for a large software system developed with JEE 5. The build system will be implemented using ant. We have multiple different services, which are grouped thematically. Each service offers either a web service or EJBs. Each service runs on a dedicated application ...

Does Learning C#/.NET Require An MSDN Subscription?

I'm a Java EE person who would like to climb the .NET learning curve. I've always had the impression that one important difference between Java and .NET was that the Microsoft suite required that you (or your employer) had put up some coin to get access to the tools. A Java person has the advantage of being able to download a JVM, Ec...