I have an application that needs two kinds of permissions, file permission to read from a text file
and a socket permission to connect to a SQL server.
I have solved the file permission by adding <all-permissions/> to my jnlp file but my application fails to connect to the SQL server.
I read somewhere that JWS doesn't allow custom policy files so I'm wondering how I can grant my application the permission. I also tried adding <j2ee-application-client-permissions/> to my jnlp file but with same results.
I'm using com.mysql.jdbc.Driver to connect to my SQL server and I have signed both the driver and my application's jar file.
I figured it out, the problem was not permission issue. Webstart downloads the application from the server and then runs on the clients machine which causes a file not found exception since the logging information file required to connect to mysql could not be found in the firefox directory
I guess I need to rethink my approach as to how to connect to the database from the java application