j2ee

How to test a struts 2.1.x developer?

We employ a test to filter out candidates who should not be applying for a position. The tests are designed to be very low effort for those who should be applying and too much effort for those who are not experienced. Here is an example of a test we give to a candidate applying for a job of “java web application developer on an Oracle p...

Ejb 2.0 deployment issues on Jboss 5.1

I am deploying an ear application on Jboss 5.1.0. and i facing some issues. I had two ears one i had copied to deploy folder and the other in deploy-hasingleton. The ear which is in deploy-hasingleton is throwing some errors.when i serached in google i came to know that there is some issue with EJB 2.x on jboss 5.1.i was not able to fi...

Spring Security and the Synchronizer Token J2EE pattern, problem when authentication fails.

Hey, we are using Spring Security 2.0.4. We have a TransactionTokenBean which generates a unique token each POST, the bean is session scoped. The token is used for the duplicate form submission problem (and security). The TransactionTokenBean is called from a Servlet filter. Our problem is the following, after a session timeout occured, ...

Why should I pass Boolean as a parameter instead of "boolean"?

Hi, A co-worker asked me to change a signature from using a primitive "boolean" to using a classed "Boolean". He didn't offer a very good explanation why? Have any of you heard of this and can any of you explain why it matters or doesn't matter? Edit: He mentioned that it was good practice for public methods. The use of the field is...

When deploying an EAR into WebSphere, what's the cause of a "duplicate entry" SaveFailureException?

When attempting to install the EAR, the following exception results: Caught Exception installing ApplicationName com.ibm.ws.scripting.ScriptingException: com.ibm.websphere.management.application.client.AppDeploymentException: AppDeploymentException: [] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: M...

I want Domain Login in my web application

i am developing web based HRIs application which is to be deployed on intranet and for dat m using Frontend : jsp/servlets Backend : Oracle Application Server : Tomcat in my web application i want domain login which means by tracing currently logged in user he should automatically logged in my web application pl give me the possible s...

Using Protocol Buffers in J2EE?

Hello everyone, I have coded a server that uses Protocol Buffers in Java. A client talks to it using PB. I'd like to migrate the server code to J2EE and take advantage of the containers' built-in features like clustering. How can I have a service that receives PB messages and interprets them properly, and then gets them handled? I wa...

J2EE/EJB + service locator: is it safe to cache EJB Home lookup result ?

In a J2EE application, we are using EJB2 in weblogic. To avoid losing time building the initial context and looking up EJB Home interface, I'm considering the Service Locator Pattern. But after a few search on the web I found that event if this pattern is often recommended for the InitialContext caching, there are some negative opinion...

how to us .dll in java based web application

i have a web based j2ee application. is there any way to use .dll file in it. ...

Different ways of Creating jar files?

Cany one please give me what are the different ways of creating the jar files. Through programmatically we can create using java.util.jar Other than these method, please share your knowledge ...

How to use Facebooks Graph-API from a Servlet

Hi everyone, I need to access Facebook from a J2EE-App (serverside). I first had a look at this project: http://code.google.com/p/facebook-java-api/ , but as I need to create Facebook-Events and invite people this does not help. So I guess I need to use the Graph API, but Igot no clue on how to perform those HTTP POST requests needed -...

Setting Struts2 Action members from jsp ..

I have a html form with action attribute pointing to struts action Here is a JSP <s:select name="roleId" id="roleId" list="roleMap" headerKey="" headerValue="SELECT" theme="simple" value="%{roleId}" cssClass="dropdown_menu"></s:select> It generates html like <select name="roleId" id="roleId" class="dropdown_m...

in a J2EE application when does a listener get called?

I have a J2EE app and it has a listener in web.xml. Listener contains a method called contextInitialized I want to know when does contextInitialized actually get called? From my reading I understand that it gets called when deploying the application. Can there be situations/scenario's where it could be called after the application h...

Format attribute of <bean:write> tag in Struts

Hello All, I am developing a web application using Struts 1.2.7 I want to print a list of integers using the tag. I searched and found that the format attribute is used to print the desired result but was unsuccessful. What should I pass as the value in format to print 3 digit integers/floating point numbers. The code sample is as fo...

Glassfish V3 SSL configuration CipherSuites may not be null at

I have configured SSL with glassfish V3 i have followed this http://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-v3-and-ssl/ but now on console i am getting following exception constantly but on front end it works fine. SEVERE: ProtocolChain exception java.lang.IllegalArgumentException: CipherSuites may not be null...

How best to modernize the 2002-era J2EE app?

I have this friend.... I have this friend who works on a java ee application (j2ee) application started in the early 2000's. Currently they add a feature here and there, but have a large codebase. Over the years the team has shrunk by 70%. [Yes, the "i have this friend is". It's me, attempting to humorously inject teenage high-school c...

How to change a Datasource's username/password at runtime in a J2EE app?

I've deployed a web-module which connects to the database via a datasource configured in the J2EE application server. Currently, the user/password for the database connection is set in the proper J2EE application server's datasources configuration file. I want to change during runtime the datasource's user/password. (e.g.: implement a ...

J2EE fast track (Learning Enterprise Java real fast)

Hello, We just started a new project in J2EE in our office and i am required to participate effectively. I mostly work on web applications and I use PHP/MySql but I also know J2SE and have written couple of standalone applications. I need help and advise on how i can learn J2ee very fast so that i can blend into the project without diff...

GLassfish SSL Configuration Page Level

How to secure only some of the pages from the whole web application under glassfish V3 ? ...

Performance of a proposed JEE architecture

I have concerns about the performance of the following architecture: j2ee application in an appserver, ejb session bean and DAOs remote (rich) client, a swing app. A classic, form-based client only one stateless ejb, the ejb is accessed via web services, not rmi, through a homegrown framework each web service request will get authentic...