j2ee

What is the default session timeout for a Java EE website?

If I do not specify the following in my web.xml file: <session-config> <session-timeout>600</session-timeout> </session-config> What will be my default session timeout? (I am running Tomcat 6.0) ...

J2EE and Grails: Communication with WebServices? Which framework?

Hy, I'm developing a Grails app which has to communicate with an existing J2EE application (built with EJB2). Both the "legacy" app and the new Grails app will offer services and consume them. For intercompatibility reasons, I'm thinking of communicating using WebServices. Now I'm wondering which frameworks I should use on both sides. ...

How do I deploy an ADF Business Component?

I wish to deploy an ADF business component to the middle tier and call it using RMI. I just cannot find any good documentation on this! Any help would be greatly appreciated. ...

Connection timed out when doing deployment of ear file

I getting the following error: Deploying application in domain failed; Error loading deployment descriptors for jrules-teamserver-SUNAS82 -- Connection timed out ; requested operation cannot be completed Error loading deployment descriptors for jrules-teamserver-SUNAS82 -- Connection timed out When deploying a ear file. What could be...

Deactivating Weblogic Load Balancing Optimization for collocated objects

Is there a way to deactivate the optimization for collocated objects that Weblogic uses by default for a specific EJB ? EDIT: Some context : We have a scheduler service that runs inside one node of the cluster. This is for historic reasons and cannot be changed at the moment. This service makes call to an EJB and we would like to load...

Is there a way to run a method/class only on tomcat startup?

I have a need to remove temp files on tomcat startup, the pass to a folder which contains temp files is in applicationContext.xml Is there a way to run a method/class only on tomcat startup? ...

J2EE -- is it just fluff or the real stuff?

I'm familiar with the LAMP stack and over the years have successfully deployed a handful of web sties based on it. I've used everything from Apache + modPerl, to PHP, to Ruby and Rails. With good use of caching my Rails site can sustain a pretty good load, but I'm not talking massive. I never really liked Java as a language, or XML for ...

Printing from the web with few steps

I need to add functionality to my J2EE-based wep application: 1) Take some page, probably with form controls, convert it to some printer friendly format. 2) Print this rendered format a) without showing it and b) without a print dialog. I'm not too worried about 1, but have no idea if 2a and 2b are even possible. Thanks for any help. ...

How to determine the order of listeners in web.xml

Hi, I got a bunch of servlet context listeners in my Java webapp, each of them gathering some information about the environment. Some of them depend on information which is gathered by another listener. But I can't determine the order in which the listeners are registered and called, so I have to duplicate code. I understand that the ...

HTTP input filter like mod_security for WebSphere?

Does WebSphere offer an HTTP input filter / firewall like mod_security? I know that it's possible to have Apache be the HTTP server front-end to WebSphere, but that type of configuration is beyond my influence. We're stuck using just what WebSphere itself can do. EDIT - To clarify, I am not looking for authentication, authorization, o...

J2EE Programming Skills

I have many years of experience in Java including Swing, Servlet and JDBC, but have never programmed for a J2EE server. Many job advertisements from large companies are specifically asking for J2EE experience. Are there specific skills or development environments that I should learn to qualify for these kinds of jobs? ...

IBM Websphere OutOfMemoryException.

Often, I found OutOfMemoryException on IBM Websphere Application Server. I think this exception occur because my application retrieve Huge data from database. So, I limit all query don't retreive data more than 1000 records and set JVM of WAS follow + Verbose garbage collection + Maximum Heap size = 1024 (RAM on my server is 16 GB and n...

JNDI without a J2EE Container (with JNP? Maybe some other provider?)

I need to run a JNDI provider without the overhead of a J2EE container. I've tried to follow the directions in this article, which describes (on page 3) exactly what I want to do. Unfortunately, these directions fail. I had to add the jboss-common.jar to my classpath too. Once I did that, I get a stack trace: $ java org.jnp.server.M...

JSE vs J2EE, college and career

I'm currently studying Computer Science at College where they mainly teach Java standard edition, I see that in the industry this isn't used much, instead J2EE is used. If my College is teaching me JSE rather than J2EE does this make me less employable? And what exaclt are the differences? different syntax? different way of prgramming o...

How to confire Apache to work as proxy (load balancer) for j2ee server?

Hi, there. I have apache web server installed as frontend and I have j2ee SAP Netweaver Application Server installed in Intranet server. How can I configure apache to forward requests and response to/from j2ee app server. for example, external apache server's ip is 9.20.1.1:80. internal sap server's address is 192.168.0.1/sap/bc/gui/sap...

How can I port a legacy Java/J2EE website to a modern scripting language (PHP,Python/Django, etc)?

I want to move a legacy java web application (J2EE) to a scripting language -- any scripting language -- in order to improve programming efficiency. What is the easiest way to do this? Are there any automated tools that can convert the bulk of the business logic? ...

Printing web page programmatically in Java

I have a J2EE based web application. In one of the pages there is a button labeled "Print". My problem is something like this: User enters tool names for e.g: ToolName1 ToolName2 ToolName3 Then clicks on "Print". The intended action is that tool details of the 3 tools are retrieved from db and then printed one tool per page. ...

How do I print a Word document in Java without opening it?

I have a J2EE based web application, in which on clicking a button I need to create a word file from Java. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually. Could anyone please tell me if this is possible and if so how to procee...

Learning j2ee, jboss, etc.

I've been doing "plain old java objects" programming for 10 years now, with Swing and JDBC, and I consider myself pretty good at it. But I start a new job in two weeks where they use JBoss, and I'd like to get a heads up and start learning all this stuff before I start. What are good resources? On-line tutorials, books, e-books, anyth...

Which is the simplest and least dependent AOP framework in Java?

I want to use an AOP framework, but I have two constraints. Any framework that I choose Must be fairly independent. I plan to use this in a legacy code base, and hence cannot upgrade prospective dependencies like commons-logging-XXX.jar to commons-logging-newest.jar. Must be fairly well documented, should not be too complex to unders...