api - Architecture to develop an application in java that could be used with desktop and web interface too -


i'm developing java application or service execute remote commands or applications , receive results of these commands. , think project application possible use swing interface or web interface.

i have take care parameters pass businnes classes , how deal results. need use architecture , project let me able use classes desktop application or web application too.

i believe related api , service design. popular applications have web interface or dashboard control services, , services manageable agents installed execute demons, services or applications. start or stop commands database systems, directory services other tasks

there guides how develop applications , services in java can use web , desktop environments?

i felling bite confusing this, because in mind if choose develop swing approach thinks turn clear me. when imagining same project using web perspective lose directives.

sorry , ihope undertand me. :-p

i have been in similar situation while started working on simple cms. wanted cms engine free of ui/client used interact , settled web service oriented approach. student of restful ws/roa take approach.

if understand problem correctly, design be, each external program, service, web service want provide remote access 'application' web service, 'application' 'resource'. performing actions on 'application' resource mean executing requests different query parameters. how 'application' infers depend on 'application' resource.

a similar approach took in cms engine generating representations content. support ruby (jruby), groovy, javascript (rhino) , velocity template generating representation. user creates template script resource , refers in content type definition. clients provided uri's representation content generic media formats (atom xml, json) , upon fetching them receives output generated script. tempted take similar approach problem. not separated ui business objects, provide flexibility add new backend services in long run.

as tools restful ws on java recommend, jersey, abdera, jackson. example how use them can have @ cms project referring to.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -