You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2011/06/29 13:19:39 UTC
svn commit: r1141047 - in
/james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring:
imapserver-context.xml imapserver-osgi.xml pop3server-context.xml
pop3server-osgi.xml smtpserver-context.xml smtpserver-osgi.xml
Author: norman
Date: Wed Jun 29 11:19:39 2011
New Revision: 1141047
URL: http://svn.apache.org/viewvc?rev=1141047&view=rev
Log:
Add OSGI support for LMTPServer, IMAPServer, POP3Server, SMTPServer. See JAMES-835
Added:
james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-context.xml
james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-osgi.xml
james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-context.xml
james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-osgi.xml
james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-context.xml
james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-osgi.xml
Added: james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-context.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-context.xml?rev=1141047&view=auto
==============================================================================
--- james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-context.xml (added)
+++ james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-context.xml Wed Jun 29 11:19:39 2011
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ ! Licensed to the Apache Software Foundation (ASF) under one ! ! or
+ more contributor license agreements. See the NOTICE file ! !
+ distributed with this work for additional information ! ! regarding
+ copyright ownership. The ASF licenses this file ! ! to you under the
+ Apache License, Version 2.0 (the ! ! "License"); you may not use this
+ file except in compliance ! ! with the License. You may obtain a copy
+ of the License at ! ! ! ! http://www.apache.org/licenses/LICENSE-2.0 !
+ ! ! ! Unless required by applicable law or agreed to in writing, ! !
+ software distributed under the License is distributed on an ! ! "AS
+ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ! ! KIND, either
+ express or implied. See the License for the ! ! specific language
+ governing permissions and limitations ! ! under the License. !
+ -->
+
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:camel="http://camel.apache.org/schema/spring"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
+
+ <!-- Import PostBeanProcessors -->
+ <import resource="classpath*:org/apache/james/container/spring/server-context.xml"/>
+
+ <!--
+ IMAP Server
+ -->
+ <bean id="imapserver" class="org.apache.james.imapserver.netty.IMAPServer"/>
+</beans>
Added: james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-osgi.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-osgi.xml?rev=1141047&view=auto
==============================================================================
--- james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-osgi.xml (added)
+++ james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/imapserver-osgi.xml Wed Jun 29 11:19:39 2011
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<beans:beans
+ xmlns="http://www.springframework.org/schema/osgi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:beans="http://www.springframework.org/schema/beans"
+ xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xsi:schemaLocation="http://www.springframework.org/schema/osgi
+ http://www.springframework.org/schema/osgi/spring-osgi-1.2.xsd
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
+
+ <osgi:service ref="imapserver">
+ <osgi:interfaces>
+ <beans:value>org.apache.james.imapserver.netty.IMAPServerMBean</beans:value>
+ </osgi:interfaces>
+ </osgi:service>
+</beans:beans>
Added: james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-context.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-context.xml?rev=1141047&view=auto
==============================================================================
--- james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-context.xml (added)
+++ james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-context.xml Wed Jun 29 11:19:39 2011
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ ! Licensed to the Apache Software Foundation (ASF) under one ! ! or
+ more contributor license agreements. See the NOTICE file ! !
+ distributed with this work for additional information ! ! regarding
+ copyright ownership. The ASF licenses this file ! ! to you under the
+ Apache License, Version 2.0 (the ! ! "License"); you may not use this
+ file except in compliance ! ! with the License. You may obtain a copy
+ of the License at ! ! ! ! http://www.apache.org/licenses/LICENSE-2.0 !
+ ! ! ! Unless required by applicable law or agreed to in writing, ! !
+ software distributed under the License is distributed on an ! ! "AS
+ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ! ! KIND, either
+ express or implied. See the License for the ! ! specific language
+ governing permissions and limitations ! ! under the License. !
+ -->
+
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:camel="http://camel.apache.org/schema/spring"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
+
+ <!-- Import PostBeanProcessors -->
+ <import resource="classpath*:org/apache/james/container/spring/server-context.xml"/>
+
+ <!--
+ POP3 Server
+ -->
+ <bean id="pop3server" class="org.apache.james.pop3server.netty.POP3Server"/>
+
+</beans>
Added: james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-osgi.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-osgi.xml?rev=1141047&view=auto
==============================================================================
--- james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-osgi.xml (added)
+++ james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/pop3server-osgi.xml Wed Jun 29 11:19:39 2011
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<beans:beans
+ xmlns="http://www.springframework.org/schema/osgi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:beans="http://www.springframework.org/schema/beans"
+ xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xsi:schemaLocation="http://www.springframework.org/schema/osgi
+ http://www.springframework.org/schema/osgi/spring-osgi-1.2.xsd
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
+
+ <osgi:service ref="pop3server">
+ <osgi:interfaces>
+ <beans:value>org.apache.james.pop3server.netty.POP3ServerMBean</beans:value>
+ </osgi:interfaces>
+ </osgi:service>
+</beans:beans>
Added: james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-context.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-context.xml?rev=1141047&view=auto
==============================================================================
--- james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-context.xml (added)
+++ james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-context.xml Wed Jun 29 11:19:39 2011
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ ! Licensed to the Apache Software Foundation (ASF) under one ! ! or
+ more contributor license agreements. See the NOTICE file ! !
+ distributed with this work for additional information ! ! regarding
+ copyright ownership. The ASF licenses this file ! ! to you under the
+ Apache License, Version 2.0 (the ! ! "License"); you may not use this
+ file except in compliance ! ! with the License. You may obtain a copy
+ of the License at ! ! ! ! http://www.apache.org/licenses/LICENSE-2.0 !
+ ! ! ! Unless required by applicable law or agreed to in writing, ! !
+ software distributed under the License is distributed on an ! ! "AS
+ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ! ! KIND, either
+ express or implied. See the License for the ! ! specific language
+ governing permissions and limitations ! ! under the License. !
+ -->
+
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:camel="http://camel.apache.org/schema/spring"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
+
+ <!-- Import PostBeanProcessors -->
+ <import resource="classpath*:org/apache/james/container/spring/server-context.xml"/>
+
+ <!--
+ SMTP Server
+ -->
+ <bean id="smtpserver" class="org.apache.james.smtpserver.netty.SMTPServer"/>
+
+</beans>
Added: james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-osgi.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-osgi.xml?rev=1141047&view=auto
==============================================================================
--- james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-osgi.xml (added)
+++ james/server/trunk/dnsservice-dnsjava/src/main/resources/META-INF/spring/smtpserver-osgi.xml Wed Jun 29 11:19:39 2011
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<beans:beans
+ xmlns="http://www.springframework.org/schema/osgi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:beans="http://www.springframework.org/schema/beans"
+ xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xsi:schemaLocation="http://www.springframework.org/schema/osgi
+ http://www.springframework.org/schema/osgi/spring-osgi-1.2.xsd
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
+
+ <osgi:service ref="lmtpserver">
+ <osgi:interfaces>
+ <beans:value>org.apache.james.smtpserver.netty.SMTPServerMBean</beans:value>
+ </osgi:interfaces>
+ </osgi:service>
+</beans:beans>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org