java - Connect desktop application with application server and Database -
i have design problem how connect desktop java application needs read , write database. 1 of 2 approaches better?
connect desktop java application directly database using jdbc driver on network. bad idea because if security easy write sql queries directly , execute them.
connect java desktop application application server connected database. in case how i'm going sql queries? need kind of tunnel used transfer queries , return output. approach secure response time big.
can tell me there other solutions?
the best option use ejb server.
create ejb inteface crud methods (save,delete ,update etc).
create ejb implementation on server (jboss/glassfish) .
once server , running copy interface jar file application(java swing app) , using jndi can call crud operations.
~i hope helps.
Comments
Post a Comment