[JBoss-user] Order of events with BMP

2002-02-15 Thread Edward Q. Bridges

using JBoss 2.4.3

i don't think i'm clear with regard to the sequence of events with the 
creation of a BMP bean.

as i understand the sequence of events:
* client calls home.create(xxx);
* server calls bean.ejbCreate(xxx).
* implementation of ejbCreate(xxx) should insert a row into the database, 
and return an initialized copy of the primary key.

when simply trying to create a bean, the server is generating an error 
message from ejbStore().  

does the server call ejbStore() after ejbCreate()?  and should that method 
do the work of actually putting the data for the bean into the database?

can someone clearly describe the correct sequence of calls to the interface 
methods?  

thanks in advance
--e--



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jdk1.4's gone final

2002-02-15 Thread David Ward

More than a couple things in 1.4 look attractive to JBoss:

1) JDBC 3.0 includes all the javax.sql stuff built in, but much cooler 
is the new ability to retrieve database automatically generated keys.
http://java.sun.com/j2se/1.4/docs/relnotes/features.html#jdbc
Not sure, but this might make it easier for the Entity Container to get 
the primary key back on ejbCreate if/when the key was a sequence.

2) Take a look at the Reflection Performance improvements graph here:
http://java.sun.com/j2se/1.4/performance.guide.html
Again not sure, but this looks like it could really help JBoss 
performance with the Proxy layer to the EJBs.

Much more...


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user]

2002-02-15 Thread yleef

ÅóÓÑ£º

ÄúºÃÂð£¿×î½üÎҺܺã¡Ã¿Ì춼ÊÕµ½ºÜ¶àºÜ¶àÇ®£¬µÄÈ·¸Ð¾õºÃ¼«ÁË£¡£¡
÷ÈÁ¦ÎÞÏÞµÄinternetÏÖÔÚÓлú»áʵÏÖÎÒÃÇ°Ù Íò¸» Î̵ÄÃÎÏ룡£¡

ÏÖÔÚÎÒÏòÄú½éÉÜÒ»¸ö¿Æѧ¡¢ÏȽø¡¢°²È«µÄ׬ǮϵͳÍøÕ¾¡°Ð Ӯ  Àû¡±¡£
¡°Ð Ӯ  Àû¡±£ºhttp://rich4all.yeah.net

ºÃ¶àÈËͨ¹ýÕâÖÖÊÀ½çÁ÷Ðеġ°¶à²ã´ÎÍøÂçÓªÏú MLM¡±
³ÉΪÁË°ÙÍò¸»  ÎÌ£¬Õâ¾ÍÊÇ Internet µÄÁ¦Á¿£¡

²»ÒªÁßØĶ̶Ì5·ÖÖÓʱ¼ä£¬¼¸·ÖÖÓÍùÍù»á¸Ä±äÈËÒ»ÉúµÄÃüÔË£¡¸Ï¿ì·ÃÎÊ°É£¡²»ÒªÓÌÔ¥£º
¡°Ð Ӯ  Àû¡±£ºhttp://rich4all.yeah.net

¸Ï¿ì¼ÓÈë°É£¡Ô½ÔçÔ½ºÃ£¡¹§Ï²·¢²Æ£¡

ÄúµÄÅóÓÑ£ºÌìºÍ
QQ:67262864

¡ï ǧÍò±ð´í¹ý»ú»á£¡£¡£¡¡ï

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Embedd tomcat Mapping failure...

2002-02-15 Thread Saimon Moore

Hi,

I've been trying out JBoss-2.4.4-Tomcat-4.0.1. JBoss is great.. ;)

I started it up using the run_with_catalina.sh script. Everything seems to 
load up fine. i.e. no exception traces or anything. Seems quite normal (I've 
included the log anyway

But when I try to access http://127.0.0.1:8080 I get  

HTTP Status 500 - No Context configured to process this request
 
and the following exception trace appears in the jboss terminal.


If I individually startup Tomcat it loads up ok..but with the above 
script...I always get the following..

Very strange.

Hope someone can help me out on this one...

Cheers

Saimon

Exception trace:
==
[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING 
configuration error for request URI
[ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
at 
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)


Startup Log:
===
saimon@linux:~/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin  sh run_with_catalina.sh
JBOSS_CLASSPATH=:/usr/java/jdk1.3/lib/tools.jar:run.jar:../lib/crimson.jar
jboss.home = /home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss
Using JAAS LoginConfig: 
file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/catalina/auth.conf
JBoss release: JBoss-2.4.4 CVSTag=JBoss_2_4_4
JBoss version: 2.4.4.2001-12-29 02:04:40 PST
Using configuration catalina
[INFO,root] Started Log4jService, 
config=file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/catalina/log4j.properties
[INFO,Info] Java version: 1.3.0,Sun Microsystems Inc.
[INFO,Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun Microsystems Inc.
[INFO,Info] System: Linux 2.4.0-4GB,i386
[INFO,Shutdown] Shutdown hook added
[INFO,ServiceControl] Initializing 48 MBeans
[INFO,WebService] Initializing
[INFO,WebService] Initialized
[INFO,NamingService] Initializing
[INFO,NamingService] Initialized
[INFO,JNDIView] Initializing
[INFO,JNDIView] Initialized
[INFO,TransactionManagerService] Initializing
[INFO,TransactionManagerService] Initialized
[INFO,ClientUserTransactionService] Initializing
[INFO,ClientUserTransactionService] Initialized
[INFO,JaasSecurityManagerService] Initializing
[INFO,JaasSecurityManagerService] Initialized
[INFO,JdbcProvider] Initializing
[INFO,JdbcProvider] Loaded JDBC-driver:org.hsqldb.jdbcDriver
[INFO,JdbcProvider] Initialized
[INFO,HypersonicDatabase] Initializing
[INFO,HypersonicDatabase] Initialized
[INFO,DefaultDS] Initializing
[INFO,DefaultDS] Initialized
[INFO,ServerDataCollector] Initializing
[INFO,ServerDataCollector] Initialized
[INFO,ContainerFactory] Initializing
[INFO,ContainerFactory] Initialized
[INFO,EmbeddedCatalinaServiceSX] Initializing
[INFO,EmbeddedCatalinaServiceSX] Initialized
[INFO,JBossMQService] Initializing
[INFO,JBossMQService] Initialized
[INFO,StateManager] Initializing
[INFO,StateManager] Initialized
[INFO,PersistenceManager] Initializing
[INFO,PersistenceManager] Initialized
[INFO,JVMServerILService] Initializing
[INFO,JVMServerILService] Initialized
[INFO,RMIServerILService] Initializing
[INFO,RMIServerILService] Initialized
[INFO,OILServerILService] Initializing
[INFO,OILServerILService] Initialized
[INFO,UILServerILService] Initializing
[INFO,UILServerILService] Initialized
[INFO,TopicManager] Initializing
[INFO,TopicManager] Initialized
[INFO,TopicManager] Initializing
[INFO,TopicManager] Initialized
[INFO,TopicManager] Initializing
[INFO,TopicManager] Initialized
[INFO,QueueManager] Initializing
[INFO,QueueManager] Initialized
[INFO,QueueManager] Initializing
[INFO,QueueManager] Initialized
[INFO,QueueManager] Initializing
[INFO,QueueManager] Initialized
[INFO,QueueManager] 

[JBoss-user] AS/400 JDBC Database connection pool

2002-02-15 Thread Yong T. Kim

Can anyone show me some example on how to setup
Database connection pool in jboss.jcml file?  I mean
for AS/400.

Thanks in advance.

=
- - - - - - - - - - - -
Yong T. Kim (kimion.com)
Software Developer
[EMAIL PROTECTED]
http://www.kimion.com:8080

__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Embedd tomcat Mapping failure...

2002-02-15 Thread Saimon Moore

On Vie 15 Feb 2002 16:15, Michael Schulz wrote:

  This has been discussed many times in the forums.

I'm sorry I didn't check the archives before...won't happen again..

 The default installation of JBoss 2.4.4/Tomcat 4.0.1 does not deploy any
 web app to the root context - so the mapping failure is not unexpected.  As
 the JBoss docs state, the correct URL to use is:
 http://127.0.0.1:8080/jboss. You could also deploy your own application in
 the root context to get rid of this error.

 Since this question comes up so frequently, I created an .ear file which
 deploys a web app to the root context.  I've attached it to this reply for
 your convenience.

 -Michael Schulz


Thanks a lot for your help...Much appreciated...

P.S. Could be an idea to update the Tomcat.html doc that comes with the 
binary dist to reflect this.

Thanks again...

Saimon

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jdk1.4's gone final

2002-02-15 Thread Nicolai P Guba

On Friday 15 Feb 2002 2:47 pm, David Ward wrote:

 More than a couple things in 1.4 look attractive to JBoss:

 1) JDBC 3.0 includes all the javax.sql stuff built in, but much cooler
 is the new ability to retrieve database automatically generated keys.
 http://java.sun.com/j2se/1.4/docs/relnotes/features.html#jdbc
 Not sure, but this might make it easier for the Entity Container to get
 the primary key back on ejbCreate if/when the key was a sequence.

Hmmm, this feature is available via a multitude of drivers, but in a 
non-standardised way...

 2) Take a look at the Reflection Performance improvements graph here:
 http://java.sun.com/j2se/1.4/performance.guide.html
 Again not sure, but this looks like it could really help JBoss
 performance with the Proxy layer to the EJBs.

Probably not very much, unless deploy-time becomes of an issue.  I cannot 
imagine any run-time features that would require relfection.  Or?

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] org.jboss.mq.SpyJMSException

2002-02-15 Thread Srinivas . Kotamraju

hi all,

when I execute this method..I get the error cannot send a messsage to JMS
server, I have done all the things like getting the context, creating queue
session, creating the message etc..but it gives me the error below when it
executes
queueSender.send(queue, message);
any ideas??
thanks
srini

  public void send(String msg) throws JMSException {

  // Create a message
  TextMessage message = queueSession.createTextMessage();
  message.setText(msg);

  // Send the message
  queueSender.send(queue, message);
   }


org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
at org.jboss.mq.Connection.sendToServer(Connection.java:515)
at org.jboss.mq.SpySession.sendMessage(SpySession.java:398)
at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:103)
at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:69)
at com.bms.ecp.oms.jms.MessageSender.send(MessageSender.java:106)
at com.bms.ecp.oms.jms.MessageSender.main(MessageSender.java:137)
linked exception is:
java.lang.NullPointerException
no stack trace available

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Jboss 3.0 security

2002-02-15 Thread Achilleus Mantzios

I repost the RabbitHole security related question since 
i dont think i was clear enough.

The point is that i cannot even use the 
org.jboss.security.auth.spi.UsersRolesLoginModule
or the org.jboss.security.auth.spi.SimpleServerLoginModule.

My System INFO is as follows:

LOG===
INFO JBoss (MX MicroKernel) 3.0.0alpha(200202131601) [RABBIT-HOLE]
INFO Starting General Purpose Architecture (GPA)...
INFO ClassLoaders and ServiceLibraries initialized
18:16:05,814 INFO  [root] Started Log4jService, 
config=file:/usr/local/jboss-all/build/output/jboss-3.0.0alpha/conf/default/log4j.properties
18:16:05,819 INFO  [Server] Home Dir: 
/usr/local/jboss-all/build/output/jboss-3.0.0alpha
18:16:05,852 INFO  [Server] Install URL: 
file:/usr/local/jboss-all/build/output/jboss-3.0.0alpha/
18:16:05,853 INFO  [Server] Configuration URL: 
file:/usr/local/jboss-all/build/output/jboss-3.0.0alpha/conf/default/
18:16:05,855 INFO  [Server] Spine URL: 
file:/usr/local/jboss-all/build/output/jboss-3.0.0alpha/lib/
18:16:05,856 INFO  [Server] Library URL: 
file:/usr/local/jboss-all/build/output/jboss-3.0.0alpha/lib/ext/
18:16:05,857 INFO  [Server] Patch URL: null
18:16:05,879 INFO  [Info] Java version: 1.3.1,Sun Microsystems Inc.
18:16:05,882 INFO  [Info] Java VM: Java HotSpot(TM) Server VM 1.3.1-b24,Sun 
Microsystems Inc.18:16:05,883 INFO  [Info] OS-System: Linux 2.4.7,i3861


With the latter (SimpleServerLoginModule) this is what i have:

=auth.conf

dynacom {
// Very simple login module:
// any user name is accepted.
// password should either coincide with user name or be null,
// all users have role guest,
// users with non-null password also have role user
org.jboss.security.auth.spi.SimpleServerLoginModule required;
};

==

==log=

2002-02-15 18:17:31,593 DEBUG 
[org.jboss.security.plugins.JaasSecurityManager.dynacom] Login failure
javax.security.auth.login.LoginException: unable to find LoginModule class: 
org.jboss.security.auth.spi.SimpleServerLoginModule
at 
javax.security.auth.login.LoginContext.invoke(LoginContext.java:631)
at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
at java.security.AccessController.doPrivileged(Native Method)
at 
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:374)
at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:341)
at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:197)
at 
org.jboss.jetty.security.JBossUserRealm$JBossUserPrincipal.isAuthenticated(JBossUserRealm.java:61)
at 
org.jboss.jetty.security.JBossUserRealm$JBossUserPrincipal.authenticate(JBossUserRealm.java:115)
at 
org.mortbay.jetty.servlet.ServletHandler.formAuthenticated(ServletHandler.java:734)
at 
org.mortbay.http.handler.SecurityHandler.handle(SecurityHandler.java:311)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1269)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1223)
at org.mortbay.http.HttpServer.service(HttpServer.java:725)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:748)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:921)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:763)
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:138)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
at java.lang.Thread.run(Thread.java:484)
2002-02-15 18:17:31,594 WARN  
[org.jboss.jetty.security.JBossUserRealm#Dynacom LTD] JBossUserPrincipal: 
amantzio is NOT authenticated
==

Any clues would be really nice.
I'd be happy to help if someone wants more info.
Thanx.

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:+30-10-8981112
fax:+30-10-8981877
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jdk1.4's gone final

2002-02-15 Thread danch

Nicolai P Guba wrote:

 
 Probably not very much, unless deploy-time becomes of an issue.  I cannot 
 imagine any run-time features that would require relfection.  Or?


I think there are a few places, but if so they probably cache the method 
lookups already.

-danch






___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] About deployment application on JBoss

2002-02-15 Thread Christine

Hi,

I am a new user of JBoss. I used J2EE server and Websphere before. Both
provide deployment tools which will generate ejb and web descriptor for
you. But in Jboss, do I have to write jaws.xml, jboss.xml, web.xml by
myself and use Ant to build the ear file? Could anyone tell me whether
there is better way to do so? Thanks in advance!

Regards

--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jdk1.4's gone final

2002-02-15 Thread Nicolai P Guba

On Friday 15 Feb 2002 5:37 pm, danch wrote:

 Nicolai P Guba wrote:
  Probably not very much, unless deploy-time becomes of an issue.  I cannot
  imagine any run-time features that would require relfection.  Or?

 I think there are a few places, but if so they probably cache the method
 lookups already.

Cheers!

Hmmm, apparently Serialization and I/O libs have received a lot of attention. 

Guess that would have a positive impact.  Especially the way things are 
serialized.  We looked at this and found that there is lots of room for 
improvement... (pre 1.4).

*sigh*  Sometimes it's just all too visible that different groups within 
Javasoft are working on parts of the core SDK.  It's sometimes so 
inconsistent and the quality varies greatly.



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] About deployment application on JBoss

2002-02-15 Thread Michael Schulz

If you use Forte for your Java IDE, there are some tools available:

http://forte.sun.com/ffj/downloads/index.html


This link is to an EJB code generator/deployer that works specifically with
JBoss:

http://www.ambitj.com/


I have not tried these myself (yet), so you should evaluate them yourself.

-Michael Schulz


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christine
Sent: Friday, February 15, 2002 11:59 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] About deployment application on JBoss


Hi,

I am a new user of JBoss. I used J2EE server and Websphere before. Both
provide deployment tools which will generate ejb and web descriptor for
you. But in Jboss, do I have to write jaws.xml, jboss.xml, web.xml by
myself and use Ant to build the ear file? Could anyone tell me whether
there is better way to do so? Thanks in advance!

Regards

--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Memory leak in Minerva DB Pool

2002-02-15 Thread Lucas McGregor

I have noticed a memory leak in my JBoss Minerva pool and am
wondering if there is a known fix or work around. I have checked the manual,
the forum, and the newsgroups with little luck. Let me give you the
specifics:

I am running on Solaris8 on x86, JBoss-2.4.1 and Tomcat-3.2.3. I
have a pool with the following configuration in my jboss.jcml


  mbean code=org.jboss.resource.ConnectionFactoryLoader
 
name=JCA:service=ConnectionFactoryLoader,name=minerva_jdbc_matrix
attribute name=FactoryNameminerva_jdbc_matrix/attribute
attribute name=RARDeployerNameJCA:service=RARDeployer/attribute
attribute name=ResourceAdapterName
  Minerva JDBC LocalTransaction ResourceAdapter
/attribute
attribute name=Properties
  ConnectionURL=jdbc:HypersonicSQL:hsql://localhost:9019
/attribute

attribute name=ConnectionManagerFactoryName
  MinervaSharedLocalCMFactory
/attribute

attribute name=ConnectionManagerProperties
  # Pool type - uncomment to force, otherwise it is the default
  #PoolConfiguration=per-factory

  # Connection pooling properties - see
  # org.jboss.pool.PoolParameters
  MinSize=0
  MaxSize=50
  Blocking=true
  GCEnabled=true
  IdleTimeoutEnabled=true
  InvalidateOnError=true
  TrackLastUsed=false
  GCIntervalMillis=12
  GCMinIdleMillis=12
  IdleTimeoutMillis=12
  MaxIdleTimeoutPercent=1.0
/attribute


attribute name=PrincipalMappingClass
  org.jboss.resource.security.ManyToOnePrincipalMapping
/attribute
attribute name=PrincipalMappingProperties
  userName=sa
  password=
  TransactionIsolation=TRANSACTION_READ_COMMITED
/attribute
  /mbean

I have a stateless session bean which contains the code snippet:

try {
InitialContext ic = new InitialContext();
DataSource ds = (DataSource)
ic.lookup(java:/minerva_jdbc_matrix);
Connection con = ds.getConnection();
con.close();
} catch (Exception e) {
}

I didn't include the con.close() in a finally, since the only way a
connection could be opened is by ds.getConnection() working, which means
that it would always get to con.close() if a connection had opened.

I hit this bean with a client that runs 250 concurrent request. I
notice that in about 5-8 hrs, the memory of the Java process crawls from
about 70M to 120M at which point it will starts to throw OutOfMemory errors
and I can never get a connection the database again. If I turn off the
client, and let the box's CPU get down to about 99% idle, the memory never
clears up. I am forced to restart my server.

I have tried this with two different databases and jdbc drivers
(hsql and ms sql) and have gotten similar results, so I don't think it is a
bug in the drivers. 

Am I using the pools incorrectly? Is that a pool configuration
parameter that I should try?

Thanks in advance for any help or clues,
Lucas McGregor, NovaLogic


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jdk1.4's gone final

2002-02-15 Thread David Hamilton

Nicolai P Guba wrote :

 On Friday 15 Feb 2002 2:47 pm, David Ward wrote:

 2) Take a look at the Reflection Performance improvements graph here:
 http://java.sun.com/j2se/1.4/performance.guide.html
 Again not sure, but this looks like it could really help JBoss
 performance with the Proxy layer to the EJBs.

 Probably not very much, unless deploy-time becomes of an issue.  I cannot
 imagine any run-time features that would require relfection.  Or?

Think it depends what you mean by reflection.  If you are referring to the
process of getting Method and constructor objects the I agree, but this
seems to refer to the actual invoke method.

This article that the invoke method is 20 (twenty) times faster in 1.4 than
1.3.1.

There must be at least two invocations on any EJB call (Proxy and
Container), and that would, in the past, have added a much larger overhead
than a straight method call.

Looking at the rest of the article, the claims it makes are quite impressive
(and if realistic, would make a significant difference to JBoss performance,
IMHO).
They are (over 1.3.1):
Servlets: +35%
EJBs: +34%
SPECjbb2000: +58%

Anyone fancy trying some figures for JBoss?

david

PS:  Spent 10 mins looking for the performance article, and only realised
(after finding it) that the URL was in the quoted post.  Typical!


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] AS/400 JDBC Database connection pool

2002-02-15 Thread Adrian Brock

I spotted this link when looking for something else.
WARNING: I don't own an AS/400 so I haven't tried it.

http://www.softagency.co.jp/jboss/org/documentation/HTML/ch04s11.html

Regards,
Adrian


From: Yong T. Kim [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [JBoss-user] AS/400  JDBC Database connection pool
Date: Fri, 15 Feb 2002 07:08:51 -0800 (PST)

Can anyone show me some example on how to setup
Database connection pool in jboss.jcml file?  I mean
for AS/400.

Thanks in advance.

=
- - - - - - - - - - - -
Yong T. Kim (kimion.com)
Software Developer
[EMAIL PROTECTED]
http://www.kimion.com:8080

__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] inner transactions

2002-02-15 Thread Eric Kaplan

I have two session beans, a and b.  Both are container managed transactions,
Requires transaction.  I call a from the client, which presumably initiates
the transaction, and a calls b.  Something happens in b, which then throws
an EJBException.  It seems like this is initiating a rollback, since b is in
a's transaction.  Is this the case?  If it is, presumably there is no way to
continue in a at this point, since the transaction has been rolled back?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lucas
McGregor
Sent: Friday, February 15, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Memory leak in Minerva DB Pool


I have noticed a memory leak in my JBoss Minerva pool and am
wondering if there is a known fix or work around. I have checked the manual,
the forum, and the newsgroups with little luck. Let me give you the
specifics:

I am running on Solaris8 on x86, JBoss-2.4.1 and Tomcat-3.2.3. I
have a pool with the following configuration in my jboss.jcml


  mbean code=org.jboss.resource.ConnectionFactoryLoader

name=JCA:service=ConnectionFactoryLoader,name=minerva_jdbc_matrix
attribute name=FactoryNameminerva_jdbc_matrix/attribute
attribute name=RARDeployerNameJCA:service=RARDeployer/attribute
attribute name=ResourceAdapterName
  Minerva JDBC LocalTransaction ResourceAdapter
/attribute
attribute name=Properties
  ConnectionURL=jdbc:HypersonicSQL:hsql://localhost:9019
/attribute

attribute name=ConnectionManagerFactoryName
  MinervaSharedLocalCMFactory
/attribute

attribute name=ConnectionManagerProperties
  # Pool type - uncomment to force, otherwise it is the default
  #PoolConfiguration=per-factory

  # Connection pooling properties - see
  # org.jboss.pool.PoolParameters
  MinSize=0
  MaxSize=50
  Blocking=true
  GCEnabled=true
  IdleTimeoutEnabled=true
  InvalidateOnError=true
  TrackLastUsed=false
  GCIntervalMillis=12
  GCMinIdleMillis=12
  IdleTimeoutMillis=12
  MaxIdleTimeoutPercent=1.0
/attribute


attribute name=PrincipalMappingClass
  org.jboss.resource.security.ManyToOnePrincipalMapping
/attribute
attribute name=PrincipalMappingProperties
  userName=sa
  password=
  TransactionIsolation=TRANSACTION_READ_COMMITED
/attribute
  /mbean

I have a stateless session bean which contains the code snippet:

try {
InitialContext ic = new InitialContext();
DataSource ds = (DataSource)
ic.lookup(java:/minerva_jdbc_matrix);
Connection con = ds.getConnection();
con.close();
} catch (Exception e) {
}

I didn't include the con.close() in a finally, since the only way a
connection could be opened is by ds.getConnection() working, which means
that it would always get to con.close() if a connection had opened.

I hit this bean with a client that runs 250 concurrent request. I
notice that in about 5-8 hrs, the memory of the Java process crawls from
about 70M to 120M at which point it will starts to throw OutOfMemory errors
and I can never get a connection the database again. If I turn off the
client, and let the box's CPU get down to about 99% idle, the memory never
clears up. I am forced to restart my server.

I have tried this with two different databases and jdbc drivers
(hsql and ms sql) and have gotten similar results, so I don't think it is a
bug in the drivers.

Am I using the pools incorrectly? Is that a pool configuration
parameter that I should try?

Thanks in advance for any help or clues,
Lucas McGregor, NovaLogic


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] AS/400 JDBC Database connection pool

2002-02-15 Thread Adrian Brock

Hi,

Perhaps you can post your experiences of using JBoss on an AS/400.
There has been some interest on this list and in the forums.
http://main.jboss.org

I haven't seen anybody give any real feedback.

Regards,
Adrian


From: Yong T. Kim [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] AS/400  JDBC Database connection pool
Date: Fri, 15 Feb 2002 12:19:42 -0800 (PST)

Thanks.  What I guesses was basically same as what the
below links showed me.
Thanks alot.
It's working great.

--- Adrian Brock [EMAIL PROTECTED] wrote:
  I spotted this link when looking for something else.
  WARNING: I don't own an AS/400 so I haven't tried
  it.
 
 
http://www.softagency.co.jp/jboss/org/documentation/HTML/ch04s11.html
 
  Regards,
  Adrian
 
 
  From: Yong T. Kim [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] AS/400  JDBC Database
  connection pool
  Date: Fri, 15 Feb 2002 07:08:51 -0800 (PST)
  
  Can anyone show me some example on how to setup
  Database connection pool in jboss.jcml file?  I
  mean
  for AS/400.
  
  Thanks in advance.
  
  =
  - - - - - - - - - - - -
  Yong T. Kim (kimion.com)
  Software Developer
  [EMAIL PROTECTED]
  http://www.kimion.com:8080
  
  __
  Do You Yahoo!?
  Got something to say? Say it better with Yahoo!
  Video Mail
  http://mail.yahoo.com
  
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
 
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 
_
  MSN Photos is the easiest way to share and print
  your photos:
  http://photos.msn.com/support/worldwide.aspx
 


=
- - - - - - - - - - - -
Yong T. Kim (kimion.com)
Software Developer
[EMAIL PROTECTED]
http://www.kimion.com:8080

__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] About deployment application on JBoss

2002-02-15 Thread David Jencks

On 2002.02.15 12:58:31 -0500 Christine wrote:
 Hi,
 
 I am a new user of JBoss. I used J2EE server and Websphere before. Both
 provide deployment tools which will generate ejb and web descriptor for
 you. But in Jboss, do I have to write jaws.xml, jboss.xml, web.xml by
 myself and use Ant to build the ear file? Could anyone tell me whether
 there is better way to do so? Thanks in advance!

JBoss can normally deploy jars, ears, and I think wars (with an appropriate
web container) without any jboss specific files.  You need the jboss files
only if the defaults are inappropriate for you.  You may be able to get
away with not having any jboss specific files by some of these tricks:

setting DefaultDS to point to the database you want to use

Changing StandardJaws and StandardJBoss to specify more appropriate
defaults.

If you still need to customize further, I recommend investigating xdoclet
(on sourceforge) which can generate all the deployment descriptors for
several app servers including JBoss and Weblogic (and including
ejb-jar.xml)

david jencks




 Regards
 
 --
 Jia (Christine) Li
 
 524N ICT Building
 Department of Computer Science
 University of Calgary

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Embedd tomcat Mapping failure...

2002-02-15 Thread Dmitri Colebatch

Hi,

see  http://main.jboss.org/thread.jsp?forum=67thread=7931

cheers
dim


- Original Message -
From: Saimon Moore [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 16, 2002 2:05 AM
Subject: [JBoss-user] Embedd tomcat Mapping failure...


 Hi,

 I've been trying out JBoss-2.4.4-Tomcat-4.0.1. JBoss is great.. ;)

 I started it up using the run_with_catalina.sh script. Everything seems to
 load up fine. i.e. no exception traces or anything. Seems quite normal
(I've
 included the log anyway

 But when I try to access http://127.0.0.1:8080 I get

 HTTP Status 500 - No Context configured to process this request

 and the following exception trace appears in the jboss terminal.


 If I individually startup Tomcat it loads up ok..but with the above
 script...I always get the following..

 Very strange.

 Hope someone can help me out on this one...

 Cheers

 Saimon

 Exception trace:
 ==
 [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING
 configuration error for request URI
 [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
 java.lang.NullPointerException
 at

org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.
java:280)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:180)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
 at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
 at java.lang.Thread.run(Thread.java:484)
 

 Startup Log:
 ===
 saimon@linux:~/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin  sh
run_with_catalina.sh
 JBOSS_CLASSPATH=:/usr/java/jdk1.3/lib/tools.jar:run.jar:../lib/crimson.jar
 jboss.home = /home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss
 Using JAAS LoginConfig:
 file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/catalina/auth.conf
 JBoss release: JBoss-2.4.4 CVSTag=JBoss_2_4_4
 JBoss version: 2.4.4.2001-12-29 02:04:40 PST
 Using configuration catalina
 [INFO,root] Started Log4jService,

config=file:/home/saimon/JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/catalina/log4j.
properties
 [INFO,Info] Java version: 1.3.0,Sun Microsystems Inc.
 [INFO,Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun Microsystems
Inc.
 [INFO,Info] System: Linux 2.4.0-4GB,i386
 [INFO,Shutdown] Shutdown hook added
 [INFO,ServiceControl] Initializing 48 MBeans
 [INFO,WebService] Initializing
 [INFO,WebService] Initialized
 [INFO,NamingService] Initializing
 [INFO,NamingService] Initialized
 [INFO,JNDIView] Initializing
 [INFO,JNDIView] Initialized
 [INFO,TransactionManagerService] Initializing
 [INFO,TransactionManagerService] Initialized
 [INFO,ClientUserTransactionService] Initializing
 [INFO,ClientUserTransactionService] Initialized
 [INFO,JaasSecurityManagerService] Initializing
 [INFO,JaasSecurityManagerService] Initialized
 [INFO,JdbcProvider] Initializing
 [INFO,JdbcProvider] Loaded JDBC-driver:org.hsqldb.jdbcDriver
 [INFO,JdbcProvider] Initialized
 [INFO,HypersonicDatabase] Initializing
 [INFO,HypersonicDatabase] Initialized
 [INFO,DefaultDS] Initializing
 [INFO,DefaultDS] Initialized
 [INFO,ServerDataCollector] Initializing
 [INFO,ServerDataCollector] Initialized
 [INFO,ContainerFactory] Initializing
 [INFO,ContainerFactory] Initialized
 [INFO,EmbeddedCatalinaServiceSX] Initializing
 [INFO,EmbeddedCatalinaServiceSX] Initialized
 [INFO,JBossMQService] Initializing
 [INFO,JBossMQService] Initialized
 [INFO,StateManager] Initializing
 [INFO,StateManager] Initialized
 [INFO,PersistenceManager] Initializing
 [INFO,PersistenceManager] Initialized
 [INFO,JVMServerILService] Initializing
 [INFO,JVMServerILService] Initialized
 [INFO,RMIServerILService] Initializing
 [INFO,RMIServerILService] Initialized
 [INFO,OILServerILService] Initializing
 [INFO,OILServerILService] Initialized
 [INFO,UILServerILService] Initializing
 [INFO,UILServerILService] Initialized
 [INFO,TopicManager] Initializing
 [INFO,TopicManager] Initialized
 

[JBoss-user] Specifying Multiple Additional Connectors for EmbeddedCatalina

2002-02-15 Thread Dan Berger




I've modified the EmbeddedCatalinaServiceSX mbean block in my jboss.jcml to look like this:
 mbean code=org.jboss.web.catalina.EmbeddedCatalinaServiceSX name=DefaultDomain:service=EmbeddedTomcat
 attribute name=Port8080/attribute
 attribute name=enableLookupstrue/attribute
 attribute name=Config !-- it's element:attribute, not element config -- 
 Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 scheme=https secure=true
 Factory className= org.jboss.web.catalina.security.SSLServerSocketFactory securityDomainName= java:/jaas/tomcat/
 /Connector
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 / 
 /attribute
 /mbean
And I get this in the startup log:


[INFO,EmbeddedCatalinaServiceSX] Starting
[INFO,EmbeddedCatalinaServiceSX] Starting EmbeddedCatalinaSX
[INFO,EmbeddedCatalinaServiceSX] Building Http engine and connector
[INFO,Default] Apache Tomcat/4.0.2
[INFO,EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP addresses
[INFO,EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP addresses
[INFO,EmbeddedCatalinaServiceSX] HttpConnector[8443] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8443][0] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8443][1] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8443][2] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8443][3] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8443][4] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] OK
[INFO,EmbeddedCatalinaServiceSX] Started
If I reverse the order of the additional connectors I get this instead:


[INFO,EmbeddedCatalinaServiceSX] Starting
[INFO,EmbeddedCatalinaServiceSX] Starting EmbeddedCatalinaSX
[INFO,EmbeddedCatalinaServiceSX] Building Http engine and connector
[INFO,Default] Apache Tomcat/4.0.2
[INFO,EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP addresses
[INFO,EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] Ajp13Connector[8009] Opening server socket on all host IP addresses
[INFO,EmbeddedCatalinaServiceSX] Ajp13Connector[8009] Starting background thread[INFO,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][0] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][1] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][2] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][3] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][4] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] OK
[INFO,EmbeddedCatalinaServiceSX] Started
Much to my frustration, only the first specified additional connector actually get's started. Is this a known limitation? a bug? Or am I doing something wrong?



Any assistance would be greatly appreciated.





-- 
   Dan Berger [[EMAIL PROTECTED]]

   We are what we repeatedly do.  Excellence, then, is not an act, 
but a habit.
  -- Aristotle

   It comes in pints?!
  -- Pippin








Re: [JBoss-user] jdk1.4's gone final

2002-02-15 Thread Nicolai P Guba

On Friday 15 Feb 2002 7:24 pm, David Hamilton wrote:

 Nicolai P Guba wrote :
  On Friday 15 Feb 2002 2:47 pm, David Ward wrote:
 
  2) Take a look at the Reflection Performance improvements graph here:
  http://java.sun.com/j2se/1.4/performance.guide.html
  Again not sure, but this looks like it could really help JBoss
  performance with the Proxy layer to the EJBs.
 
  Probably not very much, unless deploy-time becomes of an issue.  I cannot
  imagine any run-time features that would require relfection.  Or?

 Think it depends what you mean by reflection.  If you are referring to the
 process of getting Method and constructor objects the I agree, but this
 seems to refer to the actual invoke method.

 This article that the invoke method is 20 (twenty) times faster in 1.4 than
 1.3.1.

 There must be at least two invocations on any EJB call (Proxy and
 Container), and that would, in the past, have added a much larger overhead
 than a straight method call.

Indeed, this is good news.

 Looking at the rest of the article, the claims it makes are quite
 impressive (and if realistic, would make a significant difference to JBoss
 performance, IMHO).
 They are (over 1.3.1):
 Servlets: +35%
 EJBs: +34%
 SPECjbb2000: +58%

 Anyone fancy trying some figures for JBoss?

I'd agree on the impressiveness ;)  We are going to stress test our servers, 
if there is any useful data, I'll publish them here.

cheers!

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user