Opened 9 years ago

Last modified 5 years ago

#3371 confirmed New Feature

Spring based Connector servlet

Reported by: Darran Owned by:
Priority: Normal Milestone:
Component: Server : Java Version:
Keywords: HasPatch Cc:

Description

Attached is a patch which has a new spring based connector servlet project. It allows the Connector to be a Spring managed bean which is useful in Spring projects. For example if the connector is used to write to a database it will be able to use the Spring transaction manager or Spring events could be issued when an upload/download occurs for files.

I`ve also updated the java-demo project so it uses the new servlet. I`ve commented out the original ConnectorServlet in the web.xml

I had to change the Dispatcher slightly so a Connector can be passed into it. I also had to make the dispatcher member variable in the ConnectorServlet protected as the new SpringConnectorServlet derives from ConnectorServlet.

Attachments (1)

spring_connector.patch (19.3 KB) - added by Darran 9 years ago.
spring conenctor project patch

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by Darran

Attachment: spring_connector.patch added

spring conenctor project patch

comment:1 Changed 9 years ago by Artur Formella

Keywords: HasPatch added; Spring Connector removed

comment:2 Changed 9 years ago by Michael Osipov

Milestone: FCKeditor.Java 2.5

According to your forum thread this sound really, really interesting but this won't make into 2.5 because the code is complete and I am just finishing documentation. Each new code fragment needs audit and testing and this is not feasable for this release. I will probably push this patch into 2.6.

comment:3 Changed 9 years ago by Michael Osipov

Milestone: FCKeditor.Java 2.6

comment:4 Changed 9 years ago by Darran

I needed it for a Grails project so Ill use this implementation currently and Ill look forward to a similar implementation in 2.6.

Also I was toying with the idea of writing a connector to upload/download using Amazon S3 or SimpleDB,as I may need to do this for my own project, which would make a good demo for the Java connector.

comment:5 in reply to:  4 Changed 9 years ago by Michael Osipov

Replying to Darran:

I needed it for a Grails project so Ill use this implementation currently and Ill look forward to a similar implementation in 2.6.

Also I was toying with the idea of writing a connector to upload/download using Amazon S3 or SimpleDB,as I may need to do this for my own project, which would make a good demo for the Java connector.

This sounds good, hopefully the connector interface gives you enough flexibility.

comment:6 Changed 8 years ago by Michael Osipov

Milestone: FCKeditor.Java 2.6

since FCKeditor is legacy this won't be realized in FCKeditor.Java 2.6. This may reemerge in CKEditor.Java.

comment:7 Changed 5 years ago by Jakub Ś

Status: newconfirmed
Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy