portals-wsrp4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego Louzán <diegolou...@metalicana.org>
Subject Re: HelloWorld
Date Tue, 14 Dec 2004 16:27:07 GMT
     Mmm, don't know exactly what do you want. There are two posibilities:

* If you mean creating a new WSRP Producer implementation, this is way more 
complicated than you explain. The communication between the Consumer and 
Producer is through SOAP protocol, so in the Producer you have to configure a 
SOAP receiver (in WSRP4J is Axis) that decodes the xml communication to actual 
calls on the Java classes. The class that receives this calls is, as you 
mention, the WSRPEngine, which in turn, delegates them to the implementation 
you are giving (the pluto implementation classes in WSRP4J). You should 
implement a new producer and register it in configuration files (mainly you 
would have to edit producer/war/WEB-INF/classes/WSRPServices.properties in 
WSRP4J cvs distribution).

* If you mean deploying the WSRP4J Producer in a web container to expose some 
portlets and then configure the WSRP4J ProxyPortlet as a Consumer in a portal 
implementation, then you can follow the very excellent instructions given by 
Warwick Bailey in another post of this thread. This alternative is much easier. :-)

     As you mention, there's a Producer interface in package 
org.apache.wsrp4j.consumer, but this is an interface to track the different 
Producers a Consumer can be attached in a given moment (it's easy to understand 
that a consumer can be consuming resources from different producers). In the 
producer package there isn't a Producer interface because there is only one 
producer: the implementation you are giving. You should take a look to 
ProxyPortlet code to understand this.


Durfee, Bernard wrote:
> I am new to WSRP4J and I figure the best way to get started is with a
> standard HelloWorld class. I would like to create a producer that will
> eventually be exposed to the world via WSRP. Are these the appropriate
> steps?
> 1) Create a class implementing the org.apache.wsrp4j.consumer.Producer
> interface.
> 2) Register an instance of WSRPEngine with a servlet container such as
> Tomcat.
> 3) Register my hello world WSRP producer with the WSRPEngine, not sure
> how this is done yet. Now my WSRP producer should be exposed to the
> world. Tomcat will take the requests and send them to the WSRPEngine.
> The WSRPEngine will then push the requests to my producer through the
> org.apache.wsrp4j.consumer.Producer interface.
> 4) Now to make my WSRP producer useful to a human, I need to expose it
> via a consumer. So I run something like a uPortal consumer channel,
> point it to my WSRP producer and BAM, my producer lives.
> Is this basic, super high level view correct? If so, then I have some
> questions.
> Why is the 'producer' interface under the 'consumer' package?
> How do I register the WSRPEngine with Tomcat? Is there some sort of
> servlet adapter?
> How do I register my WSRP producer with the WSRPEngine?
> Thanks in advance!
> Bernie Durfee

View raw message