PDA

View Full Version : Export PONOs as services?


three-eyed-goat
08-13-2008, 09:09 PM
Are you planning to provide export capability similar to what you put together with regards to web services? It's a real drag having to decorate interfaces with ServiceContract, ect. (just as much as it was decorating classes with WebService, ext.). I did a few searches in the JIRA, but couldn't find anything.

Mark Pollack
08-13-2008, 09:17 PM
Hi,

At the moment no this isn't on the roadmap but we are quite flexible here. There has been some mixed reaction on this, namely those folks that feel WCF is the end-all of portability across middleware technologies so there isn't a need. I don't agree with that statement. We could provide support for it much like we do in web services, namely if the attributes are already there, don't add any, otherwise specify what should be added. I think the configuration can get a bit hairy as it is quite common to see 2-4 attributes per method in some cases, so one really has to want to keep those attributes out of the interface. Perhaps that could be done easily with some compilation preprocesor directive?

I'll direct some others to this posting to get a discussion going.

If you wouldn't mind, can you raise a JIRA issue in so we can keep better track of the feature request.

What is in the 1.2 M1 release is DI+AOP for WCF services. Check it out, due out any day now, in particular I'd like to get feedback on the two different approaches used for DI.

Cheers,
Mark

three-eyed-goat
08-13-2008, 10:04 PM
Anything that requires decoration with attributes to get working isn't any kind of end-all to me. I kind of think of attributes as tight configuration. I'm not sure I'm a fan of them at all, actually. In my opinion, classes and interfaces shouldn't be "aware" of their attributes, so why should it require a re-compile to change/add them? Anyway, I'm going off on a tangent.

I haven't gotten all that deep into reflection and proxying as you guys have, so I'm not sure if such a thing is possible, or just sounds completely stupid, but it would be pretty nifty if you could provide a way to introduce the decorating attributes to classes/interfaces through configuration. That would be of global value, not just for WCF. You've probably already thought about that, though, and there's no way of doing it.

three-eyed-goat
08-13-2008, 10:12 PM
submited Jira SPRNET-1001 (http://jira.springframework.org/browse/SPRNET-1001).

three-eyed-goat
08-13-2008, 10:16 PM
...I'd like to get feedback on the two different approaches used for DI.


will those two approaches be exemplified in Spring.WcfQuickStart?

Bruno Baia
08-14-2008, 05:38 PM
Yes.
One is used by the Web server example, the other one by the App server example.

- Bruno