Play Frameworkで動くプログラムでDDL(データ操作でなく、CREATE TABLEなどスキーマを操作するSQL命令文)を発行しようとするとなぜかDB側に全然反映されなくて悩むことがあります。 悩まされた方、例えばこんな記事とか。 http://netmark.jp/2012/12/play-framework-isucon2-8.html なお、↑のコードでは EBean.createCallableSql("commit;") と Ebean.commitTransaction で2回コミットしてます。 本当は2回もいらないような気がするのですが、なんか試してるうちにこうじゃないと動かなかったのでこうしてます。 この問題は、DDL命令もロールバック可能なDB製品との組み合わせで発生します。PostgreSQLとSQLServerが該当します。EBeanはDBアクセスの最適化
PostgreSQLとScalaの勉強用に構築した際のメモ。 -- まず、AmazonLinuxを立ちあげてこちらを参考にPostgreSQLをインストール Install PostgreSQL on AWS EC2(Amazon Linux AMI 2013.03.1) | Developers.IO バージョン確認。9.2.7がインストールされました。 -bash-4.1$ psql -version psql (9.2.7) Type "help" for help. postgres=# 次に、PlayFrameworkのインストール。こちらを参考に2.2.3をインストールしました。 Installing -- play new <name>でアプリケーションを作成して。 ec2-user$ mkdir ~/workspace && cd ~/workspace ec2-user$
Play framework 2.x Java and 1.x Advent Calendar 2013*1の15日目(4日ぶり3回目)です。 Play! 2.1(Java)で作り始めたWebアプリなのですが、まだ作り始めたばっかりのうちに2.2系列のPlay!が出て来たので、どうせなら今のうちにと乗り換えを敢行しました(BoneCPのコネクションリーク問題が解決したバージョン0.8.0が、Play! 2.2.1でやっと標準搭載されたからというのが直接のきっかけです)。 結論から言うと乗り換えはできたのですが、設定ファイルの名前も書式も変わっているなど一本道ではなかったので覚え書きをここに。 どうやって作業したかと言いますと、2.1と2.2とでそれぞれplay newして、できあがったプロジェクトディレクトリを差分取って差分を今のプロジェクトに反映して(手動)などとやっておりました。 設定
Akka Classic pertains to the original Actor APIs, which have been improved by more type safe and guided Actor APIs. Akka Classic is still fully supported and existing applications can continue to use the classic APIs. It is also possible to use the new Actor APIs together with classic actors in the same ActorSystem, see coexistence. For new projects we recommend using the new Actor API. For the ne
Google グループでは、オンライン フォーラムやメール ベースのグループを作成したり、こうしたフォーラムやグループに参加したりすることで、大勢のユーザーと情報の共有やディスカッションを行うことができます。
Deploying your application Using Play in production Deploying your application Production configuration Setting up a front end HTTP server Configuring HTTPS Deploying to a cloud service Common topics The build system Configuration Static assets Built-in HTTP filters Extending Play with modules Working with Databases Server Backends Deploying your application Scheduling tasks Application Shutdown I
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Working with Play Common topics Static assets §Static assets This section covers serving your application’s static resources such as JavaScript, CSS and images. Working with public assets Using CoffeeScript Using LESS CSS Using Sass Using JSHint Using RequireJs Next: Working with
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く