Spring Framework and Presentation Server

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Spring Framework and Presentation Server

claus straube-2

Hello,

 

I want to use the Spring framework as business tier. Now I’m searching for good web tier solution. I know that Spring comes with its own MVC webframework, but as my application will work mainly with XML data, a powerful XML framework would be nice. So my question is: Is there anyone, who has used Presentationserver with Spring and what experiences have you made?

 

Best regards - Claus

 

__________________________________________

 

Claus Straube

Francéstrasse 31

80997 München

+49 (089) 14 16 682

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Spring Framework and Presentation Server

Erik Bruchez
Administrator
Claus Straube wrote:

> Hello,
>
>  
>
> I want to use the Spring framework as business tier. Now I’m searching
> for good web tier solution. I know that Spring comes with its own MVC
> webframework, but as my application will work mainly with XML data, a
> powerful XML framework would be nice. So my question is: Is there
> anyone, who has used Presentationserver with Spring and what experiences
> have you made?
Claus,

Some users may have tried an integration, but here at Orbeon we haven't
tried anything like that. What features from Spring are you looking at
using?

-Erik




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Spring Framework and Presentation Server

Alan Skorkin
In reply to this post by claus straube-2
I've been using OPS with Spring for a while now, and it's been pretty successfull.
 
With any business logic past the processor classes you can use Spring as much or as little as you want.
 
With the processor classes (i.e. custom processors not the processors that come with OPS) it's a little different since you can't wire them up as they are of a specific format, which you can't really define in a Spring config file. So what end up with is, you have OPS sitting in the front as your presentation tier with custom processors right behind it. Within your custom processors you can call back to your business logic classes these business logic classes can all be defined through Spring. So within your processor classes you can use the Spring BeanFactory to get a reference to you business logic classes, after that it's all just standard java.
 
Of course if you are using OPS with just the processors that come standard with it (e.g. SQL processor, XSLT processor) and not writing any custom processors, then there really is no place for Spring as you never end up writing any java code, so there is nothing to wire up.
 
Hope this helps,


From: Claus Straube [mailto:[hidden email]]
Sent: Tuesday, September 27, 2005 1:25 AM
To: [hidden email]
Subject: [ops-users] Spring Framework and Presentation Server

Hello,

 

I want to use the Spring framework as business tier. Now I'm searching for good web tier solution. I know that Spring comes with its own MVC webframework, but as my application will work mainly with XML data, a powerful XML framework would be nice. So my question is: Is there anyone, who has used Presentationserver with Spring and what experiences have you made?

 

Best regards - Claus

 

__________________________________________

 

Claus Straube

Francéstrasse 31

80997 München

+49 (089) 14 16 682

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Spring Framework and Presentation Server

Greg Jones-2
In reply to this post by claus straube-2

Hi Claus,

 

We used the Spring Framework on a project with OPS some time back and had no issues. From memory, the main configuration involved adding the Spring elements to web.xml and the usual data source setup that needs to be done with Tomcat. It can take a while to ensure that you have all of the required classes on your class path and that there are no conflicts with OPS-supplied classes.

 

The major decision is how you’re going to communicate with the Spring Framework from OPS. Here, you have the choice of writing a processor or simply to use the Java processor. It’s up to you how you do this. I would suggest starting with the Java Processor and then implementing your own processor once you work out the best way to do so.

 

Hope this helps.

 

Regards,

 

Greg Jones

Jacus - SoftwareWorks

 

-----Original Message-----
From: Claus Straube [mailto:[hidden email]]
Sent:
Tuesday, 27 September 2005 1:25 AM
To: [hidden email]
Subject: [ops-users] Spring Framework and Presentation Server

 

Hello,

 

I want to use the Spring framework as business tier. Now I’m searching for good web tier solution. I know that Spring comes with its own MVC webframework, but as my application will work mainly with XML data, a powerful XML framework would be nice. So my question is: Is there anyone, who has used Presentationserver with Spring and what experiences have you made?

 

Best regards - Claus

 

__________________________________________

 

Claus Straube

Francéstrasse 31

80997 München

+49 (089) 14 16 682

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Spring Framework and Presentation Server

damonrand
In reply to this post by claus straube-2
Hi Claus,

    We have developed a SpringProcessor for OPS using xstream. The approach
is likely to form the basis of our future OPS apps but is a very new
development and its not
thoroughly tested yet.. Attached is the source, good luck if it useful to
you.

You will need to add a new processor to resources\processors.xml.

    <processor name="oxf:springbean">
        <class name="org.amnesty.ops.processors.SpringBeanProcessor" />
    </processor>

Your model will need a processor definition along the lines of the
following.. The first input sets up the processor and the subsequent inputs
are the method parameters. Output is the method result. You will need a good
understanding of xstream serialization/deserialization -- read the
http://xstream.codehaus.org/ for details.

    <p:processor name="oxf:springbean">
        <p:input name="config">
            <org.amnesty.ops.processors.SpringBeanProcessorConfig>
              <beanName>adamServiceFacade</beanName>
              <methodName>findDocuments</methodName>
              <xstreamBeanName>amnestyXStream</xstreamBeanName>
            </org.amnesty.adam.web.processors.SpringBeanProcessorConfig>
        </p:input>
        <p:input name="query"
href="#instance#xpointer(/form/in/AiDocQuery)"/>
        <p:input name="pageSpec"
href="#instance#xpointer(/form/in/PageSpec)"/>
        <p:output name="data" id="response"/>
    </p:processor>

The xstreamBeanName parameter is optional. Use this if you want to customize
the xml serialization. For example you would add this to the
applicationContext.xml.

    <!--  Used by the OPS SpringBeanProcessor to serialize our domain
objects to/from xml -->
    <bean id="amnestyXStream"
        class="org.amnesty.core.util.XStreamWrapper"
        factory-method="newXStream" />

Attached is the source code. Like I say this code is very new, not in
production yet etc so use at your own risk.. (Feel free to feed bugfixes
back to me ;-)

Regards,
Damon.


----- Original Message -----
From: "Claus Straube" <[hidden email]>
To: <[hidden email]>
Sent: Monday, September 26, 2005 4:25 PM
Subject: [ops-users] Spring Framework and Presentation Server


Hello,

I want to use the Spring framework as business tier. Now I'm searching for
good web tier solution. I know that Spring comes with its own MVC
webframework, but as my application will work mainly with XML data, a
powerful XML framework would be nice. So my question is: Is there anyone,
who has used Presentationserver with Spring and what experiences have you
made?

Best regards - Claus

__________________________________________

Claus Straube
Franc?strasse 31
80997 M?nchen
+49 (089) 14 16 682




--------------------------------------------------------------------------------


>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

springbeanprocessor.zip (5K) Download Attachment