j2ee

java - reading xml file from jar

I am trying to read the an xml configuration from a jar file deployed to dm-server here is the code Reader fileReader = null; try { fileReader = new FileReader("test.xml"); } catch (FileNotFoundException fnfex) { fnfex.printStackTrace(); } catch (IOException ioex) { ioex.printStackTrace(); } i was able to read it if i just write a...

Different session timeouts for different users in same web app

I have a requirement within the same web application to set 2 session timeouts. 60 minutes for regular users and 3 hours for admin users. I am told this is not possible and I will need to host a separate web app for the admins. Is there any workaround? UPDATE: Thanks to Bozho and Kurt's replies - I have a followup question. Does ses...

How to access remote EJB 2.1 bean on JBoss 4.x from outside container

I've got a session bean, defined in an ejb-jar.xml and jboss.xml. It's defined with an ejb-name, remote and home interface and an implementation. When I fire up JBoss and view the JNDI tree the home interface seems to be there under the JNDI name of the ejb-name (I've tried defining jndi-name and local-jndi-name in the ejb-jar.xml with ...

How to disable default servlet container session?

In J2EE web application, how do I disable the default HttpSession creation? We have our own way of tracking session, we don't use default jsp/servlet session but the default session sets cookie in browser which I would like to avoid. Right now on every JSP page we specify as session="false" in page directive but often some developers mi...

Elearning Platform technology, design and architecture.

I got a requirement wherein we have to develop e-learning platform using Flex and J2EE. I am new to e-learning. can someone help me to identify what are all the api required, how to start design and architecture. Requirement is to develop a course management system, an authoring tool and SCORM compliant player. authoring tool should be d...

J2EE Security - Which method to use?

Which one is the best approach/method to implement security in J2EE?(JPA/JSPs) I'm working on a personal project so I can learn J2EE and I am a little confuse on how to approach the AUTHORIZATION and AUTHENTICATION process on my website. I have different roles and I don't want certain users to access certain parts of the website. So I'...

Redirecting after writing to response throwing exception

Am working on an application which has a requirement to download bulk data from a file server with a maximum file size constraint fixed at 3 Mb.It means i would have a maximum download capacity of 3Mb.I am writing the input stream to the response output stream .My problem is I need to redirect my response to a jsp page after I downlaod.N...

Difference between J2SE & J2EE

What is the difference between J2SE & J2EE.. Many thanks... ...

Glassfish timer service: what am I doing wrong?

Hey guys, I'm trying to set a timer for a Stateless EJB in Glassfish 2.1: @Stateless(mappedName = "ServiceEJB") public class ServiceEJB implements ServiceEJBRemote { // other methods ... // defining the timer @Schedule(second="*/15", minute="*", hour="*") public void test(){ System.out.println("++++++++ timer!!! ++++++++...

IdentityManager seam problem

Hi, I have a problem with IdentityManager and seam. I explain my problem: In my application, I have a page to add permission to a role. The method to save it is here: JpaPermissionStore jpaPermissionStore = (JpaPermissionStore) Component.getInstance("org.jboss.seam.security.jpaPermissionStore", true); List<Permission> permissio...

Session Management - Websphere Application Server

Hello, I have a question about session management. Here's the scenario. There are 3 groups of users on the same network. There is a J2EE application that is set to end a user's session after 60 minutes. The groups are A, B and C. Now Group A, B and C all log into the J2EE application and start using it. Group A users can use the appli...

Strategy to keep string constants in sync between java/flex?

Say you have a web application that has a lot of business rules built around if-then comparison of String constants. These are used on both client-side and backend code, and at the moment are hard-coded badly throughout both places with lots of duplication and sometimes errors. What's a sensible way to refactor them out? Unfortunately...

2 man project - java+database programmers

My friend and I are entering our final year at the university (M.Sc.) in 2 months and as such we have to start thinking about our dissertation (as we decided to write one together). After giving it some thought we came up with a topic which would involve both a lot of thinking and implementing, as we really wanted to do something practic...

j2ee versus .net development estimates

This is not a request for opinions. Please only respond if you are 1) a strong j2ee/oracle developer 2) a strong .net/sql server developer, and 3) have developed nontrivial web apps in each framework. My question is what is the relative development time for a given specification in each platform. Let's say for the sake of comparison t...

PaaS : How to build ?

Hi, Experts I wanted to make a web application through which : user(end user) can create his own web application online. which will be integrated with the databases and application/web servers and user can also publish that application withing that application only... Doing some research i come to know it goes under category...

What is a good stack/cms for a java based enterprise intranet?

I am considering hippo It need to have a debian/ubuntu friendly licence. Thanks, ...

Classloader problem with EJB

Hi! I'm working on a project which includes persistence library (JPA 1.2), EJB 3 and Web presentation layer (JSF). I develop application using Eclipse and application is published on Websphere Application Server Community Edition (Geronimo 2.1.4) through eclipse plugin (but the same thing happens if I publish manually). When publishing ...

Why are the init parameters not available in init method for java servelets

Why are the init parameters not available in init method for java serveletsif they are accessed by their default url ...

PHP developer looking for solutions equivalent to j2ee architecture

I am a PHP developer, I read about J2EE technologies and I want to implement such technologies( n-tier, EJB, JPA...) with PHP and all what coming with ( MySQL, Apache..). ...

Developing a Desktop Application for my college project.

I am new with Java and am interested in using J2EE for my next college project. My question is how good (or possible) is it to use J2EE for desktop application. Where do I start (easy to understand websites/ books)? And is there a good free IDE for developing J2EE applications? Thank you for your help. ...