Error while trying to update a service

gerargimenez
gerargimenez's picture
User offline. Last seen 1 year 15 weeks ago. Offline
Joined: 12/22/2009
Points: 11

Hello,

I'm developing an application that uses the Presto connect API for Java to save and publish services.

I had no problem doing precisely the saving and the publishing part, but now I'm trying to update the details of a service and I'm getting this error:

"Service Store error. Please check if Service Store is running and reachable from Mashup Server".

I have no idea what can cause this, when saving, publishing or executing the services I don't get ant trouble. Only when I try to update a saved service I get the error mentioned.

Thanks for any help.

 

5
Your rating: None Average: 5 (1 vote)
girish
girish's picture
User offline. Last seen 4 weeks 3 hours ago. Offline
Joined: 09/22/2008
Points: 70

Updating service once it's registered is not supported. The reason is, once a service is registered and operations are exposed, it becomes a contract between the calling apps and this Presto server. So, if you update the service, the contract might change breaking all the calling apps.

We allow updating only the metadata like tags, description, category, but not service definition.

- Girish@JackBe

gerargimenez
gerargimenez's picture
User offline. Last seen 1 year 15 weeks ago. Offline
Joined: 12/22/2009
Points: 11

 Thanks Girish for the comment.

I was not aware of that.

acarlstein
User offline. Last seen 1 year 12 weeks ago. Offline
Joined: 12/22/2009
Points: 11

But somehow Wires updates existing mashups. How come?

Or what do you mean by that?

¡Ieeehh!

gerargimenez
gerargimenez's picture
User offline. Last seen 1 year 15 weeks ago. Offline
Joined: 12/22/2009
Points: 11

That is true. You can open a saved mashup, edit and save it again using wires.

Is there a way to do that using the Presto API?

smitchell
smitchell's picture
User offline. Last seen 17 hours 9 min ago. Offline
Joined: 08/29/2008
Points: 34

Two points:

1. Mashups are hosted on the Mashup Server and created by knowledgeable users (hopefully). You can edit a mashup and 'break the contract' with artifacts that use it. But it's also fully fixable within the scope of Presto. In 2.7 there is only limited information about dependencies such as these. The next version does address some of these issues.

2. Obviously there is a way to create and update mashups, however this isn't a public API such as Presto Connect. There is a command line utility to publish/update which may work instead. See http://www.jackbe.com/prestodocs/v2.7.0/prestolibrary/index.html?href=PrestoLibrary.1.254.html for links to the command to publish and the command to update.

Sara, technical writer/jackbe