This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed. Red Hat, as the licensor of this document, waives the right to enforce, and ag
JBoss Advent Calendar 2011の5日目のエントリです。今日はデータソースについて解説します。一応ターゲットとするバージョンはJBoss AS 5, 6系ということにします。JBoss AS 7では記述フォーマットは異なりますが各設定要素は大体一緒なのでAS7でも応用が効くでしょう。以下JBoss ASは5系または6系という前提で書きます。 JBoss ASでは [任意の名前]-ds.xml というデータソース設定ファイルをデプロイすることでデータソースが利用できるようになります。まずはこの最低限かつ典型的なデータソース設定の例を以下に挙げます。例ではPostgreSQLを使用しています。 <?xml version="1.0" encoding="UTF-8"?> <datasources> <local-tx-datasource> <jndi-name>Postg
Last week I made a comment on Michał's post - which I strongly recommend, by the way - where I alluded to the possibility of using an entity manager factory created by the application server instead of using the local JPA entity manager factory beans. Since I have been asked to provide a more detailed description, I will do this in a separate post, as doing that within the comment space is rather
JTA transactions with Hibernate, JBoss 6 and Spring 3 In this post I will show you how to use JTA transactions with JBoss 6 server, Spring 3 and Hibernate 3. In JEE, JTA allows transactions to be distributed across multiple resources. You don't need a JEE server though to run JTA transactions, Tomcat will do (possibly with a bit more hassle). I decided to use JBoss 6 because it is a popular JEE se
要望があってたのでちょっくら調べてみました。 デフォルトではQueueを作成しても、そこにストアできるメッセージの数の制限はないようです。極端な話、receiveを行わずにひたすらsendを繰り返すと、OutOfMemoryErrorまで行き着くと思われます。 これを設定によって制限し、Exceptionをスローさせるようにしたいという要求があるとします。その場合は以下のようにやるとできる(かもしれません)。動作確認まではやれてないので不確かですが。 <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=A"> <attribute name="MaxDepth">100</attribute> <depends optional-attribute-name="D
To access basic information about a server, use the serverinfo command. This currently supports: [bin]$ ./twiddle.sh -H serverinfo Get information about the MBean server usage: serverinfo [options] options: -d, --domain Get the default domain -c, --count Get the MBean count -l, --list List the MBeans -- Stop processing options [bin]$ ./twiddle.sh --server=toki serverinfo --count 460 [bin]$ ./twidd
1 2 Previous Next 18 Replies Latest reply on Jul 17, 2015 7:58 AM by uh_69 I'm looking for a definitive answer on configuring the pool size for an MDB. I've seen several conflicting answers between forum posts and documentation, see http://community.jboss.org/thread/147300?tstart=30 Is it the @Pool annotation? http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/reference/1.0
Created by adrian.brock on Nov 1, 2005 5:06 PM. Last modified by bassel.ghneim on Aug 12, 2007 4:11 PM. MDB Configuration using the old invoker proxy binding (JMSContainerInvoker) Complete and up-to-date details can be found in the dtd $JBOSS_HOME/docs/dtd/jboss_x_y.dtd Delivery The delivery to the mdb is handled by the invoker-proxy-binding. Here we consider the JMSContainerInvoker. NOTE: A conta
Both Stateless Session beans and Message Driven Beans have an instance pool. The basic configuration of JBoss uses a thread local pool to avoid Java synchronization (org.jboss.ejb3.pool.ThreadLocalPool). These EJB types can be configured to use an alternative pooling mechanism. For example, JBoss has a strict pool size implementation that will only allow a fixed number of concurrent requests to ru
Your application may be 20% slower due to logging - hard to believe, but possible. Learn about simple Log4j tips to maximize logging performance in this short article. Your application may be 20% slower due to logging - hard to believe, but possible. Learn about simple Log4j tips to maximize logging performance in this short article. To prove the hypothesis, that settings other than the Log4j defa
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く