Re: [JBoss-user] Jetty SSL with 3.2.0RC2

2003-03-07 Thread Neal Sanche
Excellent. I'm glad I put that little bit of information there. It's 
always good to solve these things.

Cheers.

-Neal

On Friday 07 March 2003 08:47 pm, Frank Morton wrote:
> Thanks! You were a huge help. I missed the obvious and was changing
> the jboss-service.xml in server/default/conf instead of the one in
> server/default/deploy/jbossweb.sar/META-INF. Worked first time
> after that.
>
> Your other info was also helpful.
>
> Frank
>
> On Friday, March 7, 2003, at 08:33  PM, Neal Sanche wrote:
> > On Friday 07 March 2003 09:12 am, Frank Morton wrote:
> >> I added the following to jboss-service.xml while running
> >> 3.2.0RC2 under MacOS X:
> >>
> >> 
> >> 
> >> 
> >> 8443
> >> 5
> >> 255
> >> 5
> >> 2000
> >>  >> name="Keystore">/usr/local/jboss/server/default/conf/keystore >>et> mypwurd
> >> mypwurd
> >> 
> >> 
> >> 
> >
> > Hey Frank, it really looks good, but just in case it's helpful,
> > here's the contents of my jboss-service.xml in
> > server/default/deploy/jbossweb.sar/META-INF which works with JDK
> > 1.4.1 under Linux on a 3.2.0RC2 JBoss. The only thing that I
> > would think would be different is your JDK release. OS X being a
> > JDK 1.3 variant, right?
> >
> >
> >  
> >
> > 8443
> > 5
> > 100
> > 3
> > 2000
> >  > name="jboss.server.home.dir"/>/
> > conf/mykeystore.jks
> > MyPassword
> > MyPassword
> > true
> >
> >  
> >
> >
> > Now, I added NeedClientAuth because I was experimenting with the
> > requirement of having SSL client certificates to access this SSL
> > port (which works for anyone who cares), you don't need that. The
> > only other difference is the way I'm setting the Keystore
> > property. It'll basically do the same thing as yours.
> >
> > The only other thing that you really need to ensure is that your
> > keystore file actually exists and is a correct JKS keystore. I
> > created mine with a command very similar to the following:
> >
> > keytool -genkey -alias myalias -keyalg rsa -keysize 2048
> > -validity 365 -keystore mykeystore.jks -storepass MyPassword
> > -keypass MyPassword
> >
> > Then typed in the answer to the rest of the questions. It doesn't
> > seem to matter what 'alias' you use, I'd guess it probably tries
> > the first alias it finds which has a private key. It seems to
> > settle on the first certificate in alphabetical order. If you
> > have more than one key in your keystore, you may need to make a
> > new keystore with only the keys you want. The keysize is also not
> > important, 1024 also works fine. I'd use at least 1024 bits
> > though. I think you definitely need a keyalg of 'rsa' for this to
> > work at all. I tried using 'dsa' (which is the default algorithm
> > it seems) and it wouldn't work. Also, by default, it seems that
> > keytool generates a self-signed certificate which is all that's
> > needed to get an initial SSL test working.
> >
> > A semi-interesting fact about getting SSL client certificate
> > authentication working is this: The client certificates must be
> > created by a trusted certificate authority. This means that your
> > keystore file must contain the public certificates of the
> > certificate authority your SSL server should trust. Without this
> > the client cannot prove it is trusted by any CA the server knows
> > about, and the client is rejected. That's just an aside, but
> > useful info to someone trying to get client auth working.
> >
> > In your server logs you should see lines like the following if
> > it's working:
> >
> > 2003-03-04 10:22:11,116 INFO  [org.jboss.jbossweb]
> > jetty.ssl.keystore=/home/neal/java/jboss-3.2.0RC2/server/default/
> >conf/ mykeystore.jks
> >
> > 2003-03-04 10:22:11,119 INFO  [org.jboss.jbossweb]
> > jetty.ssl.password=**
> >
> > 2003-03-04 10:22:11,122 INFO  [org.jboss.jbossweb]
> > jetty.ssl.keypassword=**
> >
> > 2003-03-04 10:22:11,125 INFO  [org.jboss.jbossweb]
> > jetty.ssl.keystore.type=jks
> >
> > 2003-03-04 10:22:11,132 INFO  [org.jboss.jbossweb]
> > jetty.ssl.keystore.provider.name=[DEFAULT]
> >
> > 2003-03-04 10:22:11,434 INFO  [org.jboss.jbossweb]
> > SSLServerSocketFactory=com.sun.net.ssl.internal.ssl.SSLServerSock
> >etFact [EMAIL PROTECTED]
> >
> > 2003-03-04 10:22:11,481 INFO  [org.jboss.jbossweb]
> > JsseListener.needClientAuth=true
> >
> > 2003-03-04 10:22:11,521 INFO  [org.jboss.jbossweb] Started
> > SocketListener on 0.0.0.0:8443
> >
> > Now at this point you should be able to connect to 8443 and
> > attempt a browser connection to https://localhost:8443/ and if
> > that doesn't work, all I can say is 'it works for me'. Why would
> > Java under OSX be any different with respect to socket
> > communications?
> >
> > Hope this helps out.
> >
> > -Neal
>
> ---
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
> debugger for

Re: [JBoss-user] Jetty SSL with 3.2.0RC2

2003-03-07 Thread Frank Morton
Thanks! You were a huge help. I missed the obvious and was changing
the jboss-service.xml in server/default/conf instead of the one in
server/default/deploy/jbossweb.sar/META-INF. Worked first time
after that.
Your other info was also helpful.

Frank

On Friday, March 7, 2003, at 08:33  PM, Neal Sanche wrote:

On Friday 07 March 2003 09:12 am, Frank Morton wrote:
I added the following to jboss-service.xml while running 3.2.0RC2
under MacOS X:



8443
5
255
5
2000
/usr/local/jboss/server/default/conf/keystore
mypwurd
mypwurd



Hey Frank, it really looks good, but just in case it's helpful, here's
the contents of my jboss-service.xml in
server/default/deploy/jbossweb.sar/META-INF which works with JDK
1.4.1 under Linux on a 3.2.0RC2 JBoss. The only thing that I would
think would be different is your JDK release. OS X being a JDK 1.3
variant, right?
   
 
   
8443
5
100
3
2000
/
conf/mykeystore.jks
MyPassword
MyPassword
true
   
 
   
Now, I added NeedClientAuth because I was experimenting with the
requirement of having SSL client certificates to access this SSL port
(which works for anyone who cares), you don't need that. The only
other difference is the way I'm setting the Keystore property. It'll
basically do the same thing as yours.
The only other thing that you really need to ensure is that your
keystore file actually exists and is a correct JKS keystore. I
created mine with a command very similar to the following:
keytool -genkey -alias myalias -keyalg rsa -keysize 2048 -validity 365
-keystore mykeystore.jks -storepass MyPassword -keypass MyPassword
Then typed in the answer to the rest of the questions. It doesn't seem
to matter what 'alias' you use, I'd guess it probably tries the first
alias it finds which has a private key. It seems to settle on the
first certificate in alphabetical order. If you have more than one
key in your keystore, you may need to make a new keystore with only
the keys you want. The keysize is also not important, 1024 also works
fine. I'd use at least 1024 bits though. I think you definitely need
a keyalg of 'rsa' for this to work at all. I tried using 'dsa' (which
is the default algorithm it seems) and it wouldn't work. Also, by
default, it seems that keytool generates a self-signed certificate
which is all that's needed to get an initial SSL test working.
A semi-interesting fact about getting SSL client certificate
authentication working is this: The client certificates must be
created by a trusted certificate authority. This means that your
keystore file must contain the public certificates of the certificate
authority your SSL server should trust. Without this the client
cannot prove it is trusted by any CA the server knows about, and the
client is rejected. That's just an aside, but useful info to someone
trying to get client auth working.
In your server logs you should see lines like the following if it's
working:
2003-03-04 10:22:11,116 INFO  [org.jboss.jbossweb]
jetty.ssl.keystore=/home/neal/java/jboss-3.2.0RC2/server/default/conf/ 
mykeystore.jks

2003-03-04 10:22:11,119 INFO  [org.jboss.jbossweb]
jetty.ssl.password=**
2003-03-04 10:22:11,122 INFO  [org.jboss.jbossweb]
jetty.ssl.keypassword=**
2003-03-04 10:22:11,125 INFO  [org.jboss.jbossweb]
jetty.ssl.keystore.type=jks
2003-03-04 10:22:11,132 INFO  [org.jboss.jbossweb]
jetty.ssl.keystore.provider.name=[DEFAULT]
2003-03-04 10:22:11,434 INFO  [org.jboss.jbossweb]
SSLServerSocketFactory=com.sun.net.ssl.internal.ssl.SSLServerSocketFact 
[EMAIL PROTECTED]

2003-03-04 10:22:11,481 INFO  [org.jboss.jbossweb]
JsseListener.needClientAuth=true
2003-03-04 10:22:11,521 INFO  [org.jboss.jbossweb] Started
SocketListener on 0.0.0.0:8443
Now at this point you should be able to connect to 8443 and attempt a
browser connection to https://localhost:8443/ and if that doesn't
work, all I can say is 'it works for me'. Why would Java under OSX be
any different with respect to socket communications?
Hope this helps out.

-Neal



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty SSL with 3.2.0RC2

2003-03-07 Thread Neal Sanche
On Friday 07 March 2003 09:12 am, Frank Morton wrote:
> I added the following to jboss-service.xml while running 3.2.0RC2
> under MacOS X:
>
> 
> 
> 
> 8443
> 5
> 255
> 5
> 2000
>  name="Keystore">/usr/local/jboss/server/default/conf/keystore
> mypwurd
> mypwurd
> 
> 
> 

Hey Frank, it really looks good, but just in case it's helpful, here's 
the contents of my jboss-service.xml in 
server/default/deploy/jbossweb.sar/META-INF which works with JDK 
1.4.1 under Linux on a 3.2.0RC2 JBoss. The only thing that I would 
think would be different is your JDK release. OS X being a JDK 1.3 
variant, right?

   
 
   
8443
5
100
3
2000
/
conf/mykeystore.jks
MyPassword
MyPassword
true
   
 
   

Now, I added NeedClientAuth because I was experimenting with the 
requirement of having SSL client certificates to access this SSL port 
(which works for anyone who cares), you don't need that. The only 
other difference is the way I'm setting the Keystore property. It'll 
basically do the same thing as yours.

The only other thing that you really need to ensure is that your 
keystore file actually exists and is a correct JKS keystore. I 
created mine with a command very similar to the following:

keytool -genkey -alias myalias -keyalg rsa -keysize 2048 -validity 365 
-keystore mykeystore.jks -storepass MyPassword -keypass MyPassword

Then typed in the answer to the rest of the questions. It doesn't seem 
to matter what 'alias' you use, I'd guess it probably tries the first 
alias it finds which has a private key. It seems to settle on the 
first certificate in alphabetical order. If you have more than one 
key in your keystore, you may need to make a new keystore with only 
the keys you want. The keysize is also not important, 1024 also works 
fine. I'd use at least 1024 bits though. I think you definitely need 
a keyalg of 'rsa' for this to work at all. I tried using 'dsa' (which 
is the default algorithm it seems) and it wouldn't work. Also, by 
default, it seems that keytool generates a self-signed certificate 
which is all that's needed to get an initial SSL test working.

A semi-interesting fact about getting SSL client certificate 
authentication working is this: The client certificates must be 
created by a trusted certificate authority. This means that your 
keystore file must contain the public certificates of the certificate 
authority your SSL server should trust. Without this the client 
cannot prove it is trusted by any CA the server knows about, and the 
client is rejected. That's just an aside, but useful info to someone 
trying to get client auth working.

In your server logs you should see lines like the following if it's 
working:

2003-03-04 10:22:11,116 INFO  [org.jboss.jbossweb] 
jetty.ssl.keystore=/home/neal/java/jboss-3.2.0RC2/server/default/conf/mykeystore.jks

2003-03-04 10:22:11,119 INFO  [org.jboss.jbossweb] 
jetty.ssl.password=**

2003-03-04 10:22:11,122 INFO  [org.jboss.jbossweb] 
jetty.ssl.keypassword=**

2003-03-04 10:22:11,125 INFO  [org.jboss.jbossweb] 
jetty.ssl.keystore.type=jks

2003-03-04 10:22:11,132 INFO  [org.jboss.jbossweb] 
jetty.ssl.keystore.provider.name=[DEFAULT]

2003-03-04 10:22:11,434 INFO  [org.jboss.jbossweb] 
[EMAIL PROTECTED]

2003-03-04 10:22:11,481 INFO  [org.jboss.jbossweb] 
JsseListener.needClientAuth=true

2003-03-04 10:22:11,521 INFO  [org.jboss.jbossweb] Started 
SocketListener on 0.0.0.0:8443

Now at this point you should be able to connect to 8443 and attempt a 
browser connection to https://localhost:8443/ and if that doesn't 
work, all I can say is 'it works for me'. Why would Java under OSX be 
any different with respect to socket communications?

Hope this helps out.

-Neal


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss3.2.0RC3: jbosscmp-jdbc_3_2.dtd error

2003-03-07 Thread Rafal Kedziorski
hi,

create-entity-command is in the given dtd not defined.

Ragal



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty SSL with 3.2.0RC2

2003-03-07 Thread Frank Morton
On Friday, March 7, 2003, at 06:19  PM, Jules Gosnell wrote:

Frank Morton wrote:
I added the following to jboss-service.xml while running 3.2.0RC2 
under MacOS X:



8443
5
255
5
2000
/usr/local/jboss/server/default/conf/keystore
mypwurd
mypwurd



Nothing is listening on port 8443 at all. This appears to be ignored.
Sounds like you are not running the configuration that you have 
modified...
That's what I  thought, so I introduced a typo in the config file and 
got an error
message reflecting that typo when I restarted, confirming that it was 
seen.

Still stuck


Ultimately,
I want to configure this on a production 3.0.6 server, too. So, if 
there are differences
in configuring the different versions, please let me know.
Anyone else have this running that can tell me what is missing or 
wrong?
Thanks.
---
This SF.net email is sponsored by: Etnus, makers of TotalView, The 
debugger for complex code. Debugging C/C++ programs can leave you 
feeling lost and disoriented. TotalView can help you find your way. 
Available on major UNIX and Linux platforms. Try it free. 
www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The 
debugger for complex code. Debugging C/C++ programs can leave you 
feeling lost and disoriented. TotalView can help you find your way. 
Available on major UNIX and Linux platforms. Try it free. > www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Crazy CPU Usage Problem

2003-03-07 Thread Rafal Kedziorski
hi,

we had the same effects under Linux with the same J2SE and WLS. Try to 
update to J2SE 1.3.1_06/_07.

Rafal

At 10:13 07.03.2003 -0800, Hunter Hillegas wrote:
I've had a JBoss 3.0x install running great for almost a year. In the past
week or so, we upgraded from 3.04 to 3.06. Our apps seem to run okay most of
the time but in the past week there have been two occasions where I have
come in in the morning and the CPUs have been pegged at 100%.
ps reports that the JVM is the guilty process. Shutting down JBoss and
restarting it returns CPU usage to ~10%.
Any ideas where I can start to look to figure this out?

JVM 1.3.1_05 (Sun) on Red Hat Linux 7.2 x86. Dual Processor machine. 1.5GB
RAM.
Thanks,
Hunter


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] unknown-pk and doc type jboss3.2RC3

2003-03-07 Thread Dennis R. Gesker
Hello All:

I seem to be experiencing a conflict between my doc type definition and 
my use of  and  tags and was wondering if it 
was a problem I'm having is with my configuration or if it is part of a 
wider issue.

Earlier today I was having some difficulty preparing a jbosscmp-jdbc.xml 
file that would allow me to to use the the  and 
 tags. After becoming a bit frustrated I moved the tags 
from within the  tags to the  tags and the EJB 
deployed just fine.

I removed  

http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd";>
from the begining of the file and placed my entries (below) back inside 
the  tags and they loaded just fine.

 companyEntity
Company

   java.lang.Integer
   index
   index
   INTEGER
   SERIAL
   
  
   
 
class="org.jboss.ejb.plugins.cmp.jdbc.JDBCPkSqlCreateCommand">
SELECT 
nextval('company_index_seq')
 

Is anyone else having this problem? Is the above doc type the correct 
one for use with this version of jboss? (I copied it from the 
jbosscmp-jdbc_3_2 file under /docs/dtd)

Thanks,
Dennis


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty SSL with 3.2.0RC2

2003-03-07 Thread Jules Gosnell
Frank Morton wrote:
I added the following to jboss-service.xml while running 3.2.0RC2 under 
MacOS X:




8443
5
255
5
2000
/usr/local/jboss/server/default/conf/keystore
mypwurd
mypwurd



Nothing is listening on port 8443 at all. This appears to be ignored. 
Sounds like you are not running the configuration that you have modified...

Ultimately,
I want to configure this on a production 3.0.6 server, too. So, if there 
are differences
in configuring the different versions, please let me know.

Anyone else have this running that can tell me what is missing or wrong?

Thanks.



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The 
debugger for complex code. Debugging C/C++ programs can leave you 
feeling lost and disoriented. TotalView can help you find your way. 
Available on major UNIX and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss 4.0 Startup Message (Builds fine)

2003-03-07 Thread Sasidharan, Manoj
Hello All,

I am getting the following message on the console while bringing up my JBoss
4.0.0 Alpha. Any comments?

FYI, the binaries were build using source downloaded yesterday.

Thanks and Best Regards
MS

14:08:47,472 INFO  [MainDeployer] Deployed package:
file:/G:/jboss-4.0.0alpha/se
rver/default/lib/autonumber-plugin.jar
14:08:49,129 INFO  [ServiceConfigurator] class not found for mbean
jboss:service
=WorkManager,type=TrunkInvoker
14:08:49,300 INFO  [AspectManagerService] Creating
java.lang.NullPointerException
at org.jboss.aop.AspectXmlLoader.loadURL(AspectXmlLoader.java:268)
at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:263)
at
org.jboss.aop.AspectManagerService.createService(AspectManagerService
.java:81)
at
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
196)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:81)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:160)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:559)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:993)
at $Proxy1.create(Unknown Source)
at
org.jboss.system.ServiceController.create(ServiceController.java:299)

at
org.jboss.system.ServiceController.create(ServiceController.java:239)

at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:81)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:160)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:559)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy6.create(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:199)
at
org.jboss.deployment.DeploymentInfo.create(DeploymentInfo.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:81)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:160)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:559)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:993)
at $Proxy1.create(Unknown Source)
at
org.jboss.system.ServiceController.create(ServiceController.java:299)

at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:81)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:160)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:559)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:726)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:573)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:538)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:522)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:81)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:160)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:559)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy7.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:328)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:236)
at org.jboss.Main.boot(Main.java:160)
at org.jboss.Main$1.run(Main.java:398)
at java.lang.Thread.run(Thread.java:479)
14:08:49,972 INFO  [AspectManagerService] Created
14:08:49,972 INFO  [AspectDeployer] Creating
14:08:50,019 INFO  [AspectDeployer] Created
14:08:50,019 INFO  [Log4jService] Creating
14:08:50,050 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL:
resour
ce:log4j.xml
14:08:50,644 INFO  [Log4jService] Created
14:08:50,675 INFO  [WebService] Creating
14:08:50

[JBoss-user] loader repository

2003-03-07 Thread Gabriel Pinto




Does anyone knows why I cannot use  in my 
application=20
when I am deploying on a second level directory, like=20
./deploy/directory/

thanks a lot





-- 

Gabriel Esteves Marques Pinto

   Diretor de TI
[EMAIL PROTECTED]
  www.brainweb.com.br
(19)3287-7060  Ramal:253
 Núcleo SOFTEX-Campinas






---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Crazy CPU Usage Problem

2003-03-07 Thread Nelson, Tracy
| From: Hunter Hillegas [mailto:[EMAIL PROTECTED]
| Subject: [JBoss-user] Crazy CPU Usage Problem
| 
| in the past week there have been two occasions 
| where I have
| come in in the morning and the CPUs have been pegged at 100%.
| 
| ps reports that the JVM is the guilty process. Shutting down JBoss and
| restarting it returns CPU usage to ~10%.
| 
| Any ideas where I can start to look to figure this out?

We have seen this happen with constraint violations under Oracle.  Check
your server logs and see.  I think there is a patch available for 3.0.7RC1,
not sure if it's applicable to earlier 3.0.x releases.

Cheers!
-- Tracy Nelson


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty temp dir

2003-03-07 Thread Scott M Stark
You have to set the java.io.tmpdir system property to change the location.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Sebastian Hauer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 11:21 AM
Subject: [JBoss-user] Jetty temp dir



Hi,

Is the a a jetty config option to change jetty's default temp directory,
where is unpacks war's?
I saw the forum thread regarding this:
http://jboss.org/forums/thread.jsp?forum=50&thread=20399&message=3738995
&q=temp+dir#3738995

The thread is now a few month old so I wanted to know if there is now
maybe some config file setting for this.

Regards,
Sebastian


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty temp dir

2003-03-07 Thread Hunter Hillegas
Yes... java.tmp.dir I think it is called.

> From: "Sebastian Hauer" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 7 Mar 2003 14:21:13 -0500
> To: <[EMAIL PROTECTED]>
> Subject: [JBoss-user] Jetty temp dir
> 
> 
> Hi,
> 
> Is the a a jetty config option to change jetty's default temp directory,
> where is unpacks war's?
> I saw the forum thread regarding this:
> http://jboss.org/forums/thread.jsp?forum=50&thread=20399&message=3738995
> &q=temp+dir#3738995
> 
> The thread is now a few month old so I wanted to know if there is now
> maybe some config file setting for this.
> 
> Regards,
> Sebastian
> 
> 
> ---
> This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Crazy CPU Usage Problem

2003-03-07 Thread Scott M Stark
Start by looking at thread dumps.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Hunter Hillegas" <[EMAIL PROTECTED]>
To: "JBoss User" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 10:13 AM
Subject: [JBoss-user] Crazy CPU Usage Problem


> I've had a JBoss 3.0x install running great for almost a year. In the past
> week or so, we upgraded from 3.04 to 3.06. Our apps seem to run okay most of
> the time but in the past week there have been two occasions where I have
> come in in the morning and the CPUs have been pegged at 100%.
> 
> ps reports that the JVM is the guilty process. Shutting down JBoss and
> restarting it returns CPU usage to ~10%.
> 
> Any ideas where I can start to look to figure this out?
> 
> JVM 1.3.1_05 (Sun) on Red Hat Linux 7.2 x86. Dual Processor machine. 1.5GB
> RAM.
> 
> Thanks,
> Hunter



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Jetty temp dir

2003-03-07 Thread Sebastian Hauer

Hi,

Is the a a jetty config option to change jetty's default temp directory,
where is unpacks war's?
I saw the forum thread regarding this:
http://jboss.org/forums/thread.jsp?forum=50&thread=20399&message=3738995
&q=temp+dir#3738995

The thread is now a few month old so I wanted to know if there is now
maybe some config file setting for this.

Regards,
Sebastian


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] EJBQL MEMBER OF problems remain in 3.0.6?

2003-03-07 Thread Jeremy Boynes
Title: Message



Please 
clarify your problem here - the join at the bottom is for the c.partnerOwner.id 
path expansion and not the MEMBER OF expansion. Posting sample data illustrating 
the problem would help a lot.

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Alexey 
  YudichevSent: Friday, March 07, 2003 5:10 AMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] EJBQL MEMBER 
  OF problems remain in 3.0.6?
  Returning to my prevoius postings, assume we have Partner and 
  StoreCategory entities with TWO relations between each other:
  1) Many Partners are assigned to Many StoreCategories 
  2) One Partner owns Many StoreCategories 
  The following ejbql: 
  SELECT DISTINCT OBJECT(c) FROM StoreCategory c, Partner 
  p   WHERE c.browsable   AND (c.partnerOwner.id=?1 OR (p.id=?1 AND p MEMBER OF 
  c.partners)) 
  results in: 
  SELECT DISTINCT t0_c.id FROM storecategory t0_c, partner t2_p, 
  partner t1_c_partnerOwner WHERE (t0_c.browsable AND (t1_c_partnerOwner.id = ? 
  OR (t2_p.id = ? AND EXISTS (SELECT t4_c_partners_RELATION_TABLE.Partner FROM 
  partner_categories_stor_1cl2gdd t4_c_partners_RELATION_TABLE WHERE 
  t0_c.id=t4_c_partners_RELATION_TABLE.StoreCategory AND 
  t2_p.id=t4_c_partners_RELATION_TABLE.Partner AND 
  (t0_c.partnerOwner=t1_c_partnerOwner.id)
  c.partners is m2m cmr, c.partnerOwner is o2m cmr. 
  We can see that the last clause "AND 
  (t0_c.partnerOwner=t1_c_partnerOwner.id)" ONLY limits result to the o2m 
  relationship although in ejbql we have OR 
clause.


[JBoss-user] Crazy CPU Usage Problem

2003-03-07 Thread Hunter Hillegas
I've had a JBoss 3.0x install running great for almost a year. In the past
week or so, we upgraded from 3.04 to 3.06. Our apps seem to run okay most of
the time but in the past week there have been two occasions where I have
come in in the morning and the CPUs have been pegged at 100%.

ps reports that the JVM is the guilty process. Shutting down JBoss and
restarting it returns CPU usage to ~10%.

Any ideas where I can start to look to figure this out?

JVM 1.3.1_05 (Sun) on Red Hat Linux 7.2 x86. Dual Processor machine. 1.5GB
RAM.

Thanks,
Hunter



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: xmbean

2003-03-07 Thread Eric Jain
> How do I associate an XMBean whith its configuration file?

Okay, just discovered [EMAIL PROTECTED]; unfortunately the error messages
remain the same (at least there is a malformed-URL exception if I put in
a bad value for xmbean-dd, so it is being read at some point).

So lets blame the generated file:


http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_0.dtd";>


  Manages the keyword service.
  

  
  org.expasy.services.jmx.KeywordManager

  
(no description)
org.expasy.services.jmx.KeywordManager
  

  
  

The number of keywords in the database.
Count
int

  

  







Any ideas what could be missing here?


--
Eric Jain



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] xmbean

2003-03-07 Thread Eric Jain
How do I associate an XMBean whith its configuration file?

--- jboss-service.xml ---

 

 

--- log ---

java.lang.NullPointerException
at
javax.management.modelmbean.ModelMBeanInfoSupport.(ModelMBeanInfoS
upport.java:126)
at
org.jboss.mx.interceptor.ObjectReferenceInterceptor.(ObjectReferen
ceInterceptor.java:48)
at
org.jboss.mx.modelmbean.ModelMBeanInvoker.preRegister(ModelMBeanInvoker.
java:236)


--
Eric Jain



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Performance estimation

2003-03-07 Thread Dan Christopherson
Unfortunately, a lot of this depends on how you design your application, 
and a few configuration options for JBoss. It shouldn't be much of a 
problem if you have plenty of memory (and allow the JVM to use it via 
-xmx flag), and use Commit option A on all entities. CMP2 with 
read-ahead will be more efficient than BMP. If you don't use entity 
beans, or if you don't use commit option A, you'll be serializing stuff 
out of the database as its needed in each transaction. This will give 
you very much higher latencies.

Having said that, 5TX/second isn't much load, really. Having 200 
concurrent users is more of a memory issue than anything - how much of 
an issue depends on how much data you keep in HTTP sessions and stateful 
session beans.

hth,
-danch
KRÁLIK Vladimír wrote:
Hello all,

we are going to build J2EE application on JBOSS 3.2 ( web-access for
max 200 concurent users, 500 registered users, max 20TX/day, max
5TX/sec, mass of TX are in batch jobs ). We would like use Intell procesors
with Red Hat Linux.
Can somebody suggest me, how many processors and memory will we need
? Has somebody experience with that or largest system ?

thanks for Your answers.
			vlk

Vladimir Kralik
Asset Soft Banska Bystrica 





---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jre with jboss3.0.4

2003-03-07 Thread Eric J Kaplan








Other than for jsp compilation,
can someone verify whether or not you can safely run jboss
with the jre and not the jdk?

I trolled through the forums and tried to piece together a
definitive answer but wasn’t able to.

 

Regards

 

Eric Kaplan








Re: [JBoss-user] Optimise stateless session bean access from servlets

2003-03-07 Thread Brian McSweeney



thanks very much StatsK,
very clear. I think the only thing I'm still unsure 
of is the lifecycle of stateless session beans.
If they can become bad at any stage, is it a good 
idea to cache it anyway do you reckon?
I really appreciate your help,
thanks,
Brian
 

  - Original Message - 
  From: 
  Stas 
  Krichevsky 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, March 07, 2003 3:44 
PM
  Subject: RE: [JBoss-user] Optimise 
  stateless session bean access from servlets
  
  
  Hi,
  Re. #1 – Probably 
  you’re right, but we’re doing it in our product and till now everything 
  worked. If the reference becomes bad, you can catch the exception and 
  re-create the reference.
  Re. #2 – Sure, you 
  can use try/catch blocks in jsp.
  Re. #3 – The 
  difference between statefull and stateless beans is that in stateless bean you 
  should pass the “state” to every bean method, i.e. container may give the same 
  bean instance to different clients.
   
  Again, what I 
  suggested was only performance optimization and if you didn’t decide yet on 
  the architecture of your product, it’s better to look at some mvc framework 
  and some design patterns first.
  
  
  StasK
   
  -Original 
  Message-From: Brian 
  McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 4:37 
  PMTo: 
  [EMAIL PROTECTED]Subject: Re: [JBoss-user] Optimise 
  stateless session bean access from servlets
   
  
   
  
  Thanks 
  StasK,
  
   
  
  a few points though. 
  
  
   
  
  1) I've heard you shouldn't hold 
  references for ejbs in the session objects really. 
  
   
  
  
  2) when you create the instance, I 
  think you have to wrap it in a try catch block. I'm not sure if 
  
  
  you can do this in scriptlets. But 
  I don't know jsps well.
  
   
  
  3) If the session bean is 
  stateless, does it make any sense to hold it in a 
  HttpSessionObject?
  
  ( this leads me to ask the 
  question - if a session bean is stateless, why is it called "session" at 
  all?
  
  would love to know people's 
  opinion about this. Am I being very stupid? )
  
   
  
  Brian
  

- Original Message - 


From: Stas 
Krichevsky 

To: [EMAIL PROTECTED] 


Sent: Friday, 
March 07, 2003 1:43 PM

Subject: RE: 
[JBoss-user] Optimise stateless session bean access from 
servlets

 
Hi,
You 
could use http session to store instance of the session bean. Something like 
following:
<%
    
MyStatelessSession theBean = (MyStatelessSession) 
session.getAttribute(“theBean”);
    
If (null == theBean) {
    
// create the instance
    
session.setAttribute(“theBean”, theBean);
    
}
    
// use the bean.
%>
 
This 
way the instance of the bean will be created once per 
session.
 
Of 
course you may look at some design patterns too, for example business 
delegate pattern (a good example can be found in “Programming Jakarta 
Struts” by Chuck Cavaness ).
 
Hope 
this helps.
 


StasK
 
-Original 
Message-From: Brian 
McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 2:03 
PMTo: 
[EMAIL PROTECTED]Subject: [JBoss-user] Optimise 
stateless session bean access from servlets
 

Hi all,

 

My business logic is controlled 
by stateless session beans.

My front-end is probably going 
to be JSPs which use the session 

beans. I could create a 
reference to the session bean each time it's 

used, but from my understanding 
of how it works, when the client 

calls 
MyStatelessSessionHome.create( ) we cannot tell if a new object 


is actually created on the 
server. 

 

My understanding is that 
the container can at any time decide which 

instance of the stateless 
session bean in the bean pool can be used for 

the client's reference. So, my 
question is - would it not be more optimal 

to actually create a reference 
to each of my stateless session beans on 

the main servlet startup (say in 
init) and let each of my jsps use the same 

reference. This would avoid the 
overhead of bean creation for each JSP. 

 

Thoughts,

cheers,

Brian


Re: [JBoss-user] Optimise stateless session bean access from servlets

2003-03-07 Thread Brian McSweeney



thanks very much StatsK,
very clear. I think the only thing I'm still unsure 
of is the lifecycle of stateless session beans.
If they can become bad at any stage, is it a good 
idea to cache it anyway do you reckon?
I really appreciate your help,
thanks,
Brian
 

  - Original Message - 
  From: 
  Stas 
  Krichevsky 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, March 07, 2003 3:44 
PM
  Subject: RE: [JBoss-user] Optimise 
  stateless session bean access from servlets
  
  
  Hi,
  Re. #1 – Probably 
  you’re right, but we’re doing it in our product and till now everything 
  worked. If the reference becomes bad, you can catch the exception and 
  re-create the reference.
  Re. #2 – Sure, you 
  can use try/catch blocks in jsp.
  Re. #3 – The 
  difference between statefull and stateless beans is that in stateless bean you 
  should pass the “state” to every bean method, i.e. container may give the same 
  bean instance to different clients.
   
  Again, what I 
  suggested was only performance optimization and if you didn’t decide yet on 
  the architecture of your product, it’s better to look at some mvc framework 
  and some design patterns first.
  
  
  StasK
   
  -Original 
  Message-From: Brian 
  McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 4:37 
  PMTo: 
  [EMAIL PROTECTED]Subject: Re: [JBoss-user] Optimise 
  stateless session bean access from servlets
   
  
   
  
  Thanks 
  StasK,
  
   
  
  a few points though. 
  
  
   
  
  1) I've heard you shouldn't hold 
  references for ejbs in the session objects really. 
  
   
  
  
  2) when you create the instance, I 
  think you have to wrap it in a try catch block. I'm not sure if 
  
  
  you can do this in scriptlets. But 
  I don't know jsps well.
  
   
  
  3) If the session bean is 
  stateless, does it make any sense to hold it in a 
  HttpSessionObject?
  
  ( this leads me to ask the 
  question - if a session bean is stateless, why is it called "session" at 
  all?
  
  would love to know people's 
  opinion about this. Am I being very stupid? )
  
   
  
  Brian
  

- Original Message - 


From: Stas 
Krichevsky 

To: [EMAIL PROTECTED] 


Sent: Friday, 
March 07, 2003 1:43 PM

Subject: RE: 
[JBoss-user] Optimise stateless session bean access from 
servlets

 
Hi,
You 
could use http session to store instance of the session bean. Something like 
following:
<%
    
MyStatelessSession theBean = (MyStatelessSession) 
session.getAttribute(“theBean”);
    
If (null == theBean) {
    
// create the instance
    
session.setAttribute(“theBean”, theBean);
    
}
    
// use the bean.
%>
 
This 
way the instance of the bean will be created once per 
session.
 
Of 
course you may look at some design patterns too, for example business 
delegate pattern (a good example can be found in “Programming Jakarta 
Struts” by Chuck Cavaness ).
 
Hope 
this helps.
 


StasK
 
-Original 
Message-From: Brian 
McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 2:03 
PMTo: 
[EMAIL PROTECTED]Subject: [JBoss-user] Optimise 
stateless session bean access from servlets
 

Hi all,

 

My business logic is controlled 
by stateless session beans.

My front-end is probably going 
to be JSPs which use the session 

beans. I could create a 
reference to the session bean each time it's 

used, but from my understanding 
of how it works, when the client 

calls 
MyStatelessSessionHome.create( ) we cannot tell if a new object 


is actually created on the 
server. 

 

My understanding is that 
the container can at any time decide which 

instance of the stateless 
session bean in the bean pool can be used for 

the client's reference. So, my 
question is - would it not be more optimal 

to actually create a reference 
to each of my stateless session beans on 

the main servlet startup (say in 
init) and let each of my jsps use the same 

reference. This would avoid the 
overhead of bean creation for each JSP. 

 

Thoughts,

cheers,

Brian


Re: [JBoss-user] Performance estimation

2003-03-07 Thread Stephen Davidson
翽 wrote:
Hello all,

we are going to build J2EE application on JBOSS 3.2 ( web-access for
max 200 concurent users, 500 registered users, max 20TX/day, max
5TX/sec, mass of TX are in batch jobs ). We would like use Intell procesors
with Red Hat Linux.
Can somebody suggest me, how many processors and memory will we need
? Has somebody experience with that or largest system ?

thanks for Your answers.
			vlk

Vladimir Kralik
Asset Soft Banska Bystrica 


Hi Vladimir.

This would translate as a minimal load.

When I was first proof of concept testing JBoss 3.0, on a laptop no less,
I had it supporting just over 200 users, running about 5TX/second (double your
requirement).
Laptop was a Sony Viao, 850Mhz PIII 256MB Ram (PC100Mhz).
OS was SuSE Linux (7.1 at the time - they have since put out a few upgrades,
I would recommend 8.1 today).
JVM was Sun's JDK 1.3.1.
You may be interested to note the following;
1) Laptop running in Graphical Mode (I was running this test in KDE)
2) Somewhere between 205 - 210 concurrent users, ran out of Ram and
started swapping, which completely destroyed performance.
The project in question was designed to initially support 145,000
concurrent users, with approx 15,000 Tx/sec.
-Steve

--
Java/J2EE Developer/Integrator
214-724-7741
Looking for a new Job Opportunity


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Oracle RAQ Plus thick driver memory issues.

2003-03-07 Thread jbossuserlist
I have an issue in our production environment we have JBOSS 3.03 running off redhat 
7.3 and 
an Oracle RAQ database cluster with transparent fault tolerence and high availability.
My problem is that these Oracle RAQ features require the use of the Oracle OCI (Thick) 
driver.
As a result our memory foot print has grown alarmingly.
For a JVM size of 300MB the JBOSS App Server uses 3GB or so.
Can anybody suggest a solution or cause for this.
Anthony Geoghegan
Senior Developer CngHotels.

___
This email, its attachments and any other items transmitted with it are
confidential and intended solely for the use of the individual or entity
to whom they are addressed. If you are not the intended recipient please
notify [EMAIL PROTECTED] immediately and delete this e-mail
and any attachments from your system.It is possible for data transmitted
by e-mail to be deliberately or accidentally corrupted or intercepted
and therefore CNG Hotels Limited(Click and Go) does not assume any
responsibility or liability for any breach of confidence that may arise
through use of this medium.This footnote also confirms that this email
message has been swept for the presence of known computer viruses.
However, this e-mail cannot be guaranteed to be secure or virus or
error free and consequently such information could have been intercepted,
corrupted lost,destroyed or may arrive late, incomplete or be otherwise
unsafe to use.
___
CNG Hotels Limited - THE WORLDWIDE ONLINE HOTEL RESERVATIONS COMPANY




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] XA Datasource & Oracle Problem (3.0.4)

2003-03-07 Thread Igor Fedorenko


> -Original Message-
> From: Brian Wallis [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 12:46 AM
> To: [EMAIL PROTECTED]; Igor Fedorenko
> Subject: Re: [JBoss-user] XA Datasource & Oracle Problem (3.0.4)
> 
> 
> On Fri, 7 Mar 2003 15:49, Igor Fedorenko wrote:
> 
> > No, it should not. Container is supposed to take care of XA 
> stuff and give
> > java.sql.Connection to EJBs.
> 
> I'm trying to co-ordinate a transaction between a JDBC 
> operation to read rows 
> from a table and a JMS topic publish that publishes the data 
> to a JMS topic.  
> the table is not an EJB, it is created via a trigger in the database.
> 
> Should I try wrapping the trigger updated table in an EJB?
What triggers the trigger? Can you not create a stateless session bean that uses JDBC 
to read/write to the database and sends JMS messages? If you (properly ;-) did that, 
EJB container would automatically coordinate transactions between JDBC and JMS. I 
though that was the whole point on EJBs.

> 
> > > I am not a database person and am porting old code into jboss
> > > 3 where I am
> > > trying to do it properly (the old code talked directly to the
> > > JDBC driver and got
> > > it's own connections, no connection pool). I am assuming the
> > > code that wants the
> > > XAConnection is the right way for doing this.
> >
> > No, it's not. Container takes care of pooling and low-level 
> transaction
> > management.
> 
> What container? I'm asking a resource adapter for a 
> connection to a database. 
> If the RA supports connections with XA transactions, 
> shouldn't it be able to 
> return XAConnections? This is not EJB stuff, it is an 
> application using a 
> resource adapter.
Sorry, I did not understand you were talking about using RA directly from the client. 
I might be wrong but I do not think JBoss currently supports "non-managed" part of the 
JCA spec. Can you explain in more details what you are doing and why do you need 
access to "raw" connection factory?

Igor.


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Optimise stateless session bean access from servlets

2003-03-07 Thread Stas Krichevsky









Hi,

Re. #1 – Probably you’re
right, but we’re doing it in our product and till now everything worked. If
the reference becomes bad, you can catch the exception and re-create the
reference.

Re. #2 – Sure, you can use try/catch
blocks in jsp.

Re. #3 – The difference between statefull
and stateless beans is that in stateless bean you should pass the “state”
to every bean method, i.e. container may give the same bean instance to
different clients.

 

Again, what I suggested was only
performance optimization and if you didn’t decide yet on the architecture
of your product, it’s better to look at some mvc framework and some
design patterns first.





StasK



 

-Original Message-
From: Brian McSweeney
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 4:37
PM
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] Optimise
stateless session bean access from servlets

 



 





Thanks StasK,





 





a few points though. 





 





1) I've heard you shouldn't hold
references for ejbs in the session objects really. 





 







2) when you create the instance, I
think you have to wrap it in a try catch block. I'm not sure if 





you can do this in scriptlets. But I
don't know jsps well.





 







3) If the session bean is stateless,
does it make any sense to hold it in a HttpSessionObject?





( this leads me to ask the question
- if a session bean is stateless, why is it called "session" at all?





would love to know people's opinion
about this. Am I being very stupid? )





 





Brian







- Original Message - 





From: Stas
Krichevsky 





To: [EMAIL PROTECTED] 





Sent: Friday,
March 07, 2003 1:43 PM





Subject: RE:
[JBoss-user] Optimise stateless session bean access from servlets





 



Hi,

You could use http
session to store instance of the session bean. Something like following:

<%

   
MyStatelessSession theBean = (MyStatelessSession)
session.getAttribute(“theBean”);

   
If (null == theBean) {

   
// create the instance

   
session.setAttribute(“theBean”, theBean);

   
}

   
// use the bean.

%>

 

This way the instance of
the bean will be created once per session.

 

Of course you may look at
some design patterns too, for example business delegate pattern (a good example
can be found in “Programming Jakarta Struts” by Chuck Cavaness ).

 

Hope this helps.

 





StasK



 

-Original Message-
From: Brian McSweeney
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 2:03
PM
To:
[EMAIL PROTECTED]
Subject: [JBoss-user] Optimise
stateless session bean access from servlets

 



Hi all,





 





My business logic is controlled by stateless
session beans.





My front-end is probably going to be
JSPs which use the session 





beans. I could create a reference to
the session bean each time it's 





used, but from my understanding of
how it works, when the client 





calls MyStatelessSessionHome.create(
) we cannot tell if a new object 





is actually created on the server. 





 





My understanding is that the
container can at any time decide which 





instance of the stateless
session bean in the bean pool can be used for 





the client's reference. So, my question
is - would it not be more optimal 





to actually create a reference to
each of my stateless session beans on 





the main servlet startup (say in
init) and let each of my jsps use the same 





reference. This would avoid the
overhead of bean creation for each JSP. 





 





Thoughts,





cheers,





Brian












RE: [JBoss-user] Stateful Session Bean Cache (JBOSS3.2RC2)

2003-03-07 Thread Corbin, James

Thanks Scott.  I appreciate your help.

J.D.

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 8:02 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Stateful Session Bean Cache (JBOSS3.2RC2)

Define a custom container configuration in the deployment jboss.xml
descriptor as
demonstrated by the testsuite/src/resources/cts/META-INF/jboss.xml
descriptor.


   
  
 
 MaxOne Stateful Session
 
 
org.jboss.ejb.plugins.LRUStatefulContextCachePolicy

   1
   1
   
   
   20
   
   15
   
   15
   
   45

 
  

   
  
 StatefulSessionBean
 ejbcts/StatefulSessionBean
 MaxOne Stateful Session
  
   



Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Corbin, James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 8:17 AM
Subject: [JBoss-user] Stateful Session Bean Cache (JBOSS3.2RC2)


> 
> Hello,
> 
> Is there a place to configure the min and max cache size for a SINGLE
> stateful session bean in JBOSS3.2?  In standardjboss.xml you can configure
> global settings but I would like to set different values for each stateful
> bean.
> 
> J.D.
> 
>   _  
> 
> J.D. Corbin 
> Architecture and Emerging Systems
> Starwood Technology and Revenue Systems 
> 9285 Teddy Lane, Suite 230 
> Lone Tree, CO 80124
> 
> Phone: 303.790.9551   
> Fax:303.790.9550  
> 
> 
> [EMAIL PROTECTED]



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
This electronic message transmission contains information from the Company that may be 
proprietary, confidential and/or privileged.
The information is intended only for the use of the individual(s) or entity named 
above.  If you are not the intended recipient, be
aware that any disclosure, copying or distribution or use of the contents of this 
information is prohibited.  If you have received
this electronic transmission in error, please notify the sender immediately by 
replying to the address listed in the "From:" field.



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Stateful Session Bean Cache (JBOSS3.2RC2)

2003-03-07 Thread Scott M Stark
Define a custom container configuration in the deployment jboss.xml descriptor as
demonstrated by the testsuite/src/resources/cts/META-INF/jboss.xml descriptor.


   
  
 
 MaxOne Stateful Session
 

org.jboss.ejb.plugins.LRUStatefulContextCachePolicy

   1
   1
   
   
   20
   
   15
   
   15
   
   45

 
  

   
  
 StatefulSessionBean
 ejbcts/StatefulSessionBean
 MaxOne Stateful Session
  
   



Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Corbin, James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 8:17 AM
Subject: [JBoss-user] Stateful Session Bean Cache (JBOSS3.2RC2)


> 
> Hello,
> 
> Is there a place to configure the min and max cache size for a SINGLE
> stateful session bean in JBOSS3.2?  In standardjboss.xml you can configure
> global settings but I would like to set different values for each stateful
> bean.
> 
> J.D.
> 
>   _  
> 
> J.D. Corbin 
> Architecture and Emerging Systems
> Starwood Technology and Revenue Systems 
> 9285 Teddy Lane, Suite 230 
> Lone Tree, CO 80124
> 
> Phone: 303.790.9551   
> Fax:303.790.9550  
> 
> 
> [EMAIL PROTECTED]



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Optimise stateless session bean access from servlets

2003-03-07 Thread Brian McSweeney



 
Thanks StasK,
 
a few points though. 
 
1) I've heard you shouldn't hold references for 
ejbs in the session objects really. 
 

2) when you create the instance, I think you have 
to wrap it in a try catch block. I'm not sure if 
you can do this in scriptlets. But I don't know 
jsps well.
 
3) If the session bean is stateless, does it make 
any sense to hold it in a HttpSessionObject?
( this leads me to ask the question - if a session 
bean is stateless, why is it called "session" at all?
would love to know people's opinion about this. Am 
I being very stupid? )
 
Brian

  - Original Message - 
  From: 
  Stas 
  Krichevsky 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, March 07, 2003 1:43 
PM
  Subject: RE: [JBoss-user] Optimise 
  stateless session bean access from servlets
  
  
  Hi,
  You could use http 
  session to store instance of the session bean. Something like 
  following:
  <%
      
  MyStatelessSession theBean = (MyStatelessSession) 
  session.getAttribute(“theBean”);
      
  If (null == theBean) {
      
  // create the instance
      
  session.setAttribute(“theBean”, theBean);
      
  }
      
  // use the bean.
  %>
   
  This way the instance 
  of the bean will be created once per session.
   
  Of course you may 
  look at some design patterns too, for example business delegate pattern (a 
  good example can be found in “Programming Jakarta Struts” by Chuck Cavaness 
  ).
   
  Hope this 
  helps.
   
  
  
  StasK
   
  -Original 
  Message-From: Brian 
  McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 2:03 
  PMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] Optimise stateless 
  session bean access from servlets
   
  
  Hi all,
  
   
  
  My business logic is controlled by 
  stateless session beans.
  
  My front-end is probably going to 
  be JSPs which use the session 
  
  beans. I could create a reference 
  to the session bean each time it's 
  
  used, but from my understanding of 
  how it works, when the client 
  
  calls 
  MyStatelessSessionHome.create( ) we cannot tell if a new object 
  
  
  is actually created on the server. 
  
  
   
  
  My understanding is that the 
  container can at any time decide which 
  
  instance of the stateless 
  session bean in the bean pool can be used for 
  
  the client's reference. So, my 
  question is - would it not be more optimal 
  
  to actually create a reference to 
  each of my stateless session beans on 
  
  the main servlet startup (say in 
  init) and let each of my jsps use the same 
  
  reference. This would avoid the 
  overhead of bean creation for each JSP. 
  
   
  
  Thoughts,
  
  cheers,
  
  Brian


[JBoss-user] Jetty SSL with 3.2.0RC2

2003-03-07 Thread Frank Morton
I added the following to jboss-service.xml while running 3.2.0RC2 under 
MacOS X:




8443
5
255
5
2000
/usr/local/jboss/server/default/conf/keystore
mypwurd
mypwurd



Nothing is listening on port 8443 at all. This appears to be ignored. 
Ultimately,
I want to configure this on a production 3.0.6 server, too. So, if 
there are differences
in configuring the different versions, please let me know.

Anyone else have this running that can tell me what is missing or wrong?

Thanks.



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 3.0.4 / CMP -> BaseConnectionManager2 throws IllegalArgumentException on reconnect

2003-03-07 Thread David Jencks
The fix for the bug you reference is in all current cvs versions and at
least the latest 3.2RC?.  I'd try one of them first.  There have been quite
a few changes since 3.0.4

david jencks

On 2003.03.06 22:15 Mark Brodziak wrote:
> (Apologies for my email client removing the original message)
> 
> Under JBoss 3.0.4 / Tomcat 4.1.12;
> 
> I have a suite of CMP entity beans communicating with an Oracle 9i data
> source via a LocalTxConnectionManager.
> 
> Occasionally, I encounter the following exception trace on the server (at
> which time, a finder method incorrectly reports that a given entity does
> not
> exist). This is a non-fatal error in that the next time I search for the
> given entity it is found (via a different connection, presumably).
> 
> I have searched for similar issues, and the closest that I have found is
> Bug
> #580529 (the issue uses BMP, not CMP). Does anyone know of this issue?
> Will
> the fix solve my CMP problem? Can I apply a patch to JBoss 3.0.x to make
> this stable?
> 
> 15:45:48,401 WARN [LocalTxConnectionManager] reconnecting a connection
> handle that still has a managedConnection! org.jboss.resou
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> 15:45:48,401 ERROR [LogInterceptor] RuntimeException:
> java.lang.IllegalArgumentException: reconnect(ConnectionRecord cr) called
> with a non null ManagedConnection that was not killed!
> at
> org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnect(BaseCo
> nnectionManager2.java:582)
> at
> org.jboss.resource.connectionmanager.CachedConnectionManager.reconnect(Cache
> dConnectionManager.java:344)
> at
> org.jboss.resource.connectionmanager.CachedConnectionManager.pushMetaAwareOb
> ject(CachedConnectionManager.java:140)
> at
> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
> edConnectionInterceptor.java:183)
> at
> org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt
> erceptor.java:90)
> at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
> ptor.java:163)
> at
> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
> a:107)
> at
> org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce
> ptor.java:69)
> at
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
> .java:107)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
> java:232)
> at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
> at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:13
> 0)
> at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
> at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
> at
> org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai
> nerInvoker.java:301)
> at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
> at $Proxy411.getCode(Unknown Source)
> at
> com.erggroup.mass.transaction.cd.TransactionCDServiceBean.getAFMErrorCodeDes
> criptions(TransactionCDServiceBean.java:81)
> at sun.reflect.GeneratedMethodAccessor558.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
> sSessionContainer.java:660)
> at
> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
> edConnectionInterceptor.java:186)
> at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
> ssionInstanceInterceptor.java:77)
> at
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
> .java:107)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
> java:232)
> at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
> at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:13
> 0)
> at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
> at
> org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
> a:313)
> at org.jboss.ejb.Container.invoke(Container.java:712)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
> at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
> at
> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
> at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77
> )
> at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
> at
> org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInter
> ceptor.java:111)
> at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> at $Proxy394.getAFMErrorCodeDescriptions(Unknown Source)
> at
> com.erggroup.mass.financial.afm.struts.AFMSearchForm.reset(AFMSearchForm.jav
> a:51)
> at
> org.apache.struts.actio

Re: [JBoss-user] Optimise stateless session bean access from servlets

2003-03-07 Thread Brian McSweeney
thanks Rafal
this helps alot.

- Original Message -
From: "Rafal Kedziorski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 1:12 PM
Subject: Re: [JBoss-user] Optimise stateless session bean access from
servlets


> hi,
>
> You can take a look on this pattern:
>
>
http://java.sun.com/blueprints/code/jps131/src/com/sun/j2ee/blueprints/servi
celocator/web/ServiceLocator.java.html
>
> all called local or remote interfaces will be cached.
>
>
> Rafal
>
> At 12:02 07.03.2003 +, you wrote:
> >Hi all,
> >
> >My business logic is controlled by stateless session beans.
> >My front-end is probably going to be JSPs which use the session
> >beans. I could create a reference to the session bean each time it's
> >used, but from my understanding of how it works, when the client
> >calls MyStatelessSessionHome.create( ) we cannot tell if a new object
> >is actually created on the server.
> >
> >My understanding is that the container can at any time decide which
> >instance of the stateless session bean in the bean pool can be used for
> >the client's reference. So, my question is - would it not be more optimal
> >to actually create a reference to each of my stateless session beans on
> >the main servlet startup (say in init) and let each of my jsps use the
same
> >reference. This would avoid the overhead of bean creation for each JSP.
> >
> >Thoughts,
> >cheers,
> >Brian
>
>
>
> ---
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] finders across a relationship

2003-03-07 Thread Ionel Gardais
Hi,

Say an M:N relationship, maintained by a table-relation, between Person 
and Drink.

Is it possible to create a finder in the Drink bean that takes the name 
of a Person as arguments and returns a Collection of the Drink 
associated with the Person's name ? (Or a finder in the Person bean 
which takes the name of a Drink and returns a Collection of Person who 
have this Drink in their list)

Thanks,
ionel


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: AW: [JBoss-user] Jetty Web Logs

2003-03-07 Thread Felipe Oliveira
Hi Stefan,

Thanks for your help. Jetty's documentation is not very good at all but 
they do have an active mailing list. Somebody pointed me the right 
direction. There's an extended parameter on 
jbossweb.sar/META-INF/jboss-service.xml you can just set to true.

Felipe

Stefan Groschupf wrote:

Does anyone know how to change the log format generated by Jetty that
comes with JBoss?
I need to add the url referer, the url the user came from. Is it possible?
   

Sorry I not know where, but I know that it is possible.
Had you take a look in the jetty documentation? I'm really not sure but may
be it was related to log4j.
Stefan


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 





---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 1 to N relationship in Jboss 3.2.0 RC3

2003-03-07 Thread Alex Loubyansky
Just configure the key fields on the one side, i.e.
mDSKeyMatrix-has-mDSMatrixs.

alex

Friday, March 07, 2003, 11:01:22 AM, Simone Milani wrote:

SM> Hi,

SM> I have a problem with the relationship on  the jbosscmp-jdbc.xml generated by the 
current cvs version of Xdoclet:
SM> org.jboss.deployment.DeploymentException: Role: mDSMatrix-has-mDSKeyMatrix with
SM> multiplicity many using foreign-key mapping is not allowed to have key-fields

SM> 
SM>   mDSKeyMatrix-mDSMatrixs

SM>   
SM>   
mDSKeyMatrix-has-mDSMatrixs
SM> 

SM>   
SM>   
SM>   
mDSMatrix-has-mDSKeyMatrix
SM>   
SM>  
SM>mDSId
SM>MM_MDS_ID
SM>  
SM>   

SM>   
SM> 

SM> Anyone any idea?

SM> Thanks!!!

SM> Simone




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Optimise stateless session bean access from servlets

2003-03-07 Thread Stas Krichevsky









Hi,

You could use http session to store
instance of the session bean. Something like following:

<%

    MyStatelessSession
theBean = (MyStatelessSession) session.getAttribute(“theBean”);

    If
(null == theBean) {

    //
create the instance

    session.setAttribute(“theBean”,
theBean);

    }

    //
use the bean.

%>

 

This way the instance of the bean will be
created once per session.

 

Of course you may look at some design
patterns too, for example business delegate pattern (a good example can be
found in “Programming Jakarta Struts” by Chuck Cavaness ).

 

Hope this helps.

 





StasK



 

-Original Message-
From: Brian McSweeney
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 2:03
PM
To:
[EMAIL PROTECTED]
Subject: [JBoss-user] Optimise
stateless session bean access from servlets

 



Hi all,





 





My business logic is controlled by
stateless session beans.





My front-end is probably going to be
JSPs which use the session 





beans. I could create a reference to
the session bean each time it's 





used, but from my understanding of
how it works, when the client 





calls MyStatelessSessionHome.create(
) we cannot tell if a new object 





is actually created on the server. 





 





My understanding is that the
container can at any time decide which 





instance of the stateless
session bean in the bean pool can be used for 





the client's reference. So, my
question is - would it not be more optimal 





to actually create a reference to
each of my stateless session beans on 





the main servlet startup (say in
init) and let each of my jsps use the same 





reference. This would avoid the
overhead of bean creation for each JSP. 





 





Thoughts,





cheers,





Brian










Re: [JBoss-user] XA Datasource & Oracle Problem (3.0.4)

2003-03-07 Thread David Jencks
On 2003.03.07 00:45 Brian Wallis wrote:
> On Fri, 7 Mar 2003 15:49, Igor Fedorenko wrote:
> 
> > No, it should not. Container is supposed to take care of XA stuff and
> give
> > java.sql.Connection to EJBs.
> 
> I'm trying to co-ordinate a transaction between a JDBC operation to read
> rows 
> from a table and a JMS topic publish that publishes the data to a JMS
> topic.  
> the table is not an EJB, it is created via a trigger in the database.
> 
> Should I try wrapping the trigger updated table in an EJB?
> 
> > > I am not a database person and am porting old code into jboss
> > > 3 where I am
> > > trying to do it properly (the old code talked directly to the
> > > JDBC driver and got
> > > it's own connections, no connection pool). I am assuming the
> > > code that wants the
> > > XAConnection is the right way for doing this.
> >
> > No, it's not. Container takes care of pooling and low-level transaction
> > management.
> 
> What container? I'm asking a resource adapter for a connection to a
> database. 
> If the RA supports connections with XA transactions, shouldn't it be able
> to 
> return XAConnections?

Absolutely not.  Don't try to  write your own TransactionManager.  If your
program is written as (session) ejbs, I recommend using container managed
transactions.  If it is a servlet or mbean or you found some other exotic
way to run code inside jboss, use UserTransaction to control your
transactions.

 This is not EJB stuff, it is an application using a
> 
> resource adapter.
> 
> > Btw, don't bother with Oracle XA and JBoss 3.0.x, it won't work. You
> need
> > at least JBoss 3.2RC2.
> 
> OK, thanks for that info.

You should be able to use 3.0.7 from cvs also, but your life will be
simpler if you use 3.2RC2 or later and the *-ds.xml config file.

david jencks
> 
> brian wallis...
> 
> 
> 
> ---
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
> debugger 
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> 
> disoriented. TotalView can help you find your way. Available on major
> UNIX 
> and Linux platforms. Try it free. www.etnus.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJBQL MEMBER OF problems remain in 3.0.6?

2003-03-07 Thread Alexey Yudichev
Title: EJBQL MEMBER OF problems remain in 3.0.6?





Returning to my prevoius postings, assume we have Partner and StoreCategory entities with TWO relations between each other:

1) Many Partners are assigned to Many StoreCategories
2) One Partner owns Many StoreCategories


The following ejbql:


SELECT DISTINCT OBJECT(c) FROM StoreCategory c, Partner p
  WHERE c.browsable
  AND (c.partnerOwner.id=?1 OR (p.id=?1 AND p MEMBER OF c.partners))


results in:


SELECT DISTINCT t0_c.id FROM storecategory t0_c, partner t2_p, partner t1_c_partnerOwner WHERE (t0_c.browsable AND (t1_c_partnerOwner.id = ? OR (t2_p.id = ? AND EXISTS (SELECT t4_c_partners_RELATION_TABLE.Partner FROM partner_categories_stor_1cl2gdd t4_c_partners_RELATION_TABLE WHERE t0_c.id=t4_c_partners_RELATION_TABLE.StoreCategory AND t2_p.id=t4_c_partners_RELATION_TABLE.Partner AND (t0_c.partnerOwner=t1_c_partnerOwner.id)

c.partners is m2m cmr, c.partnerOwner is o2m cmr.


We can see that the last clause "AND (t0_c.partnerOwner=t1_c_partnerOwner.id)" ONLY limits result to the o2m relationship although in ejbql we have OR clause.




Re: [JBoss-user] Optimise stateless session bean access from servlets

2003-03-07 Thread Rafal Kedziorski
hi,

You can take a look on this pattern:

http://java.sun.com/blueprints/code/jps131/src/com/sun/j2ee/blueprints/servicelocator/web/ServiceLocator.java.html

all called local or remote interfaces will be cached.

Rafal

At 12:02 07.03.2003 +, you wrote:
Hi all,

My business logic is controlled by stateless session beans.
My front-end is probably going to be JSPs which use the session
beans. I could create a reference to the session bean each time it's
used, but from my understanding of how it works, when the client
calls MyStatelessSessionHome.create( ) we cannot tell if a new object
is actually created on the server.
My understanding is that the container can at any time decide which
instance of the stateless session bean in the bean pool can be used for
the client's reference. So, my question is - would it not be more optimal
to actually create a reference to each of my stateless session beans on
the main servlet startup (say in init) and let each of my jsps use the same
reference. This would avoid the overhead of bean creation for each JSP.
Thoughts,
cheers,
Brian


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: [JBoss-user] Jetty Web Logs

2003-03-07 Thread Stefan Groschupf
>Does anyone know how to change the log format generated by Jetty that
>comes with JBoss?
>I need to add the url referer, the url the user came from. Is it possible?

Sorry I not know where, but I know that it is possible.
Had you take a look in the jetty documentation? I'm really not sure but may
be it was related to log4j.
Stefan




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Latest quickStartGuide flaws - web integration

2003-03-07 Thread Joao Pedro Clemente

I've just checked the latest quickstartguid and notist3d the web
integration chapter has several gflaws:

jetty-plugin.sar is mentioned all over the chapter, where there is none in
real life (now it's jbossweb.sar)

the jboss-service.xml doen not match

it's said that you can use a ROOT.war file to deploy to "/", where in
JBoss-Jetty faq they say the opposite.

Btw, ehn this gets right, will it be available at cvs or do we need to
wait for another release?
And, if it gets available at cvs, what module?

Thank you

-- 
Joao Pedro Clemente
jpcl @ rnl.ist.utl.pt



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Optimise stateless session bean access from servlets

2003-03-07 Thread Brian McSweeney



Hi all,
 
My business logic is controlled by stateless 
session beans.
My front-end is probably going to be JSPs which use 
the session 
beans. I could create a reference to the session 
bean each time it's 
used, but from my understanding of how it works, 
when the client 
calls MyStatelessSessionHome.create( ) we cannot 
tell if a new object 
is actually created on the server. 
 
My understanding is that the container can 
at any time decide which 
instance of the stateless session bean in the 
bean pool can be used for 
the client's reference. So, my question is - would it not be more optimal 

to actually create a 
reference to each of my stateless session beans on 
the main servlet 
startup (say in init) and let each of my jsps use 
the same 
reference. This would avoid the overhead of bean 
creation for each JSP. 
 
Thoughts,
cheers,
Brian


Re: [JBoss-user] AOP?

2003-03-07 Thread Luciano Hara
A good reference is also http://aosd.net/.

Luciano

- Original Message -
From: "Kristian Kohler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 4:37 AM
Subject: AW: [JBoss-user] AOP?


> There is an article called "JBoss Aspect Oriented Programming" on the
jboss
> web site.
>
> http://www.jboss.org/developers/projects/jboss/aop.jsp
>
> Hope that helps..
>
> Kristian
>
> --
> Orientation in Objects GmbH
> http://www.oio.de
>
>
> > -Ursprungliche Nachricht-
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Auftrag von Rahul
> > Ganjoo
> > Gesendet: Freitag, 7. Marz 2003 06:36
> > An: [EMAIL PROTECTED]
> > Betreff: [JBoss-user] AOP?
> >
> >
> > Can anyone point me to a good resource on AOP...fundamentals n stuff??
> >
> > TIA,
> > Rahul.
> >
> >
> > ---
> > This SF.net email is sponsored by: Etnus, makers of TotalView,
> > The debugger
> > for complex code. Debugging C/C++ programs can leave you feeling lost
and
> > disoriented. TotalView can help you find your way. Available on
> > major UNIX
> > and Linux platforms. Try it free. www.etnus.com
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
> ---
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Admin forced user logout

2003-03-07 Thread Kevin O'Neill
On Fri, 2003-03-07 at 21:10, KR+AME-LIK Vladim+AO0-r wrote:
+AD4 Hello all,
+AD4 
+AD4I need give to admin possibility immediatly force logout any user
+AD4 logged on JBOss. How can I do this ? Any idea ?

Maybe you could call the JaasSecurityManager flushAuthenticationCache()
passing the Principal name.

+AD4 
+AD4thanks for answer
+AD4 
+AD4vlk
+AD4 
+AD4 Vladimir Kralik
+AD4 Asset Soft Banska Bystrica 
+AD4 
+AD4 
+AD4 ---
+AD4 This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
+AD4 for complex code. Debugging C/C+-+- programs can leave you feeling lost and 
+AD4 disoriented. TotalView can help you find your way. Available on major UNIX 
+AD4 and Linux platforms. Try it free. www.etnus.com
+AD4 
+AF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXw
+AD4 JBoss-user mailing list
+AD4 JBoss-user+AEA-lists.sourceforge.net
+AD4 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
If you don't test then your code is only a collection of bugs which 
apparently behave like a working program. 

Website: http://www.rocketred.com.au/blogs/kevin/



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Admin forced user logout

2003-03-07 Thread KRÁLIK Vladimír
Hello all,

I need give to admin possibility immediatly force logout any user
logged on JBOss. How can I do this ? Any idea ?

thanks for answer

vlk

Vladimir Kralik
Asset Soft Banska Bystrica 


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] 1 to N relationship in Jboss 3.2.0 RC3

2003-03-07 Thread Simone Milani



Hi,
 

I have a problem with the relationship on  the 
jbosscmp-jdbc.xml generated by the current cvs version of Xdoclet:
org.jboss.deployment.DeploymentException: Role: 
mDSMatrix-has-mDSKeyMatrix withmultiplicity many using foreign-key mapping 
is not allowed to have key-fields
 
  
mDSKeyMatrix-mDSMatrixs
 
  
  
mDSKeyMatrix-has-mDSMatrixs    

 
  
  
  
mDSMatrix-has-mDSKeyMatrix  
 
   
mDSId   
MM_MDS_ID 
  

 
  
    

 
Anyone any idea?
 
Thanks!!!
 
Simone


[JBoss-user] Performance estimation

2003-03-07 Thread KRÁLIK Vladimír
Hello all,

we are going to build J2EE application on JBOSS 3.2 ( web-access for
max 200 concurent users, 500 registered users, max 20TX/day, max
5TX/sec, mass of TX are in batch jobs ). We would like use Intell procesors
with Red Hat Linux.

Can somebody suggest me, how many processors and memory will we need
? Has somebody experience with that or largest system ?

thanks for Your answers.


vlk

Vladimir Kralik
Asset Soft Banska Bystrica 


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user