Determining if Servoy runs server or developer

Questions and answers on developing, deploying and using plugins and JavaBeans

Determining if Servoy runs server or developer

Postby pbakker » Wed Aug 11, 2004 9:59 pm

Hi,

Is it possible in a plugin to determine if the plugin runs in a Developer or a Servoy Server "session"?

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby jcompagner » Thu Aug 12, 2004 11:46 am

what would you do with that?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby pbakker » Thu Aug 12, 2004 11:51 am

I'm building a plugin and for some license feature I need to know if the plugin is running under Servoy Developer (No need for license checking) or under Servoy Server (license checking needed)

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Jan Blok » Thu Aug 12, 2004 2:41 pm

There are 2 interfaces specifing it is a developer or server plugin (IServerPlugin vs IDeveloperPlugin)
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby pbakker » Thu Aug 12, 2004 2:46 pm

That is not what I mean...

I have a server side plugin (IServerPlugin). When I start the Servoy Developer, this plugin gets loaded and you can use it from within the developer, to develop your application.

Now, what I would like is to implement a licensing structure that will allow people to use the plugin without a license key while developing, but when used in Production (servoy server) there should be a valid license key.

So, the question is: in the plugin, how can I determine is it's Servoy Server or Servoy Developer....

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Jan Blok » Thu Aug 12, 2004 2:59 pm

It is not possible to determen from with IClientPlugin where you are running, our developer product is nothing more than an normal client with a designer.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 15 guests