Thank you very much! It really helped me so much to understand what's happening with abdera app server.
I will create a sample application and post it to my wiki asap. Cheers On Dec 5, 2007 3:59 PM, Kiran Subbaraman <[EMAIL PROTECTED]> wrote: > > I would suggest you check this out too: > http://svn.apache.org/repos/asf/incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/ > ContentProviderTest.java and the other two classes are part of the JUnit > test for the APP Server code. > I learnt some useful stuff from this - walk-through this code to quickly > understand what's happening :-) > Hope this helps. > Kiran > > > > > Selcuk Bozdag-2 wrote: > > > > In my previous post I posted the package name of source files wrong. > > I amend the package name as "org.apache.abdera.examples". > > > > Sorry. > > > > On Dec 5, 2007 10:12 AM, Selcuk Bozdag <[EMAIL PROTECTED]> wrote: > >> Thank you very much for all your prompt response. > >> > >> I merged suggestions from James and David. At the moment, I use the > >> sample files in the examples (/appserver directory). I created a web > >> app using eclipse and modified the web.xml accordingly. > >> > >> In order to keep it simple, I would like to create a very basic > >> servlet using those providers. > >> > >> Could you please post me an example to show how to access provider > >> managers and making feed online? > >> > >> My Project Structure: > >> > >> [MyFeedServer] > >> ->source/ > >> --->org.apache.abdera.protocol.server/ > >> ---------->SimpleProvider.java > >> ---------->SimpleProviderManager.java > >> ---------->SimpleServiceContext.java > >> ---------->SimpleTargetResolver.java > >> ->WebContent > >> --->WEB-INF > >> ---------->web.xml > >> > >> And my web.xml file is: > >> > >> <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> > >> > >> org.apache.abdera.examples.appserver.SimpleServiceContext > >> </param-value> > >> </init-param> > >> </servlet> > >> > >> > >> Thank you for your helps, > >> > >> Cheers > >> > >> > >> On Dec 5, 2007 8:49 AM, David Calavera <[EMAIL PROTECTED]> wrote: > >> > 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 > >> > > >> > >> > >> > >> -- > >> Selcuk Bozdag > >> > > > > > > > > -- > > Selcuk Bozdag > > > > > > -- > View this message in context: > http://www.nabble.com/APP-server-tf4944324.html#a14174543 > Sent from the abdera-user mailing list archive at Nabble.com. > > -- Selcuk Bozdag
