Spring integration

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).

-mike

Hi mike,

thank you for the link and the explanation, I will read through it if I have time today.

And as suggested, I created a new thread over here:
https://vaadin.com/forum#!/thread/7713481
so that we can continue over there.

The authentication through an AD sounds interesting, thats exactly what I also have planned to do.

Hello Alexander,

could you help me?

Vaadin + Spring - refresh (F5): IllegalStateException: This UI instance is already initialized

https://vaadin.com/forum#!/thread/7737199

I’ve answered.

Hello Alexander

Can I use SpringVaadinIntegration with vaadin GAE application

Hi, i wanted to ask you if your are going to create a new version of this add-on for Vaadin 7.3 + Spring Framework 4.1.

Thank you very much in advance

Hi,
Sure. I’ve just returned from my holiday and I’m going to public new version soon.

can any help me? plz …
entityManager is null
http://stackoverflow.com/questions/25729075/spring-jpa-nullpointerexception-in-entitymanager

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?

Thanks.

Try ro use LongPolling in Push Settings. Accessing session scoped beans with websocket Push currently is not supported/

Sorry, haven’t read older messages about it. And it looks like a big issue.
My project exist since Vaadin 6, and we Spring session scope since there.

Hi,
thx for this great adon
Is there any plans to introduce an event bus within this spring addon ?

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/

Hope it helps

Fran

Hi,
did someone test this addon with the new VAADIN version 7.5.1?

Aleks

Hi Aleks,

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:

https://vaadin.com/directory#!addon/vaadin-spring
https://vaadin.com/wiki/-/wiki/Main/Vaadin+Spring

Hope it helps

Fran

Hi Francisco,
thank you very much. I will give it a try.

Aleks

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.

I have uploaded zip file of the project with source code change the extension to war . Please review it and Provide feedback by droping email krk031@gmail.com.
https://drive.google.com/file/d/0ByZXfh-z1i1YT2o3bmlzZ0FXUUU/view?usp=sharing
Thank you all.

Copy the above link and download from Google drive >>

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!

Hi friend:

I used Alexander Fedorov’s add-on “SpringVaadinIntegration” in my old projects.
It worked just fine.
#see:
https://vaadin.com/directory#!addon/springvaadinintegration

and:
http://vaadin.xpoft.ru/

And now, I switched to the offical add-on “Vaadin Spring”, but found out lack of some future.

The old add-on “SpringVaadinIntegration” let me localize Vaadin system message by using Spring message source
#see:
http://vaadin.xpoft.ru/#system_messages

But in the offical add-on “Vaadin Spring”, this future is lacking.

Can you please consider adding this future?