Possible Duplicate:
Does making source code available affect your ability to generate revenue?
I'm developing a web application (it's not a website, it's a closed to public management application) and I'm really unsure about how should I sell it.
The application doesn't cost enough to allow me to ask this to a lawyer (he will asks maybe soemthing that is around the cost of the application), so I'm here to get some suggestions.
I would like to charge the client for the costs of developement (because the app is specialized on client requests), but I don't want to give them the source code, only the ability to use the application through web.
The second part of the problem is that I have to pay hosting for this webapp. Because I don't want sell hosting service, and I don't want to allow them to access to my source code, I would like to address hosting service costs in my agreement as "upkeep costs" (so the client will pay me each year).
Is this a correct way to license a webapplication?Also, is this ethically correct? I mean, they won't have my source code and if they stop paying obviusly they can't use the application.
Any suggestion about different licensing?Should I sell my sourcecode when I build a website?
EDIT 1:
My fault, I wrote something wrong. I'm still writing the business plan so I'm definitely allowed to choose how to sell my app.
Also, because I'm paying some commercial licenses for a library that I'm using in the app, will this license belong to me? They are paying the source code, the license for the library is coming from my pocket.
EDIT 2:
I don't want to charge them for all development costs, client will not need to pay external commercial licenses, I would like to sell him only an application with a una-tantum fee (like when you buy World of warcraft, you pay for the game and then you have a recurring subscription) and then a subscription like SaaS. Is this possible?
Obviusly if I break the contract for some reason, they can take the source code. If they stop paying me upkeep costs (hosting, but I want to use the hosting that I chosen), I can take down the application until they restart paying me.
EDIT 3:
To make clever what I would like to achieve: I would like to sell the app as I can sell a desktop app: I sell an executable file and not the whole code. Is up to me to charge it 1 or 100. The problem with this approach is: if they pay the hosting service by themself and I upload the code there, they can obviusly see/steal my code. How can I solve this issue?