Hi all,
As a consultant, I am responsible for designing the architecture of an application for an external company. The requirements for this application are rather simple and the whole thing...
Type: Posts; User: spiff; Keyword(s):
Hi all,
As a consultant, I am responsible for designing the architecture of an application for an external company. The requirements for this application are rather simple and the whole thing...
Allright, thanks Luke!
You could always retrieve the current SecurityContext in your entity using SecurityContextHolder.getContext() and perform access control manually. Not very clean as it would introduce a runtime...
The pointcut you configured will only match Spring-registered components, i.e. classes declared as <bean>s in your application context or classes annotated with @Component (or some other stereotype...
The Spring Security filters are not applied to your entities because they are not managed by Spring. Your entities are created either through the new operator or your ORM (e.g. Hibernate), so no...
Hi,
Before opening a JIRA for this, I would like to get your feedback first. Consider the following applicationContext.xml snippet:
<sec:http entry-point-ref="entryPoint">...
Hi guys,
We are planning on developing a layer of REST services to expose services hosted on a legacy system. These services will be used by a classic web application and native mobile phone...
Hi guys,
Considering the common use case of a user creating a new account on a web application and the application sending a confirmation email to the user's address. From what I've seen, this is...
Thanks Luke, works like a charm. As you said, our previous approach wasn't working because we had put filters='none', so the filters didn't catch the updated SecurityContext. Settings...
Turns out that rather simple solutions to both problems had eluded us.
1. We used a hidden field to contain the actual value, and JavaScript to convert to and from the combo boxes.
2. We...
Hi guys,
We've been binding entities directly to our views quite successfully using the different PropertyEditors. We are now running into 2 situations which seem to mandate the use of an...
Hello all,
Our application will use Spring Security 3.0 for authentication and authorization purposes. Two types of users will need to access the application: support users, which have access to...
I might be missing something here, but I don't see how this could be done with AOP. Since it's the service client that knows what associations he needs to be loaded, it's build the Runnable itself...
Well, in step 5 the controller would receive associations for root id=1 and version=2 instead of what he expected. In a way, you could say that it would receive the latest data, which could be seen...
Thanks for replying.
About problem 1, I understand that the transaction will be opened on the database side only, but isn't that in itself a performance hit? Are there any numbers that would...
Hi guys,
While a lot of posts have been written on the subject of OpenSession/EntityManagerInViewFilter, I couldn't find any that mentions its flaws. From what I understand, and assuming a...
Somehow the code is now working, but I'm afraid I don't understand why. I only made some cosmetic changes - initializing the parameter map a little earlier - but nothing else. Maybe it was related...
Looking at the logs, I see the following (slightly edited):
<Debug> <org.springframework.jdbc.core.simple.SimpleJdbcCall> <Added row mapper for [lookupMasterListing]:...
Hi guys,
We're using Spring 2.5.6 to call a stored procedure on an Oracle 9.2 database. The stored procedure looks like this for the moment:
create or replace
procedure...
I would've liked to avoid declaring callTxMethod in the interface, but it seems I won't have any choice.
Instead of the AopContext.currentProxy() method, I've made the component...
Hi guys,
I'm sure this has been discussed before, but I can't seem to find anything on the subject in the forums.
I have a Spring bean that needs to be wired to its proxied self so that it can...
You're absolutely right. I moved the discussion over here.
Hi guys,
I'm moving a thread that started here to gather more input.
dxxvi initially asked whether using the OpenEntityManagerInViewFilter in a JSF-based web app would allow him to avoid...
Hi Adam,
Thanks for your answers, it confirms a few of my thoughts.
The SPR-3179 phase listener uses Spring's PlatformTransactionManager so it has full control over transactions, although the...
I'm going through the same process of creating a phase listener to manage transactions and entity managers - basically reimplementing what Seam already offers :)
While I do agree that you don't...