Opened 15 years ago

Last modified 12 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 15 years ago.
spring conenctor project patch

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by Darran

Attachment: spring_connector.patch added

spring conenctor project patch

comment:1 Changed 15 years ago by Artur Formella

Keywords: HasPatch added; Spring Connector removed

comment:2 Changed 15 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 15 years ago by Michael Osipov

Milestone: FCKeditor.Java 2.6

comment:4 Changed 15 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 15 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 14 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 12 years ago by Jakub Ś

Status: newconfirmed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy