Migrating from GWT-EXT to native GWT has never been an easy task as I expect it would. I took me some moths to really absorb the fundamentals of its Java code, structure and pattern. The price for taking this challenge was undoubtedly more gratifying especially on performance and size. I had lesser reboot due to memory leak and I had better handling on syntax especially on database due to its strict use of its object. Here are some improvements on my code: DatabaseServiceImpl.java String url = "jdbc:mysql://localhost:3306/"; String db = "mydb"; String driver = "com.mysql.jdbc.Driver"; String user = "myuser"; String password = "mypassword"; public String connectDatabase() { String resultString; try{ Class.forName(driver).newInstance(); conn = DriverManager.getConnection(url+db, user, password); //conn = DriverManager.getConnection...
Comments