j2ee

Running Apache Geronimo in production

If you're running Apache Geronimo in production why did you choose it over other application servers and what are your experiences with running Geronimo in production? Can you also please share what servlet engine you decided to use (Tomcat/Jetty) and why you made this decision? UPDATE: So far this question got two up-votes and one sta...

How should I structure resource bundle property files which are used by jsps?

I am currently working on converting an existing web application to support an additional language (namely Welsh). My proposed approach is to extract all displayed text into property files and then access the text using JSTL fmt tags. My question is: how should these property files be structured? I know they need to be on the classpath ...

Any reason to use JBoss 5 over Glassfish v2/v3 Prelude?

JBoss 5 has just come out of beta after 2 years, giving us a JEE 5 compliant container... several months before the release of JEE 6 (JavaOne in May or thereabouts 2009). We've had Glassfish v2 for awhile and now have Glassfish v3 Prelude. Is there any reason to JBoss 5 over these? I've had the feeling for the last year or more than J...

Toplink Objects not showing up under the Toplink Map node in JDeveloper

Hello, for some reason I cannot see any of the generated objects under the TL Map. See the included image (Sorry but it will not render using the community wiki software.... http://img261.imageshack.us/my.php?image=nothingundernodetn5.png ...

Does the -XX:+HeapDumpOnOutOfMemoryError option work with Oracle Application Server?

We are sometimes getting an OutOfMemoryError in production and I would like to be able to analyse what caused the problem, or at least what was going on when it occurred. It seems that I should be able to get an HProf profile by using the -XX:+HeapDumpOnOutOfMemoryError option, but I have read that this is JVM specific. Has anyone succe...

Image transcoding (JPEG to PNG) with Java

Hi In my Java application I would like to download a JPEG, transfer it to a PNG and do something with the resulting bytes. I am almost certain I remember a library to do this exists, I cannot remember its name. Can anyone help me? Thanks! ...

How do you enable JMX in Websphere?

I would like to use JConsole to monitor my Websphere application, but I am not sure how to enable JMX. ...

Security of Tomcat versus WebSphere versus WebLogic

The company I work for sells a J2EE application that runs on Tomcat, WebSphere, or WebLogic. We have a customer that is trying to decide between Tomcat and WebSphere. They're leaning towards WebSphere because they're concerned that Tomcat has more security holes. After searching around on the web, I've been unable to find any sites or...

Securing MBeans operations

I've got some MBean operations that I need to secure. I would like the users to be required to log in as the server admin and I would like this to be setup programmaticly or, preferably by a config file in the WAR, when the app is deployed. I want to avoid requiring the admin to set this up as a deployment step. We're running glassfish...

Successful install of SJSAS 8.2EE Patch 2 on Solaris 10 x86?

"no asnss in java.library.path" This is what I get when trying create-domain on Sun Java System Application Server Enterprise Edition 8.2 (build b30-p02) Solaris 10 Generic_137138-09 i86pc i386 i86pc. I have also tried SJSAS 8.2EE Patch 6 and got the same error. Nothing seem out of place in the install log. Please advise... ...

Advantages/disadvantages of Glassfish v3 Prelude vs Springsource dm server for Web applications?

Both of these appservers are at least in part OSGI based. One (Glassfish) is obviously J2EE while the other isn't. Now I'm at the stage of choosing a platform for a new project and the natural choice is Glassfish v3 Prelude. This does raise the issue of perhaps we should be using S2AP instead. The question then is this: does the spri...

SAML identity provider as Java servlet filter?

Can anyone recommend one? Thanks -Morgan ...

favicon.ico in Java WAR file

Can anybody provide some instruction on how to setup a war file to show a favicon.ico in the browser address bar? ...

Are EJB Timers supposed to be persistent/reliable ?

E.g. if I set a timer to expire every day at midnight, what will happen if one "misfire" (does not trigger the callback because the server is down, for instance) ? I can't find that in the documentation. Is there a way to make this timer triggers the callback as soons as the server restart ? PS: I know about Quartz, i'm evaluating EJB ...

JPA/Hibernate query optimization with null values

I'm using Hibernate's implementation of JPA and am seeing poor performance as multiple SQL queries are issued for each entity that is fetched. If I use a joined JPA query it generates just one SQL query but doesn't find rows will null relationship. Example, consider this simple schema. A person lives at an address and is employed by a c...

are there any free websphere 5 profiling tools?

i am looking for a client application that can connect to an EAR file within websphere and give me information like memory usage, heap size, etc. ...

An alternative to Hibernate or TopLink?

Is there a viable alternative to Hibernate? Preferably something that doesn't base itself on JPA. Our problem is that we are building a complex (as in, many objects refer to each other) stateful RIA system. It seems as Hibernate is designed to be used mainly on one-off applications - JSF and the like. The problem is mainly that of lazy...

JPA map collection of Enums

Is there a way in JPA to map a collection of Enums within the Entity class? Or the only solution is to wrap Enum with another domain class and use it to map the collection? @Entity public class Person { public enum InterestsEnum {Books, Sport, etc... } //@??? Collection<InterestsEnum> interests; } I am using Hibernate JPA...

Vehicle Tracking System[java/j2ee]

I am interested in building a vehicle tracking system using GPRS. However, I have some questions for anyone who has done this before: Is GPRS the best technology to use? Any problems people are aware of? I am planning on using Java/J2EE - is there any better technologies? If someone has built this before - do you have some examples of ...

How to create hyperlink in Spring + JSP

What's the proper way to create a hyperlink in Spring+JSP? There must be a better way than just coding in the <a href="..."> tag. Take for example a page that displays people. The URL is people.htm. The corresponding controller gets people from the database and performs optional column sorting. The JSP might look like: <table> <tr> <t...