j2ee

Thin(ner) standalone client for Enterprise Application

First a little background: I'm working on an enterprise application (ear) with an EJB module & an Application Client module. I also use hibernate JPA for persistence, and swingx for GUI. Those are the only third parties atm. This application is deployed on Glassfish. Everything was going well until I deployed my application for the fir...

Show status of file upload to servlet in browser

Hi, I need to show the status of file upload to servlet in the browser, how can this be acheived without using any libraries like jquery, what are the various options for doing this and which one is the best? Best Regards, Keshav ...

How to deploy a WAR file into Apache 2.2

Hi there! My server is an apache 2.2 who serves php applications, now I would like to configure it to serve J2EE applications as well. I think there is an Apache module to deploy WAR files into it, Could anybody help me? Thanks ...

Is Class.forName prohibited inside the J2EE container in general and weblogic in particular?

I have performance problem while doing first API call to my J2EE applications. So I wanted to do Class.forName to preload the classes while doing application initialization. But I heard that it is prohibited by J2EE standard/BEA implementation (I might be completely wrong). Is it so? Are there any other limitation of doing forName in J2E...

Weblogic EJB deployement: classes in jar inside ear are not accessible

I'm trying to deploy an ear containing an ejb application into a weblogic 9.2 server. This ear is created using maven (itself using the ear ant task). Maven produces the following structure: myApp.ear - META-INF - application - MANIFEST.MF - dependency-1.jar - dependency-2.jar - ... - dependency-n.jar - myEjb.jar The mani...

Programatically determine virtual host in J2EE servlet?

I'm attempting to programatically locate the virtual hostname for a J2EE servlet container. In this enterprise environment, the logical URL consists of protocol://application.company.com/, which is translated to protocol://virtualhost.datacenter.company.com:port/context/. Using ServletRequest.getServerName() gives me "application.compa...

How do I load/initialize my class as soon as my app is started?

We have a Java app that runs on Websphere. I have one class that I want to load and initialize as soon as Websphere loads, or as soon as the app is reloaded within Websphere, without waiting for the first web page to be loaded. I'm pretty sure loading it in our subclass of HttpServlet is probably the wrong place. So what is the right ...

Ideas for SOA Service Components

Hi, I am an undergraduate student from Mumbai University, now in my final year. The topic for our undergraduate project is "Service Oriented Architecture". As a part of this project, we are supposed to build reusable web service components, and then create a demo web application using those services. Please suggest me some ideas for t...

What are the best frameworks to use for web develpment?

Possible Duplicate: Best Web applications framework for Java? Hello I'm getting into Web application development and was wondering what would be the best frameworks to work with that's relevant to current practice(s) and dev paradigms. I was reading an old book (circa 2006) on JSP and server pages and eventually got an old we...

ActiveMQ Broker connectible only on Localhost

Is there a way to run a loopback JMS adapter that will only be detected locally? I'm not sure if my terminology is correct, but I want the ActiveMQ broker to only be connectible from the same machine that the broker is running on. ...

Strange issue, pointers appreciated

Hi we have a load balanced environment where same J2EE application is running on two VMWare based servers, hosted on same ESX Host. Hence, the OS/Platform/Hardware and everything else is same. Issue is that application deployed on one server responds faster than application deployed on the other server. The difference is response time is...

Java open sources list

Hi, Any idea what are the possible palces to find the list of available open sources/commercial softwares at a sigle place for java platform? , Yes i'm not expecting maven repositories , I just want to know if anyone maintaining the list available in a single place Thanks in advance, - Srinivas ...

Accessing MQ with JMS

hi, i am using MQ7 and trying to access a queue with JMS api's. Getting this error. Has anyone seen it before? How do i resolve this? TIA Exception in thread "main" com.ibm.msg.client.jms.DetailedJMSException: JMSFMQ6312: An exception occurred in the Java(tm) MQI. The Java(tm) MQI has thrown an exception describing the problem. S...

How do you run multiple instances of JBoss 4.0 (running under Eclipse) on the same machine?

At my office we run JBoss 4.0 and use Eclipse to debug and run the JBoss server. We're deploying simple wars, nothing terribly complex. However, I haven't yet figured out how to get this version of JBoss to either allow me to run separate instances of the war (HEAD and the Branch, for example) or to run separate servers controlled by two...

Get context-param in asynchronous method seam

Hi guys, I want to get a context-param configure in my web.xml. In a method call normally (with seam 2.2.0), I do this: readDirectory = (String) FacesContext.getCurrentInstance() .getExternalContext().getInitParameter( "ReadDirectory"); It's work fine, but in asynchronous method (@Asynchronous)...

Generating ANT build.xml automagically.

Hello everyone, I have an existing j2ee project which is very big and old. Therefore, my current building process is to open eclipse, file/export, and clic on War archive. While our company turn over is as fast as new build is needed, we have to create an automated process. However, I'm searching the fastest way to automate building. I...

Whether SOA can be Java Bean?

My final year project topic is Web-services using SOA. In this we were planning to build individual components like Login, Profile Page, Captcha, etc.. We will then build a demo web application using those components. I have two questions : Do these components(Login, Profile Page, Captcha) qualify as services? Can these components be...

J2EE: Singleton vs keeping things in session

When should an object (i.e. an application-wide properties file) be kept in the session, as opposed to creating a singleton to keep it? When should each of these approaches be used? Note: I am working on a clustered environment, if that makes any difference. ...

save file as lob or as OS file?

hello, I am developing a J2EE application that manages hundreds of jars (saved and loaded on the fly) to manage them i have two options: create a directory on the server that contains all the jars save the jar as a LOB in an oracle 10g database Could you help me to choose the best solution?What are the benefits of each option? than...

Any APIs or tools available to make web page tables highly configurable?

I am in the process of designing a financial web page (using Java, Wicket, JQuery..) where one of the page has around 5 tables and each table has around 10-15 columns. These columns should be highly configurable that means some clients want to view/hide selected columns or some clients may want to see column name as different from other ...