j2ee

Is it possible, In JSP, to print the value of a variable whose name is in another variable ?

The problem i am having is like this there is variable <core:set var="type">*one of: load,migrate, or ...* </core:set> and the value of load, migrate, is a map. Now, i want to print the value of these based on the type? Is it possible at all? ...

How to call a function later at a scheduled time in ColdFusion?

<cfschedule> can only call an URL. What can I use to call a function with some dynamic parameters later? the only way I can think of is to call it the GET way with and populate the parameters in url scope: ./someAction.cfm?param1=xx&param2=yy However, this doesn't work for me 'cause I will likely hit the GET limit for large, compl...

j2ee good and reliable books

Can anybody suggest some good books for starting J2EE? I have done Core and Advanced Java ( up to Swing). ...

A good, recent article on the comparison between Java EE and .NET?

I've started looking into a few larger server-app frameworks that would be able to support desktop client interfaces as well as web interfaces, and have really zero'd down on the two obvious ones: J2EE and .NET. From a language standpoint, feature standpoint, portability standpoint, etc...I am pretty comfortable with my understanding of ...

Seam-gen isn't working properly.. log4j acuses an error

Hello Seam Users, I'm having a couple problems with my Seam start up. I did the ./seam generate to reverse my current postgres db, which contains 4 tables, first I though everything was okay, just a warning message, but when I imported the project into eclipse, I saw that none of my packages had any class. This is the error that seam ...

Create xml with jsf

Hello everybody, I need to send xml to the browser with my jsf application. This xml is generated by the application. I try to create it but my jsf application sends html every time. How can I change the content-type to send xml ? Thanks for your help. ...

What software should I use to learn J2EE?

I'm relatively new to programming, though I know the basics of Java. (I've passed the SCJP exam, so that's what I mean by "basics.") I want to learn J2EE, with a focus on back-end web development, and I'm becoming disoriented by the various pieces of software involved. I've been using NetBeans and MySQL as my IDE and database. What o...

Cookies across multiple WAR files

I'm creating a facelets template for all my company's internal applications. Its appearance is based on the skin which the user selects (like gmail themes). It makes sense to store the user's preferred skin in a cookie. My "user-preferences" WAR can see this cookie. However, my other applications are unable to find the cookie. They a...

Can I send messages to a JMS queue from outside the app server?

As I understand it, a J2EE container is required to include a JMS provider. Is it possible for a standalone Java application to send messages to a JMS queue provided by the container? If so, how do I access the JNDI lookups from outside the container? (I am trying this with Geronimo if it makes any difference, but I am hoping there is a...

Access denied when attempting to connect to MySQL from jsp in NetBeans

I'm trying run a simple Java/MySQL web app tutorial in NetBeans. I am able to connect to my database from a standard Java program in NetBeans, and Tomcat is working. But when I try to connect to the database from a JSP, I get the following error: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection...

Why is my JNDI lookup for a QueueConnectionFactory returning null?

I am trying to look up a QueueConnectionFactory and Queue via Geronimo's JNDI. The Queue gets returned fine, but the QueueConnectionFactory lookup always returns null. It doesn't throw a NamingException, which is what I'd expect if the JNDI name was incorrect. Can anyone see what I'm doing wrong? The test code below outputs: true fals...

Deploying JSF application on a Glassfish cluster

When I deploy a JSF application on a Glassfish V2.1 Patch02 Cluster, the following exception is thrown while loading the first page. java.security.ProviderException: update() failed at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:557) at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:457) at sun.se...

What is the purpose of `wire()` and `isWired()` in Seam?

I am checking out Seam 2.2.0.GA, and using seam generate-entities it generated Home classes with the methods wire() and isWired(). What are these methods and what purpose do they serve? ...

Application server-agnostic build script

I have a J2EE application that needs to be distributed to customers, who will have application servers of their own choice. What is the recommended way of writing a build script that would compile the J2EE application sources (at customer sites) so that they will eventually be able to deploy the application on their servers ? Moreover, ...

Log4j configureAndWatch() spawning thousands of threads

So we have our J2EE application using Log4j like this public class CustomerController { private static Logger logger = Logger.getLogger(CustomerController.class); public CustomerService customerservice = null; public CustomerController() throws Exception { PropertyConfigurator.configureAndWatch("c:\log4j.p...

Using log4j in oc4j 10.1.3

I have a web application running on OC4J 10.1.3. I am trying to do some logging using log4j. The messages show up in my IDE console as expected, but nothing is going into the application.log in OC4J. Anybody know what I need to do to get this working? Here's my log4j.properties: log4j.rootCategory=DEBUG, CON1 # CON1 is set to be Co...

Do Tomcat JDBC Connection pools get shared between instances?

We have a web application right now that we deploy a copy for each client. Our current deployment strategy is to create a uniquely named jdbc connection pool for each instance. so say jdbc/client. They are specified like this... < Context path="/" reloadable="true" docBase="\home\client\ROOT" debug="5" > ...

Combining Stateless & Stateful Connection

My application have a Stateless EJB. And Now I need to do some db operation via Stateful. Can this Stateless EJB can access the DB Utility which will open connection stateful? Will this lead to any design / performance Issue? ...

Simple JMS Clients on OS X

I haven't touched any J2EE stuff in years and I need to whip up a quick JMS client for a demo. I'm using Eclipse, on OS X and I can't even get started because I can't seem to figure out how to get the required libraries. This is supposed to be a simple stand alone application (not running in a container) that pulls messages from a top...

Java - Reference implementations vs 3d party vendor provided ones

Dealing with Java - which the option you prefer in the most cases - reference impl. of some technology or another one, provided by any other vendor? Some examples - there is Glassfish server, which is basically official reference implementation of the JEE. However, i really seldom see people use that. Jboss, some free Apache projects re...