j2ee

Silverlight and J2EE

Hi All, I am currently experimenting with silverlight for the first time and I am interested to know if there any frameworks which can help utilize a J2EE backend. I have read online that silverlight supports socket connections which seems very interesting given the nature of the applications I am building. Does anyone know of any reas...

Weird DB2 database issue : Websphere Connection Pooling

I am running a query from my java based web app running in a Websphere container. This query however, being pretty simple, fails with a weird erorr as follows: [5/15/09 16:50:33:828 IST] 0000001e SystemErr R com.ibm.db2.jcc.b.zd: Invalid data conversion:Requested conversion would result in a loss of precision of 40000 [5/15/09 16:...

Project based on J2EE

Would you start J2EE project nowadays if you have other alternatives? UPDATE: I think little clarification is needed: Is it worth investing in J2EE if practically everything it claims to offer can be achieved by using other technologies? To be honest, J2EE scares me by its monstrosity and I foresee substantial maintenance and/or evolutio...

How to keep Mysql high availability while column datatype & value are changed?

Hi, I am looking for a strategy to keep mysql and web service high availability while changing column datatype and value. The scenario is: for example, a student table has columns student id(Integer), student name (vachar) and rank percentage (Integer). The integer value in rank percentage is the percentage integer number, for example,...

Can i regenerate my own session id in servlet?

I know once you run yor jsf application the server will generate a session id, But how can i do like once the user login to the system then regenerate the session id ? Can i do this? ...

simple hibernate session management

hello good people! i'm a bit new in the world of hibernate and i lack knowledge in certain domain when it comes to java.I know for a fact that a good piece of software that uses hibernate use a session manager that can provide different kind of session.i'll like to create for now a simple session manager on top of which i'll build gradua...

Spring 3.0 and SOAP - What's best practice?

Hi guys, I'm reimplementing a web app in Spring, and I need to expose the business logic with SOAP. I'm going for Spring 3.0, and I'd like to know: what is the recommended way of exposing Spring beans? The rest of my stack is Tomcat 6, JDK 1.6, Struts 2. Cheers Nik ...

How effective is executeBatch on a Prepared Statement?

Subject to this question, asks it all:How effective is executeBatch method? Is there a performance benchmark, that says.. 'if you have 1000 records to be inserted, using a executeBatch instead of executeUpdate saves you x amount of database cycles?' Or Is this just a convention? EDIT: Here is what I am working with: a DB2 V 8.1 hoste...

working with one-to-many relationship in hibernate

hello good people.I'm still learning what hibernate can do and this time i'm trying something that seems not to be working. i have 2 tables users and contacts.as you can guess contacts hold the relationship by have user_id as foreign key. here are snippet of the 2 mapping files. this first is from users.hbm.xml <set name="contactsdetail...

Connection Pooling - How much of an overhead is it?

I am running a webapp inside Webpshere Application Server 6.1. This webapp has a rules kind of engine, where every rule obtains its very own connection from the websphere data source pool. So, I see that when an use case is run, for 100 records of input, about 400-800 connections are obtained from the pool and released back to the pool. ...

Java Header not displayed

i am inclduing a header.jsp in my layout.sp but it does not get reflected in the browser and have tried both mozilla and ie even after refreshing cache.. header.jsp content--- <h1>Login Application</h1> layout.jsp content-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tr...

When to 'IN' and when not to?

Let's presume that you are writing an application for a retail store chain. So, you would design your object model such that you would define 'Store' as the core business object and lots of supporting objects. Let's say 'Store' looks like follows: class Store implements Validatable{ int storeNo; int storeName; ... etc.... } So, your ...

Checking patch integrity

Hello all, I am working on j2ee web application and we have the following requirement: it should be impossible to install application patch with arbitrary classes. Right now patches are done by manually adding jars with fixes or even individual classes to server classpath or to application EAR. We also cannot use signed jars since it is ...

Why do we have to specify "methodParams" in struts validation plugin?

I have checked the validator source code and the examples of user-defined rule in the book "Jakarta Struts Live." When people define validator rules in validator-rules.xml, the following declaration for "methodParams" seems to be the only choice: methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAc...

Retrieve data in IMS from J2EE application

Currently, i have a J2EE application that retrieves data from IMS database through MQ. We would like to fetch data directly instead - without using MQ. Is there any option? Any connectors that we could deploy in our server (WAS 6) that would help us communicate to IMS and retrieve data from it? Any links in this regard would also be help...

Glassfish Custom Authentication Module?

I know glassfish can authenticate against an LDAP server, I also know it can authenticate against my own database. What I would like to do is authenticate users against LDAP, but get their roles from my own database. Where would I start learning how to create my own custom authentication module? ...

Toplink & java storing word or pdf files

I'm creating a simple page with a form. Part of the form requires uploading a pdf or word document. This will be a small file, so ideally I would like to store it in my oracle database. I'm using ejb and toplink for all of my persistence. What object should my entity class have that will hold a word or pdf file, and how do I map it to ...

Java development standards and tools (compared to C#)

I don't have any knowledge of Java platform and I wonder which tools (and methodologies) could be used to help developing maintainable code written in Java. I know one can use: Agile methodology in any environment jUnit/jMock for unit testing code (similar to NUnit/Moq in .net world) Checkstyle for coding standards - is this similar t...

Build J2EE Web Application

I have a lot of experience with HTML, SQL. Also a lot of experience in Java. But I don't know how to build a Database driven J2EE Web Application. From what I understand I'll be needing Spring, Hibernate, EJB 3 as a good foundation of technology to get started. I'll need a MVC framework (JSF, Spring MVC, Struts, etc.). I have gone th...

How to differentiate between test and production properties in an application?

We're developing a big J2ee e-sales solution. It's got a lot of integrations: CMS, ERP, Mail server etc. All these systems are divided into test and production environments. We need to deploy our application to our test servers with test configuration and when deployed to our production servers it should use the production configuratio...