Wnen using just JDBC, I typically have to think about the following problems. I don't think too hard and just make something work, but I am wondering how people handle these without an ORM or other library.
Eager vs Lazy Loading:
Do you just have a single domain object and have the dependent children be null and make it the responsibil...
I have several J2EE projects using servlets, each of which extends from a base class that handles the main doGet and doPost methods and calls more specific methods on the subclasses. Rather than have that base class as a class in each WAR file, I want to move it to its own JAR that each of the other projects can reference.
I'm using Ec...
I am currently in the process of improving my grails website performance and following many best practices I found on the internet, I currently need to make a decision between two solutions before refactoring my code
Solution 1 : Export all of my static resources (js, css, images) to a separate domain and server (as already done by SO ...
I have built a web application using Java EE platform that sells one of my software.
Now I want to give the work of marketing my website to various e-marketing companies. But as I will have to give the commission to them, I should know that who sends the traffic.
I think that one solution to above problem is:
Make a separate URL for e...
Hi everyone,
I am writing an online music store (wow!). I have written a shopping cart that caters for user to buy either an individual track or an collection of tracks (album or user-created playlist) and it works like a charm.
I have also created a checkout button which redirects to a secure (https) page containing credit card form ...
i get this hibernate warning pretty much every time i deploy a persistence unit on JBoss. its never the cause of any issues, but i was wondering if anyone knows what exactly this means, and can it be fixed/slicenced/worked-around in some way.
...
We have a weblogic batch application which processes multiple requests from consumers at the same time. We use log4j for logging puposes. Right now we log into a single log file for multiple requests. It becomes tedious to debug an issue for a given request as for all requests the logs are in a single file.
So plan is to have one log f...
In our legacy JEE application, there are loads of value object (VO) classes which typically contain only getters and setters, maybe equals() and hashCode(). These are (typically) the entities to be saved in persistence storage. (For the record, our app has no EJBs - although that might change in the future -, and we use Hibernate for pe...
Hi
I am writing a Facebook application that would use a Postgres DB along with Facebook APIs and run on Amazon EC2. (and I am hoping for heavy loads )
With Java, I know that DB would be my primary bottleneck and concurrency limitations of Tomcat would be the secondary bottleneck. I could alleviate DB issues with caching and concurren...
Hi,
I'm trying to implement a custom validation annotation in Seam.
We have a list of objects, lets call it arrayA, and arrayA is different dependent on today's date.
Next we have an input field stringB, stringB is some value in arrayA going through a transformation function funcC(...).
So basically, we can validate stringB using th...
I am passing the following VM arguments to a WS client application that runs on Websphere 5.1.1 JRE, one on Windows XP and one on Linux but get different behaviors.
-Djavax.net.ssl.keyStore=./key.jks
-Djavax.net.ssl.keyStorePassword=abc
-Djavax.net.ssl.trustStore=./key.jks
-Djavax.net.ssl.trust=abc
-Djavax.net.ssl.trustStorePasswo...
I am aiming to develop J2EE web apps for clients, and am wondering what OSS operating systems you all have had the best luck with? Windows is expensive, RHEL, SUSE Enterprise Linux, and Solaris are free to implement but have support options; BSDs are good servers but not much on the paid support side if the client wishes to have that ki...
Hi,
I am trying to figure out what are the most widely used frameworks on the data layer on a J2EE application server.
I would like help in knowing which are used out there and what are their Pros and Cons.
Thanks for the help.
...
I was reading a J2EE interview question thread and saw these. I realize that i cant answer these. If anyone wants to stab at this, i will generously reward points =)
What is the flaw with the Stack class?
Explain the Java Class loader mechanism. How would you prevent someone from overriding the java.lang.Object class?
Can interfaces co...
Hi!
I have a quite specific client-server design case and I want to ask for
suggestions. The task is about enhancing an existing system with new
functionality.
The system is composed of a server with public IP, 10 -
1000 CLDC clients with dynamic IP, and a device that
communicates with the server over the serial port (COM).
Client(J2ME):...
I'm using CMT in EJB3 state-less session beans. Also I've created my own Exception having the annotation "@ApplicationException (rollback=true)".
Do I have to use "context.setRollbackOnly()" when I want to rollback the transaction?
Can I just rollback the transaction by throwing an exception inside public method in the bean?
If so (the...
I am looking to improve front-end performance of my application, so I used YSlow tool in Firefox. When I ran this tool for my app, in the YSlow grade tab it showed up a issue 'Grade F on Compress components with gzip'. Seems to be that we need to compress the files(js, css) while sending from the server to client to increase the server r...
We have one websphere server with multiple applications running on it. They're all running on separate profiles, but they are somehow able to access each others static content.
For example, the following URLs both return images...
http://firstapp.com/images/image.gif
http://secondapp.com/images/image.gif
...when the image only exist...
I've created a J2EE application using a set of libraries. Works like a charm. Now it needs to be deployed into production. Our admin is very cautious about execution security and requires the permissions granted explicitly.
Going through all the code and looking up security requirements (especially the custom libraries) is time consuming...
I am developing a J2EE web application using spring. I need to integrate access to Sharepoint. I am able to list the folders and documents in a document library using the various webservices exposed by Sharepoint.
I want to download a document directly from the Sharepoint Document Library using the URL of the document. When I try to do...