Publication service: a very simple example

16 October 2006

I was trying to stick this XML snippet in a comment on my article with the announcement of the XPO publication service, but CS is too dumb to leave the formatting of a <pre> section intact on comments. So I’m posting it here:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<XPOPublication>
  <Publication Name="TestPublication1"
    SourceConnectionString="XpoProvider=MSAccess;Provider=Microsoft.Jet.OLEDB.4.0;Mode=Share Deny None;data source=test.mdb;user id=Admin;password=;"
    SourceAutoCreateOption="DatabaseAndSchema"
    Target="http://localhost:2635/something.rem" />
</XPOPublication>

So this simple piece of configuration would be all you need to publish an Access database via an HTTP Remoting channel.

Tags
7 comment(s)
Lu. Po.
Thanks you for this minimal example of configuration file.
In the meantime I have deeply investigated your work and appreciated it a lot.

I just have some questions:

1) will Xpo Pubblication Service evolve in some direction in the near future or it is provided as an example only ?

2) if you consider to evolve it ... some request:
Adding a compressed channel ... an interesting feature mentioned in some messagges here and in the newsgroup ...
Adding the ability to publish and unpublish without stopping and restarting the service ...

Thanks in advance
16 October, 2006
Oliver Sturm (DevExpress)
1) I'm not sure. I think it might evolve, if there are reasons why it should. But I want to separate carefully: the service has been written in such a way that there shouldn't be many reasons to extend the core library/application.

2) Adding a compressed channel - that would most probably be a request that can easily be satisfied without making any changes to the code I wrote. There are implementations of compressed channels out there and it should be extremely easy to use them with the publication service. When I have the time, I'll try to post a sample that shows how this can be done.

Publishing/Unpublishing - not quite sure what you mean. What do you imagine that solution to look like? The library, of course, is able to publish/unpublish in any arbitrary situation.
16 October, 2006
XPO newbie
Sorry, can you explain more this line? what is something.rem???

Target="http://localhost:2635/something.rem" />
16 October, 2006
Oliver Sturm (DevExpress)
Just an arbitrary name for the Remoting publication. Have a look at my XPO/Remoting article here: http://community.devexpress.com/blogs/xpo/archive/2006/04/20/51.aspx

"something.rem" in this example is the name you would pass in to the RemotingServices.Marshal() or the RemotingConfiguration.RegisterWellKnownServiceType() method if you were publishing your service manually.
16 October, 2006
Lu. Po.
Publishing/Unpublishing:
I mean the ability to modify the XML configuration file while XPS (XPO Pubblication Service) is running. I wish to have the possibility to add (or remove) a Publication while users are working online using others Publications (without the need to disconnect working users).
For example, in my scenario a user can create a team and invite collegues to join. Every team have its own database (this is out of my control). I wish to have the possibility to automatically create and put online new databases... (maybe XPS can monitor changes to the xml configuration file ?)

Thanks in advance ...
16 October, 2006
XPO

There are no changes in this version -- surprising as it may be, nobody ever reported a single bug in

31 May, 2008
eXpress App Framework Team

This is post no. 10 in the mini series "10 exciting things to know about XAF". You can find

31 May, 2008

Please login or register to post comments.