0
votes
1answer
9 views

Observe the specific type of event

I'm using observer model in Java EE, the idea is to let one service fire events to many observers. However, although all observers are listening to the same event, each of them is only interested a ...
4
votes
2answers
63 views

Why Double checked locking is 25% faster in Joshua Bloch Effective Java Example

Hi below is the snippet from Effective Java 2nd Edition. Here the author claims the following piece of code is 25% faster more than in which u do not use result variable. According to the book "What ...
-1
votes
1answer
37 views

Managing payments on my website

I am not sure if this has been asked before but I am not able to find the scenario online. I am planning to build a website where there are 2 types of users, sellers and buyers. Sellers register ...
0
votes
2answers
25 views

Save file to server application directory in Jersey API

I am using the Jersey API to consume the multipart data(photo) and I like to save it server application directory instead of any other drive. I saved successfully in any other drive like D drive but ...
4
votes
3answers
1k views

Should I use Security Manager in Java web applications?

Is it sufficient to secure a Java web application with the rights of the user that is running the application server process or is it reasonable also to use SecurityManager with a suitable policy ...
-1
votes
0answers
27 views

web project ideas for hibernate

I am undertaking a hibernate course.It will be over within few days and I am planning a small, powerful web application. A project that will mark my completion of the hibernate course. Please ...
3
votes
2answers
860 views

How does a java web project architecture look like without EJB3?

A friend and I are building a fairly complex website based on java. (PHP would have been more obvious but we chose for java because the educational aspect of this project is important to us) We have ...
1
vote
4answers
317 views

How GlassFish maps client requests to sessions

With EJB (3.x) you have a choice of Session Beans: @Stateful and @Stateless. If I understand the basics behind these two options: @Stateful - Each user/client gets their own and is thus typically ...
1
vote
7answers
2k views

Which java technology should i use , if i want to build website with thousands of users

Sorry for asking this question but i searched all java realted question but i got more confused. I am still not clear what should i start with 1)My main is build website in Java because someone told ...
0
votes
4answers
47 views

Logic Explanation behind this code- Java

I have this code written by someone else and I am having hard time to understand it. It is working fine and generates correct result but I couldn't understand how it works package you; import ...
1
vote
3answers
78 views
+50

Session update after clearing list of associated children is not deleting them

I am using Hibernate 2.1.8 with the following parent child relationship: public class Parent { private Set<Child> children = new HashSet<Child>(); } public class Child{ ...
0
votes
1answer
19 views

Exception :com.sun.jersey.spi.inject.Errors$ErrorMessagesException

I am using the Jersey API for the web services. I am sending the multipart data from client to server. I am getting exception when webservices start to execute. Please help me fix this issue. I tried ...
1
vote
3answers
53 views

Tomcat session cookie doesn't expire

I have a web application in Tomcat 7 which keeps user information in session as a DTO object. I also have Spring security enabled for my project which automatically redirects a user to a login page if ...
0
votes
0answers
20 views

User Log in with entities

I'm making a web aplication, using NetBeans, with Glashfish and derby database. I'm trying to make a logging page using jsp. Firstly i did it making a conection to the db and throwing sentences, but ...
0
votes
2answers
30 views

Best Way to Integrating Web Services within an Application [ESB]

When I have Java-based client-server application where the server consists of multiple web services, and each web service provides set of operations that my application needs to fully operate. Some ...

1 2 3 4 5 536
15 30 50 per page