j2ee

Postgres + Hibernate + Java UUID

I want to use PostgreSQL's native UUID type with a Java UUID. I am using Hibernate as my JPA provider and ORM. If I try to save it directly, it is just saved as a bytea in Postgres. How can I do this? ...

Where to put DTD and schema files

I have a fairly typical JavaEE application, composed using EJB3, seam components, spring beans and JSF, all packaged into several jar and war files inside an ear file. Naturally for JavaEE, we have many XML files as part of the application. Some of these XML files are validated using DTD (seam) and some using schema. As most files where...

Random Session Invalidation

I am running a J2EE web application in Tomcat, and recently I have been tasked with adding metrics to the application. I am using a SessionListener to detect when the session is destroyed, and then uploading the metrics to a database. My Session timeout is set in my web.xml to 30 minutes, and I am not invalidating the session anywhere ...

EHCache + Hibernate Error: Cached Item Was Locked

I have been trying to figure out this problem for a month or so now, and it has been driving me crazy. Basically I want to keep this from happening: FINEST: Cached item was locked: com.cache.dataobject.Part.parts#0 FINE: select parts0_.mainPart_id as mainPart3_1_, parts0_.id as id1_, parts0_.id as id182_0_, parts0_.mainPart_id as mai...

Relative path to SQLite DB in context.xml

Is it possible to use a relative path to an SQLite database file in the context.xml file of a Java web application? At present, I have: <?xml version="1.0" encoding="UTF-8"?> <Context path="/mywebapp"> <Resource name="jdbc/mydb" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" ...

Application-specific IIOP listening socket in J2EE

I recently noticed that an Crystal Reports viewer J2EE app, based on Crystal Enterprise Java SDK seems, to open its own IOP listener on a custom port (it seems to recieve some callbacks from report server this way). The question is - given this is a J2EE application, how does it open the IIOP listener, and is it (from the perspective ...

What programming language offers the best salaries?

I keep having discussions about this topic and I want the input of the community. As far as I've heard, .NET is the current leader in $/hr or $/project ranking. How does .NET rank against Java or J2EE? ...

Pylons or TurboGears vs. .NET or Java

We're embarking on a project for a client. They plan on having about 50k users by the end of the year. We're pushing to use Pylons w/ Mako and SQLAlchemy, and our contact there is excited about it, but some of his colleagues are wary because it's not .NET or J2ee (they're used to enterprisey stuff). Their web app will have some data an...

Struts 2: parameters between Actions

Hello everyone! I have the following question: I need to pass a parameter (for example ID ) when I finish a form and the action save the form's values, this will forward to the result = "success" and I need that the action that will be call in the success come with the ID and other parameters to later use in the next form for save this ...

Terracotta Performance and Tips

I am just learning how to use Terracotta after discovering it about a month ago. It is a very cool technology. Basically what I am trying to do: My root (System of Record) is a ConcurrentHashMap. The main Instrumented Class is a "JavaBean" with 30 or so fields that I want to exist in the HashMap. There will be about 20000 of these J...

Upgrading a J2EE application to Java 6

With the upcoming end of life (EOL) of Java 5.0. We need to upgrade our enterprise application to work with Java 6. The application can be deployed on both WebLogic, WebSphere & JBoss. (It's up to the customer's choice) Does anyone have an experience with such an upgrade? What issues should we encounter? What pitfalls we should avoid? ...

quickstart jboss (or tomcat) + beans tutorial

I'm a little daunted by the endless myriad options in Eclipse for starting a Java EE project that would run on jboss. I know what I'm doing once I have an environment that's configured, but was hoping someone could point me to a step by step tutorial on how to go from writing my first class to actually having jboss pick it up on startup...

Getting the absolute path of a file within a JAR within an EAR?

I have a J2EE app deployed as an EAR file, which in turn contains a JAR file for the business layer code (including some EJBs) and a WAR file for the web layer code. The EAR file is deployed to JBoss 3.2.5, which unpacks the EAR and WAR files, but not the JAR file (this is not the problem, it's just FYI). One of the files within the JAR...

difference between Struts 1.x and Struts 2.x

i want to know difference between Struts 1.x and Struts 2.x ...

struts comes under which layer of three tire architecture in real time projects

just i want to know that struts comes under which layer of three tire architecture in real time projects plz i need explaination? ...

General Question on Large J2EE web application, clearly separate application by modules. Possible use of business delegate pattern

Before I ask my "general" question, I wanted to present some quotes to my high-level general understanding of the business delegate pattern: "You want to hide clients from the complexity of remote communication with business service components." "You want to access the business-tier components from your presentation-tier components and...

How many modules are there in Spring? What are they?

just i want to know How many modules are there in Spring? What are they? ...

how to create a secure licensed j2ee application?

We are developing a j2ee application backed by any database of customer choice. We will sell to customers based on per user license price. How do I make sure, the application is getting used as per our conditions, i.e., not easily hackable? Are there any tutorials available? ...

How do various Java frameworks for web application design tie together

Hi All, I am a newbie to Java Web Application development. So far all I have used are plain old servlets, jdbc and jsps. I started to read about all the frameworks and I am totally confused and lost in the swarm of frameworks? So here are some questions I have: Are EJB3 and Hibernate competing technologies or can they be used together...

Is anyone using SpringSource tc server as a Tomcat replacement?

It looks like SpringSource has just released a GA version of their tc Server application server. It sounds from their description like it is a drop-in replacement for Apache Tomcat, with better "enterprise capabilities", such as "advanced diagnostics", better operations management, deployment, etc. (and of course, the support that they ...