Steps needed to use MySQL database with Play framework 2.0

Look at this page from Play’s documentation. It says: Other than for the h2 in-memory database, useful mostly in development mode, Play 2.0 does not provide any database drivers. Consequently, to deploy in production you will have to add your database driver as an application dependency. For example, if you use MySQL5, you need to … Read more

Advice deploying war files vs executable jar with embedded container

An interesting question. This is just my view on the topic, so take everything with a grain of salt. I have occasionally deployed and managed applications using both servlet containers and embedded servers. I’m sure there are still many good reasons for using servlet containers but I will try to just focus on why they … Read more

RESTful on Play! framework

As per request, a simple REST-like approach. It works almost the same way Codemwncis’ solution works but uses the Accept header for content negotiation. First the routes file: GET /user/{id} Application.user POST /user/ Application.createUser PUT /user/{id} Application.updateUser DELETE /user/{id} Application.deleteUser You don’t specify any content type here. Doing so is IMHO only necessary when you … Read more

How do I change the default port (9000) that Play uses when I execute the “run” command?

Play 2.x In Play 2, these are implemented with an sbt plugin, so the following instructions are really just sbt tasks. You can use any sbt runner (e In Play 2, these are implemented with an sbt plugin, so the following are really just sbt tasks. You can use any sbt runner (e.g. sbt, play, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)