How can I change thread pool size in embedded Jetty 9? Do we need any specific component for this?
Copyright © 2008-2024 Webtide The UI for this site is derived from the Antora default UI and is licensed under the MPL-2.0 license. Several icons are imported from Octicons and are licensed under the MIT license. Eclipse Jetty® is a trademarks of the Eclipse Foundation, Inc. This project is made possible by Webtide. Additional thanks to the Eclipse Foundation for hosting this project. Authored in
最近はじめて Web アプリ開発を行っています。諸般の理由によりおおよそ以下の構成になっています。 サーバーサイド Java (JAX-RS) 開発環境は Jetty プロダクションは WebLogic ビルドは Gradle クライアントサイド CoffeeScript / SCSS / HTML5 / Handlebars Backbone.js ビルドは grunt (Yeoman ベース) 僕は今まで Servlet は勿論 WebLogic なんてさっぱり触ったことが無かったのですが, WebLogic へのデプロイはとにかく面倒で時間がかかるみたいなので開発環境は Jetty にしています。基本的には Jetty を起動しておきながら grunt で watch して各種アセットのプリコンパイルを行いつつ、たまに必要に応じて Jetty を再起動させて動作確認するといった具合。
Eclipse Jetty provides a highly scalable and memory-efficient web server and servlet container, supporting many protocols such as HTTP/3,2,1 and WebSocket. Furthermore, the project offers integrations with many other technologies, such as OSGi, JMX, JNDI, JAAS, etc. These components are open source and are freely available for commercial use and distribution under both the EPL2 and Apache2 license
tomcatやapacheは普段使い慣れているのであれだが、Jettyの場合はどうなるのか紐解いてみた。簡単かと思いきや意外なところではまってしまったので備忘録として。ベースは「Jetty/Howto/Configure SSL」( http://wiki.eclipse.org/Jetty/Howto/Configure_SSL)を参考に。 Jetty 7.1.3 Java 1.6 (オレオレ)証明書とキーペアを作る これは「Jetty/Howto/Configure SSL」に書いてある通り。jettyに付属のkeytoolを使用する。(Java付属のkeytoolではないところに注意)。で、マニュアルどおりにjettyを別名とした証明書を発行する。 >keytool -keystore keystore -alias jetty -genkey -keyalg RSA まぁ簡単。実行
ロギングしましょう。 ・Request Log Jetty/Howto/Configure Request Logs - Eclipsepedia これに書いてある通りです。 デフォルトでは、OFFなので、start.iniの etc/jetty-requestlog.xmlのコメントアウトを外します。これで標準的なRequestのログが、logsに出力されます。 ・Server Log Tomcatだと、accessLogは、server.xml。STDOUTとSTDERRは、conf/logging.propertiesのcatalina.outだったと(たぶん) Jettyでもcatalina.outと同じレベルのログが欲しければ、普通にリダイレクトすればいいと思います。 java -jar start.jar > console.log 2>&1Tomcatの場合は、起動のbatや
参考にさせていただいたサイト Executable WARs with Jetty ≪ EclipseSource Blog http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/ これをGradleで実行するコードがGitHubで配布されてる。 https://github.com/xlson/standalone-war GitHubのコードはJetty 6で作成するものなので、 書き換えてJetty 7で動作させるようにする。 まず、ここを書き換える。 build.gradle dependencies { compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '7.2.1.v20101111' } 次に、 Starter
Jettyのダウンロードと解凍 現在JettyはEclipse Foundationでホストされている。 http://www.mortbay.org/jetty/からリンクを辿り、Eclipseのサイトから以下をダウンロードして解凍。 jetty-distribution-7.0.0.RC1.zip Eclipseでプロジェクト作成 Eclipseで、新規Javaプロジェクトを作成し、先ほど解凍したlibフォルダ内の以下のファイルをプロジェクトにコピーしてパスを通す。 jetty-continuation-7.0.0.RC1.jar jetty-http-7.0.0.RC1.jar jetty-io-7.0.0.RC1.jar jetty-security-7.0.0.RC1.jar jetty-server-7.0.0.RC1.jar jetty-servlet-7.0.0.RC1.j
I have a really tiny problem. I have the following build.sbt file: name := "Tueet" libraryDependencies += "org.eclipse.jetty" % "jetty-webapp" % "8.1.2.v20120308" After invoking sbt update, I get the following: [info] Set current project to Tueet (in build file:/C:/dev/tueet/) [info] Updating {file:/C:/dev/tueet/}default-d5e982... [info] Resolving org.scala-lang#scala-library;2.9.1 ... [info] Reso
今回から、Jettyを使ってWebSocketの実装例を説明していきます。 なお、この連載では、開発に以下の環境を使用します。 Mac OS X 10.5 JavaVM 1.6 Eclipse 3.5.1[1] EclipseはNLpackで日本語化[2]しています。また、Eclipseには、m2eclipseプラグイン[3]がインストールされています。今回の内容は、EclipseとMavenに慣れている方を想定していますが、必要だと思われるところは掘り下げて説明します。そして最終的には、サーバ側はServletを作成しデプロイするのではなく、デスクトップアプリケーションとして動作するようにしたいと思います[4]。 Jettyについて 今回使用するJettyは、Javaで作成されたウェブサーバです。 以前は、codehausで公開されていましたが、最新のJetty7以降はEclipse
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く