JDC, you should probably split the Shiro discussion out into a separate thread because it isn’t directly related to the Spring add-on so people with experience might not be seeing your posts.
That being said, take a look at my blog post from a while back on
Shiro, Vaadin, and Push . Even if you are not using push, you may find the the techniques useful. Basically I switched from using Shiro’s web security model to using the application security model. The web model with filters doesn’t work well for a single page, JavaScript application like those created with Vaadin.
I’m happy to provide more detail if you need it but we should move to a new thread. I’m successfully using Vaadin and Shiro together in multiple projects authenticating off of a custom DB in some cases and ActiveDirectory in others (via Atlassian Crowd).
Hi Alexander, in first place congrats for your project.
I have been using it since Vaadin 7 was released, but now I am having some problems.
I am using Vaadin 7.3.1 and Addon 3.1;
My project needs to use Push, and there is where the problem started, I had to change the Jetty version to 8+;
Now Push works, but my project can’t “find” session beans. “Scope ‘session’ is not active for the current thread;”
I know there is the necessity to use the UI as prototype, but can’t I use the other beans as session?
I am gradually changing my beans to prototype scope, but, is it going to be used one for each user session?
Maybe you could use the event bus from Guava (Google). This would not require anything special. Just inject the bus in the UI and create the @Subscribe methods and events to start with it.
Please take a look at this post for a quick introduction:
http://morevaadin.com/content/another-way-decouple-your-server-components/
For Spring Integration you have now an official separate project. Works very well and it’s really easy to use.
As a brief, you have the @SpringUI, @SpringView and @SpringComponent class annotations with which you can have the application “autowirable” for injecting Spring services and utilities:
Hi Folks,
After a Week of Exploration of Vaadin and Spring Integartion I wrote some code for saving entity class object in database using Spring and Hibernate. I done this project using Eclispe Kepler and Vaadin 6.8.7,Spring 4.0.3 and Hibernate 4.1.2 and Mysql 5.5.
But I need some suggestions and help from all members(If u have sometime to review it ) to Review this code and how can we improve it to design a Large scale application so that lots of users(App user) can interact with the application.
ie, Application needs to be tweaked to include
Session management
creating UI for each customer logs on the system
Navigating form one screen to another screen. etc.
Is there a way to use Vaadin 7.x with Spring 3.x ? As far as i see, Vaadin supports only Spring version 4. For legacy reasons i have to use Spring version 3.x. And we use OSGI. Vaadin spring is even not osgi ready as i saw, so i have to “hack it”, right?
Is there an example project for this?
Any help would be great, thanks!