The tag has no usage guidance.

learn more… | top users | synonyms

-3
votes
1answer
13 views

spring framework or initializing one class instance in another class

If have only two or three classes, what is the better way to go with the spring or initializing one class instance in another class. and why...?
1
vote
1answer
40 views

What is the recommended way to handle exception in Spring MVC

I have a Spring application, where we make few service calls to fetch data. There is a Data Layer in between the Controller and the Service layers. Controller (Request-Mapping) -> Data Layer -> ...
-1
votes
0answers
31 views

Spring security @PostAuthorize anotation don't work fine sometimes [on hold]

I'm using Spring Security 4.1.0 for security of my java web application. I use @PostAuthorize annotation for get method as follow: Interface: @PreAuthorize("hasAuthority('get')") @PostAuthorize("...
1
vote
0answers
58 views

Creating duplicate instances of objects for timeline functionality

I am working on a Spring-MVC based project, in which I would like to add Timeline functionality. The most important object in our project is the Note, there are objects associated with it like ...
0
votes
1answer
101 views

Spring Consuming Internal REST WS for MVC

Sorry in advance if this is a little confusing, it's difficult how to phrase this. I am currently using Spring MVC with some RESTful services mixed in for some AJAX client side logic. I am looking ...
1
vote
2answers
284 views

What should be the best way to run a long operation in Java Spring?

I am working on a price comparator, one of the module of application crawls through the list of website against the product stored in the database and updates the price in the application database. ...
2
votes
1answer
407 views

Using Websocket for a multiple-page website

Is using Websocket (in particular, in a Java, SpringMVC webapp, with the Spring Websocket support libs, but the question probably applies to any language) for a multiple-page website a bad idea ? I'...
3
votes
2answers
273 views

Simple and Composite transactional services: Question about separation of concerns and transactions

I believe I know the answer to this but I'm looking for any holes or anything I may be missing. This is focused on Spring and Java but could really apply to any programming stack. Anyway, we have a ...
1
vote
1answer
1k views

Object in Business layer same as DTO with logic?

Let's say I have a Spring MVC project, in which I'm using DTO to get data from a database and to pass data to the UI. Let's suppose that I have a UserDTO and in my business layer I have to do ...
0
votes
1answer
641 views

Spring web application deployment infrastructure

I'm interested in hearing out what's out there in terms of tips and tricks on deploying and maintaining a Java web application whilst keeping agile. I'm running solo on a startup project I'd like to ...
3
votes
1answer
687 views

Avoiding Double POST

We are implementing a RESTful webservice that will allow client applications to POST documents to it and it will store the document returning a unique identifier in the response. The clients will ...
2
votes
2answers
293 views

blurry lines between web application context layer, service layer and data access layer in spring

I'll admit I'm a spring newbie, but you can correct me if I'm wrong, this one liner looks kinda fishy in a best practices sort of way: @RepositoryRestResource(collectionResourceRel="people"...) ...
2
votes
0answers
179 views

Is it realistic to test web application with tomcat while production server are using WebSphere?

In our company we use WebSphere Application Server to hold web application but it is not available for developers because of license issue. We have been using Tomcat to test the web application and ...
2
votes
1answer
1k views

Passing multiple errors back from service layer

I am using Spring for a web application. To validate a user's input in a form such as for creating a Person entity I user JSR 303 validation to check for not null/empty or valid patterns etc.. Some ...
29
votes
5answers
55k views

Service layer vs DAO — Why both?

I have been working with SpringMVC, Hibernate, and some databases in a java web application example. There are a few different ones that do this, but this Spring 3 and hibernate integration tutorial ...
1
vote
1answer
2k views

RequestContextHolder.currentRequestAttributes() and accessing HTTP Session

Need to access HTTP session for fetching as well storing some information.I am using Spring-MVC for my application and i have 2 options here. User Request/ Session in my Controller method and do my ...
5
votes
1answer
258 views

What would be the market life of a JVM based software framework? [closed]

I saw how Struts 1 lasted from 2000 to 2013. I hear that people are moving from Struts 2 to Spring. But for a project that may need to be maintained for a decade or two, would it be advisable to opt ...
1
vote
0answers
442 views

How to integrate google search results in a spring mvc app

Here's what am trying to do (and searching for similar hasn't shown any results anywhere): On my website - provide an input box which will search google for results. I want to display those results ...
4
votes
1answer
2k views

How can I scale spring application context?

I'm currently working on a project that need to be dynamically scaled on demand according to the need. My question is about scaling spring context. My web application has a classical multi module ...
1
vote
4answers
2k views

When using Hibernate can we forget about Database Design?

We started (just me and my friend) working on a website. As a part design phase we have finished the drawing a Site Map, decided on the content in each of the web page and the navigation. As we want ...
3
votes
2answers
99 views

Handling fast growing multi-function services

My team has been developing a web business application for more than a year. It started quite small, but now it is growing bigger and bigger. I think it's time for refactoring. Looking at the code, I ...
1
vote
1answer
3k views

Spring MVC vs raw servlets and template engine? [duplicate]

Possible Duplicate: Why not Spring framework? I've read numerous articles about the Spring MVC framework, and I still can't see the benefits of using it. It looks like writing even a simple ...