These are the steps that I followed to create my abdera server:
1. Add the AbderaServlet to the web.xml and declare my serviceContext:
<servlet id="abdera">
<servlet-name>Abdera</servlet-name>
<servlet-class>org.apache.abdera.protocol.server.servlet.AbderaServlet
</servlet-class>
<init-param>
<param-name>org.apache.abdera.protocol.server.ServiceContext
</param-name>
<param-value>com.oos.api.abdera.OosServiceContext</param-value>
</init-param>
</servlet>
2. Create the ServiceContext class and declare the
defaultProviderManager:
public class OosServiceContext extends DefaultServiceContext{
public OosServiceContext() {
super();
//my provider manager extends AbstractSingletonProviderManager and
resolve reveral providers
this.defaultprovidermanager = OosProviderManager.class.getName();
//my target resolver extends RegexTargetResolver
this.defaulttargetresolver = OosTargetResolver.class.getName();
}
}
3. Create the Provider classes that extend AbstractProvider.
I hope this helps you to start.
Regards
On Dec 4, 2007 6:17 PM, James M Snell <[EMAIL PROTECTED]> wrote:
> The process is not yet as easy as I'd like it to be. If you look in the
> examples module, there is a simple Atompub server example that covers
> all of the basics. Go through that example, and if you have further
> questions, let me know.
>
> If you are a Spring user, there is an optional spring module that makes
> server configuration a bit easier.
>
> - James
>
> Selcuk Bozdag wrote:
> > Hi all,
> >
> > I am a little bit new to Abdera Project and still trying to publish my
> > own Atom feeds using Abdera. However, I have not yet succeed. So I
> > need your help.
> >
> > I would like to learn how to create a "atom publish protocol" server
> > using Abdera. Right now, I am able to read from an Atom feed but I
> > would like to be the source of a feed.
> >
> > Thanks,
> >
>
--
David Calavera
http://www.thinkincode.net