j2ee

How would you lock down an online form?

We have a web application that is based around a form that gets passed around. Unfortunately when people look at it, it is editable. So two people can edit it at the same time and overwrite their changes. How would you go about locking the form (and any multiple parts of the same form because it is broken down into multiple pages) down s...

Is Drupal ready for the enterprise?

Is anyone out there using Drupal for large scale, business critical enterprise applications? Does Drupal's lack of database transaction support dissuade potential users? Are there any other lightweight web-frameworks based on dynamic languages that people are using for these types of apps? What about Java portals such as JBossPortal or...

EJB Transactions in local method-calls

In the following setup, does method B run in a (new) transaction? An EJB, having two methods, method A and method B public class MyEJB implements SessionBean public void methodA() { doImportantStuff(); methodB(); doMoreImportantStuff(); } public void methodB() { doDatabaseThing(); } } The ...

Eclipse configuration docs to link and edit an existing web app

I have been trying to learn how to use eclipse for J2ee web development and have heard alot of great things about it. I have had a lot of success my self When starting a project from scratch and building everything within the eclipse work space. This was all fun and games however. For part of my job, I am part of a team that builds web...

Spring context files organization and best practices

We have started using Spring framework in my project. After becoming acquainted with the basic features (IoC) we have started using spring aop and spring security as well. The problem is that we now have more than 8 different context files and I feel we didn't give enough thought for the organization of those files and their roles. New ...

Java Web Service framework/library, which is a better one and why ?

Currently I am evaluating number of web service frameworks in Java. I need web service framework that will help me to expose some functionality of existent application running on JBoss, The application is mostly developed using Spring and POJOs (no EJBs). What I need is a framework having following properties: It should provide tools ...

I have a J2EE application that needs updating within a client's intranet

I have a J2EE application that runs fine and is accessible to the internet. Some of our prospective customers would like to use it, but are unwilling to send their data over the internet. As a workaround I've thought of providing them with the war file and letting them run it themselves. The problem is: how do I make it trivial for the...

How do I push an update to a war file to clients?

Assuming my clients are running my J2EE WAR application on their intranet, and I have an update for them... how do I push the updated war file to them? I'd like it to be automatic and require no human interaction on the client's side. Can this be done? Any help would be appreciated. ...

Do common JARs have to be repeated accross WARs in an EAR?

I have a JAR file for authorization. I need it for each of my WAR files. All the WAR files are packaged in an EAR file. Do I have to repeat this common JAR in every WAR, or is there a structure for common libraries? So my example looks something like this... big.ear - META-INF - MANIFEST.MF - application.xml - appl1.war ...

Should I implement source control for j2ee application server configuration files?

For a typical J2EE web application, the datasource connection settings are stored as part of the application server configuration. Is there a way to version control these configuration details? I want more control on the datasource and other application server config changes. What is the standard practice for doing this? ...

J2EE Authentication Error Handling

We are currently trying to implement a web application which is using the J2EE authentication mechanism with a FORM-based login, inside the Websphere 6.1 web container. If the authentication is successful, we have everything working; the LDAP membership groups are being retrieved, the group to role mapping is being performed, and the ro...

GlassFish v3 Prelude - admin questions

I've been mucking around with GlassFish v3 prelude this evening. A couple of things I'm not sure about is how the security works. It installed like a dream, so the first thing I did was remove the anonymous account and setup an "admin" account with "mysecretpassword" and specified the asadmin group for this user in the admin realm. At ...

Transaction options over Web Service calls

Does anyone have any insight into transaction options available over web-service calls? 1.) There are two applications that we have that need transactional communication between them. 2.) App1 calls a web service on app 2 and then makes some changes to its own db. the call on app2 and the changes to it's own db need to be co-ordinated. H...

java CLASS/JSP file on-the-run deployment

Oracle 10g Application Server, Java 1.5 + JSF (presentation layer) + iBatis (database communication layer) In the place where I work at the moment, there sometimes rises the necessity to do small tweaks to the deployment directory. I don't deny that it's not the best practice (if I stay long enough on this site maybe I'll end up the exa...

How to "hot" deploy war dependency in Jboss using Jboss Tools Eclipse plugin ?

Hello ! I'm using Jboss tools (3.0.0 alpha, on Eclipse 3.4) to hot deploy my war on Jboss 4.2.3. My war depends on another project (packed inside a jar) I 'm working on. But, when I save a file in this project(the jar project), Jboss Tools republish the compiled classes of the war project, but does not re deploy the classes changed in th...

Hibernate second level cache with Spring

I'm using Spring + JPA + Hibernate. I'm trying to enable Hibernate's second level cache. In my Spring's applicationContext.xml I have: <prop key="hibernate.cache.provider_class">net.sf.ehcache.hibernate.SingletonEhCacheProvider</prop> <prop key="hibernate.cache.provider_configuration_file_resource_path">/ehcache.xml</prop> When I run ...

What is the best way to learn J2EE practically?

What can be a good web application to start building while learning J2EE concepts, so that these concepts could be applied practically? ...

Java web application properties

Does Java and/or Spring have the concept of properties? I have bunch of domain models, each of which has several properties. Example: public class Person { private String name; private Date dateOfBirth; private float height; private float weight; // getters and setters not shown } When displaying a person, the prop...

How to move the environment details outside the EAR

Hi All, Our project is a medium size web application developed using RAD 7.0 on WAS 6.1/hibernate/struts which moved to production. Currently we have hardcoded the ip address of the production system in the property file and database schema details in the hibernate config file. Our client wants us to come up with the solution for keep...

How perform Junit tests with Struts - Ibatis

Hello everyone, im using Struts 1.2.x and Ibatis 2.x version for development, so i finish yesterday and now i want to perform test this is my first time trying to work with JUnit, I already make test but in JavaApp not running on server, so how can I simulate or generate mocks with server behavior, and wich mocks are recommended for Stru...