j2ee

Static Conenction Object Issue

I am creating a web service using j2ee. this webservice is hitting DB to insert/update data. We are using Connection drivers to eshtablish connection to database. When we launch this web service and tested it, we got a Memory Leak issue and hence the transaction failed. The folliwng is the error message we obtained: "Memory allocation fa...

Hooking into Display Tag pagination events

Does the Display tag JSP tag provide a way to hook into pagination events, so that you can execute your own code when the user pages the data? I couldn't work out how to do it from the docs. Thanks in advance. ...

Javax package and simple java application with spring hibernate

hello people! in my attempt to learn a bit faster the use of spring and hibernate i read few chapter on books and created a simple java project from netbeans 6.7. I've decided to use the hibernate annotations instead of mapping files.so in my pojo i import javax.persistence.*; and i have an error that javax doesn't exist.what sound surpr...

Java web development environment to minimize build-deploy-test cycle time?

What Java web development environment is the best for absolutely minimizing the build-deploy-test cycle time? Web development environment: JBOSS, Tomcat, Jetty? Deploy WAR exploded? Copy WAR or use symbolic links? There are factors here I don't know about. Build-deploy-test cycle? The amount of time it takes to test a change in the bro...

Java web service client:

Hi guys, I'm developing a web service client that needs to execute operation exposed on tomcat with axis2. The client has all the wsdl files that are needed. I can't import them statically with netbeans or eclipse because the client needs to discover the wsdl at runtime (this has been already done) and then execute them in an fixed order...

Data access layer with Spring DAO and Hibernate.Problems

hi guys this is my first application in with spring and hibernate.So please bear with me with stupid questions :). i created a simple java application in netbeans 6.7. here are my daos interfaces UsersDAO package Dao; import Entities.Users; public interface UsersDAO { public Long GetIdByUsernameAndPasswor(String username, String ...

WIndow Authentication in Java

Can anyone roughly explain how can i do window authentication in JSF application? From google search quite lot of example is about asp.net. ...

An exception raised when trying to access a JavaBean

Hi everyone, I'm a newbie on Java EE and got a problem that I don't understand why it's happening. Here is my problem : I can't access a JavaBean using <jsp:getProperty> which is created in a scriptlet in the same page.It's throwing the below exception : Attempted a bean operation on a null object. Here is my bean and jsp page : pac...

What does "mastering J2EE" mean?

Often i hear people say, "I know J2EE", or "I've mastered J2EE". What does that mean: when I can say that, or what would I need to learn to know J2EE? ...

Recommended frameworks for Enterprise Service Bus (ESB) in open source projects

With an abundance of frameworks for Java Enterprise Service Bus(OpenESB, ServiceMix, Apache Synapse, ...), which one should be selected for new projects? What are the pros and cons for each one? How well have they worked for you? ...

Java web application to use for testing of servers

I'm looking for a simple open source, or reference application that I could use for testing some Java servers. The primary server would be Tomcat, and the database backend is MySQL. Are there some reasonable sample applications out there that are fairly easy to get up and running with? The ideal application would be fairly stateless in ...

Different connection pools for read / write access

An EJB3 stateless session bean exposing CRUD operations for an entity bean will contain read / write methods which go against a single connection pool. If you would like to have your read & write operations go against different databases for scalability purposes, how do you accomplish this at the code level. Any pointers to appropriate d...

Which is a better choice for me Ruby on Rails or J2EE?

I have a large set of classic ASP pages to convert. I will be running a Mac OS X server 1.5.7. I can choose anything I want, within reason, but I am stuck between Ruby on Rails or the full J2EE stack and an ORM. My main concern is the databases I have to hit and what each framework/stack is made to do. I became concerned after actual...

JPA/Hibernate - Embedding an Attribute

I am having a trouble mapping an embedded attribute of a class. I have created some classes that are similar to what I am trying to do to illustrate. Basically, I have an @Embeddable class hierarchy that uses Inheritance. The top level class "Part Number" has only one attribute, and the extending classes add no attributes to the "Part...

Hibernate/JPA - Foreign Key Index in Object itself

I am currently working on 100+ Java Objects created by someone with no JPA/Hibernate experience into JPA Entities. Their Objects reference other objects based on a Foreign Key in the Class itself. All of the primary Keys are generated outside of the database. For Example (Just to Illustrate) Car @Entity @Table(name="CAR") public cla...

J2EE webapp not creating files/folders

Hi All, I have a J2EE webapp that works perfectly when I run it on Eclipse and my local tomcat server (I've also tested on a friend's tomcat server), but not on a production server. This is the problem: The app is supposed to create a folder at a specific location (I've tried hardcoding this as well), but when run on the production s...

Why is this being garbage collected

My developers and I are having an issue with objects being garbage collected in our application when we don't want them to be. We are using Java with Weblogic 10g3. We are programming a singleton pattern to handle all of our JMS connections. There are two classes involved: public class JMSObject { ... private MessageProducer _produce...

Sample Application with .Net and J2ee

I need a sample application where the UI part is made with .Net (Windows) and Data Base handling logic/Business Logic part is handled by J2ee. Thanks ...

How do I write an uploaded file to disk using the Oracle directory alias and BFILE objects?

I have a java webapp which needs to upload files via http and then store them on the server. The files need to be associated with specific records in an Oracle database, so there will be a table in the database storing the reference to the associated record, and a reference to the file, along with other descriptive data such as title etc...

hibernate and Java.util.set problem

Hello good fellas! i 'm trying the hibernate tutorials from their main site and wanted to change thing a bit to know how many to many relationship work with java.util.set interface.My mappings are correct and i can insert in and from the tables EVENT, PERSON and the mapping table PERSON_EVENT.Now i've inserted some dummy values in the ...