java-ee

Calling EJB in JBoss from Tomcat & passing an object as an argument

I have the following EJB class instantiated in an application running in JBoss 5 public interface ISlaveServer { public String getId(); public String getName(); } @Remote public interface IMasterServer { public String getId(); public void addSlave(ISlaveServer slaveServer); public void removeSlave(ISlaveSe...

Will struts 1.2.4 work with Java5 ?

As of now we are using Struts1.2.4 with java4. We want to upgrade it to Java5. Java 5 has so many deprecated method in EE. Will struts 1.2.4 work with java 5? ...

Should I use Security Manager in Java web applications?

Is it sufficient to secure a Java web application with the rights of the user that is running the application server process or is it reasonable also to use SecurityManager with a suitable policy file? I have used to do the former and not the latter, but some customers would like us to also use SecurityManager that would explicitly give...

Can I use inheritance in remote/local interfaces? (EJB3)

An example: @Remote public interface SomeComponentRemote{ public Something processStuff(); } //-- @Local public interface SomeComponentLocal extends SomeComponentRemote{ } Is that allowed? Can i do this regularly? ...

ADF exception JBO-27014 in an editable table with LOV column

I'm working with ADF BC 10.1.3.4, I've 2 pages, a search page that forwards to a detail page with showOneTab component. In the first tab I've an af:table (Editable) with all controls available, Add, Delete & Commit The first column contains a LOV (SelectOneChoice) for each row. The issue scenario is as follows, Search for a school, sele...

Why EO validate is called twice with wrong values?

I'm working with ADF BC 10.1.3.4 I have a page with af:table (editable) with Commit button. I've added a custom method validation on the underlying Entity Object (Attribute Validation), If wrong value inserted & commited, the validate method is called twice, and I have a duplicated error message on the UI. Also, after updating the cell t...

How to load properties file in Google App Engine?

So I'm trying to add some ability to my project to allow user-defined properties in my deployment artifact - a simple key:value .properties file. I place the service.properties file in war/WEB-INF/my-service.properties And in my ServiceImpl.java constructor I have the following: String propertiesFileName = "my-service.properties";...

Problem with moving JSPs under WEB-INF directory

Hello I am facing a problem when I move my JSP files along with CSS and JS files under WEB-INF/web/ directory. The problem is that, when a JSP page loads, it does not load CSS and JS files. Please help if you have any idea about it. Thanks Umar ...

C# architecture guidelines vs JavaEE

When I first switched from Java to C#, I was really impressed with C#'s features. However, it seems to me that C# has yet to provide solid infrastructures in the way JavaEE does. Everytime I try to integrate C#'s features into scalable or complexe architectures, it always comes down to: How can I twist this so it can be MVC / MVP? Datab...

Command-line java decompiler (alternative to jd-gui)

I'm looking for a program to batch decompile java classes. And i found JAD, but it didn't support some new features of JAVA, and the benefit of this program is that it can execute from command line and generate a *.java file automatically. And i found jd-gui.exe program, it supports most features of java. But the shortcomming is that it...

Trimming inputs in JBoss Seam

I am making a web application using JBoss Seam 2.2.0, and I want to trim my inputs before receiving them, even before the Hibernate Bean Validation phase. Is this possible? I saw someone using a PhaseListener to do the same functionality. Is this the best way to do it? ...

Hibernate with Tomcat vs Hibernate with JBoss

I am a newbie trying to figure out the pros and cons of using Hibernate with Tomcat and with JBoss. I am developing a web application with Flex at the front-end, BlazeDS as the messaging service and Java at the back-end. We have decided on using Hibernate as the persistence mechanism but would like to know the trade-offs of using it wit...

What is the difference between a JavaBean and a POJO?

I'm not sure about the difference. I'm using Hibernate and, in some books, they use JavaBean and POJO as an interchangeable term. I want to know if there is a difference, not just in the Hibernate context, but as general concepts. ...

glassfish hosting

I will need to develop/deploy an EAR (webapp + ejbs, webservices) and its the time to know 'where on Internet?'. this Ear is a simple webapp jsf + ejbs 3, webservices. app: affiliations system for who: health sector users: aprox 2000 users are going to hit (get affiliated) to the app, aprox only 50 simultanely. server: sun glassfish v2 ...

Is it possible to run OSGi components within Weblogic 10.3?

Is it possible to run OSGi components within Weblogic 10.3? From what i have read it is not possible but im asking just to be 100% sure. There is no option to swap out WL 10.3 so there is no need to list any other application servers or OSGi containers. Thanx ...

Auto-Generating EJB3 Entity Beans

Hi, I would like to know if there are any tools to automatically generate EJB3 Entity Beans(for JPA) from a database schema. Thanks. ...

Deployment time checklist

Hi there, If you were to create a checklist of things you needed to do before you deploy a typical jee webapp that makes use of servlets, ejbs, o/r mapping, relational databases, etc what would be on it? Like any sort of time out properties and settings, pool sizes, jndi related properties, etc. that are crucial at production deployment...

how to access thread/busy thread counts within a jee filter under tomcat

Hi, I'd like to access my servlet container's thread/busy thread counts within a filter under tomcat. Is this a part of the jee standard? Or does it have to be tomcat specific? Is there a more general server load measurement? ...

What alternatives exist to Spring Batch to handle queued jobs?

I have been looking in to Spring Batch to solve a batch processing scenario with huge amount of data involved in each job. Are there any other solutions that compete with Spring Batch? To be used in a JEE environment. ...

What's the benefit of deploying a war file instead of an exploded directory?

I'm configuring an installer for our product which, up until now, was distributed as a war file, usually on tomcat. Once tomcat has exploded the directory, the user has to open a properties file and set their database connection information. I'd like the installer to do this (we're using install4j) but there doesn't seem to be a built-in...