Re: [JBoss-user] Authentication Problem

2003-11-24 Thread Scott M Stark
The query is going against the DefaultDS, not the RestaurantDS. Show
the full stack trace.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Jack Lauman wrote:

I am trying to move an app from 3.0.7 to 3.2.3RC1 and am getting the
following error.  Apparently it's trying to connect to hsqldb
instead of the mysql db named java:/RestaurantDS.  The app works
correctly under 3.0.7.
I would appreciate any help in resolving this.  I have included a short
stack trace, login-config.xml and restaurant-ds.xml.
Thanks,

Jack

--snip--
[org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3RC1
(build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in
1m:35s:493ms
INFO  [STDOUT] 95508 [main] INFO org.jboss.system.server.Server  - JBoss
(MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1
date=200311101720)] Started in 1m:35s:493ms
DEBUG [org.apache.tomcat.util.threads.ThreadPool] Getting new thread
data
INFO  [STDOUT] 399044 [TP-Processor3] DEBUG
org.apache.tomcat.util.threads.ThreadPool  - Getting new thread data
INFO  [org.jboss.security.plugins.JaasSecurityManagerService] Created
[EMAIL PROTECTED]
INFO  [STDOUT] 399210 [TP-Processor4] INFO
org.jboss.security.plugins.JaasSecurityManagerService  - Created
[EMAIL PROTECTED]
INFO  [org.jboss.security.plugins.JaasSecurityManagerService]
setCachePolicy, [EMAIL PROTECTED]
INFO  [STDOUT] 399212 [TP-Processor4] INFO
org.jboss.security.plugins.JaasSecurityManagerService  - setCachePolicy,
[EMAIL PROTECTED]
INFO  [org.jboss.security.plugins.JaasSecurityManagerService] Added
RestaurantSecurityRealm,
[EMAIL PROTECTED] to map
INFO  [STDOUT] 399213 [TP-Processor4] INFO
org.jboss.security.plugins.JaasSecurityManagerService  - Added
RestaurantSecurityRealm,
[EMAIL PROTECTED] to map
ERROR [org.jboss.security.auth.spi.DatabaseServerLoginModule] Query
failed
java.sql.SQLException: Table not found: USER in statement [SELECT
Password FROM User WHERE UserID = 'jlauman']
at org.hsqldb.Trace.getError(Unknown Source)
at org.hsqldb.jdbcResultSet.init(Unknown Source)
at org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
at org.hsqldb.jdbcConnection.execute(Unknown Source)
at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
at org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
at
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:304)
at
org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:100)
at
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--snip--


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] How fine grained are cmp commit options?

2003-11-24 Thread Alwyn Schoeman
Hi,

At what level can you specify different cmp commit options?

Can different beans in the same jar have different commit options?

Must all beans in the same CMR have the same commit option?


Regards,

-- 
Alwyn Schoeman
SMART Money Inc.

If you're a SMARTY and you're using the better DNS connections, you
can access my homepage at http://nevyn.smarties.com.ph/Members/alwyn.
The other unlucky ones: http://10.126.68.24/myplone


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Setting up Stores on JBoss

2003-11-24 Thread Brian McSweeney








Hi all,



I run a web application
packaged as an ear on JBoss-3.2.2. 



I want to create stores on my
website. This is standard webapp stuff. Let me give
an example.



Imagine I run Ebay. A new person signs up, as a seller from a company
named BrianCorp. 

Ebay allows them to run a store on: 



http://briancorp.ebay.com 



Now, I want to do this for my
site too. Heres my knowledge so far.



I think this is about virtual
hosts. For each store I want to open, I have to add a new virtual host. Heres
what I was thinking of doing:



Add a virtual host for each
new store. 



To do this I must edit my jboss-web.xml file in the EAR and the \server\default\deploy\jbossweb-tomcat41.sar\META-INF\jboss-service.xml
file for tomcat.



To jboss-web.xml
I must add:


context-root/somedynamicpath/context-root
virtual-hostbriancorp.mysite.com/virtual-host





To jboss-service.xml



Host name=briancorp.mysite.com
Valve className=org.apache.catalina.valves.AccessLogValve
prefix=xyz directory=${jboss.server.home.dir}/log/
/Host
/Engine



Ive taken this from a
forum post:



http://www.jboss.org/thread.jsp?forum=61thread=37290message=3795107q=how+to+create+virtual+host#3795107



Now, if anyone knows if this
is correct Id be very grateful. Also, obviously I dont want to
have to restart my entire site when I do this, 

so could someone also tell me if this is possible to do
on the fly.



Thank you very much indeed,



Brian












Re: [JBoss-user] How fine grained are cmp commit options?

2003-11-24 Thread Alexey Loubyansky
Alwyn Schoeman wrote:

Hi,

At what level can you specify different cmp commit options?
Container level. This is specified in jboss.xml like this:
  entity
 ejb-nameChild/ejb-name
 local-jndi-nameChildLocal/local-jndi-name
 configuration-namecustom container/configuration-name
  /entity
...
 container-configurations
  container-configuration extends=Standard CMP 2.x EntityBean
 container-namecustom container/container-name
 commit-optionA/commit-option
  /container-configuration
   /container-configurations
Can different beans in the same jar have different commit options?
yes

Must all beans in the same CMR have the same commit option?
yes



Regards,



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss 3.2.3

2003-11-24 Thread konf
Hallo,
I founfd  JBoss 3.2.3 at SF.net.
Is it the production release or only release candidate? At jboss.org I se 3.2.2
only.

Thanks,
Jiri



-
This mail sent through IMP: http://horde.org/imp/


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JAAS Problem (login in same VM)

2003-11-24 Thread Meyer-Willner, Bernhard
Hi,

this is the setup (please don't comment on design issues, the design is
screwed, I know;): The ejb-jar with the session bean in question is not
secured, i.e. jboss.xml doesn't include a security-domain tag. The session
bean calls a class (same VM), which in turn calls this session bean again.
In order to be able to acquire the interface (call create()) we need to do a
JAAS login. If we don't, we get an exception.

I don't understand why the JAAS login is necessary, as the ejb-jar with the
session bean is not secured with a security-domain tag. Also this in-VM
login seems to cause problems later on, resulting in LoginExceptions
(javax.security...).

Please help anybody, cause I'm at a total loss.

Regards,
Bernie

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only. It may contain proprietary material, confidential information and/or be subject 
to legal privilege. It should not be copied, disclosed to, retained or used by, any 
other party. If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender. Thank you.


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] BindAddress and Remote JMS (was JMS to remote hosts doesn't work any more)

2003-11-24 Thread Didi Posselt
Hi,

I'm running SUSE-Linux 8.2 (kernel 2.4.20), so I
think this is on all systems.

I tried
InetAddress.getByName(0.0.0.0)
which returns
/0.0.0.0

PS: 
java version 1.4.2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)


 Its a bug then. Is this only on win32 or all platforms?
 
 -- 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 Didi Posselt wrote:
 
  Hi,
 
  Since the option --host=yourhost causes lots of problems in applications
  that don't specify a host to connect to, I cannot use it for my
JMS-problem.
 
  I figured, that everything works fine, if I drop the Attribute
BindAddress
  in the deployment descriptor for the UIL2 Invocation Layer (the code
  didn't change from 3.2.2RC4).
 
  After checking the code I found out, that the socketAddress in
UILServerILService.java:188 is 0.0.0.0/0.0.0.0 when no attribute
  BindAddress is specified, however, if I specify the BindAddress
  without changes, I get /0.0.0.0 as socketAddress.
 
  I tried to change the if-statement (line 188) to endsWith(/0.0.0.0)
and everything works fine. The same thing might apply to
  other InvocationLayers.
 
  I feel happy just dropping the attribute BindAddress, however, it took
  me some time to figure this out. Maybe changing the if-statement makes
  things easier for other users?
 
  Thanks again and Greetings,
   Dietmar

-- 
GMX Weihnachts-Special: Seychellen-Traumreise zu gewinnen!

Rentier entlaufen. Finden Sie Rudolph! Als Belohnung winken
tolle Preise. http://www.gmx.net/de/cgi/specialmail/

+++ GMX - die erste Adresse für Mail, Message, More! +++



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Optimistic locking and Commit Option A

2003-11-24 Thread Alexey Loubyansky
Pete Beck wrote:

Hi all,
I have just been reading through the docs about using optimistic
locking.
According to the docs, to use optimistic locking, you must also use the
instance per transaction policy.
However, the docs also state that you cannot use commit option A with
instance per transaction.
You can but it won't work. Since each transaction will use its own cache 
of entity instances which is flushed at the end of the transaction.

Therefore is there any way to use optimistic locking with commit option
A?
Yes, there is. Assuming we are talking about Standard CMP 2.x EntityBean 
container, it won't make sense in non-clustered environment because of 
pessimistic locking since only one transaction will be able to update 
the instance. But in clustered environment you could make use of commit 
option A and optimistic locking.

Thanks,
Pete Beck


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Remote JMX Notifications - Having Trouble With Example ch2 xmbean1 in JBoss 3.2.1

2003-11-24 Thread Nicholas
I have been trying to get RMI based remote JMX
notifications working on version of JBoss 3.2.2 and
higher. So I went back to the exmaples in the 3.2.1
docs (the latest I have...??) and ran the XMBean
example TestXMBean1. It still works in JBoss 3.2.1 but
no longer works in 3.2.2 or 3.2.3RC1. I get the same
errors on both, outlined below.

Is there an update for this example ? Is there
something different I need to do ?

Thanks !

//Nicholas

C:\JBossDocs\321\AdminDevel\examplesant -Dchap=chap2
-Dex=xmbean1 run-example
c:\j2sdk1.4.2\bin\java.exe -Xms64M -Xmx256M 
-classpath
c:\j2sdk1.4.2\lib\tools.jar;C:\Jakarta\apache-ant-1.5.4\lib\xml-apis.jar;C:\Jakarta\apache-ant-1.5.4\
lib\xercesImpl.jar;C:\Jakarta\apache-ant-1.5.4\lib\optional.jar;C:\Jakarta\apache-ant-1.5.4\lib\clover.jar;C:\Jakarta\apache-ant-1.5.4\lib\ant.jar;C:\Program
Fi
les\Altova\xmlspy\XMLSpyInterface.jar
-Dant.home=C:\Jakarta\apache-ant-1.5.4
org.apache.tools.ant.Main  -Dchap chap2 -Dex xmbean1
run-example
Buildfile: build.xml

validate:
 [java] ImplementationTitle: JBoss [WonderLand]
 [java] ImplementationVendor: JBoss.org
 [java] ImplementationVersion: 3.2.2 (build:
CVSTag=JBoss_3_2_2 date=200310182216)
 [java] SpecificationTitle: JBoss
 [java] SpecificationVendor: JBoss
(http://www.jboss.org/)
 [java] SpecificationVersion: 3.2.2
 [java] JBoss version is: 3.2.2

fail_if_not_valid:

init:
 [echo] Using jboss.dist=C:/jboss-3.2.2

compile:

run-example:

prepare:

chap2-ex1xmbean1-sar:

run-examplexmbean1:
 [java] JNDIMap Class:
org.jboss.mx.modelmbean.XMBean
 [java] JNDIMap Operations:
 [java]  + void start()
 [java]  + void stop()
 [java]  + void put(java.lang.Object
chap2.xmbean:service=JNDIMap,java.lang.Object
chap2.xmbean:service=JNDIMap)
 [java]  + java.lang.Object get(java.lang.Object
chap2.xmbean:service=JNDIMap)
 [java]  + java.lang.String getJndiName()
 [java]  + void setJndiName(java.lang.String
chap2.xmbean:service=JNDIMap)
 [java]  + [Ljava.lang.String; getInitialValues()
 [java]  + void
setInitialValues([Ljava.lang.String;
chap2.xmbean:service=JNDIMap)
 [java]
java.lang.reflect.UndeclaredThrowableException
 [java] at
$Proxy0.addNotificationListener(Unknown Source)
 [java] at
org.jboss.chap2.xmbean.TestXMBean1.main(TestXMBean1.java:74)
 [java] Caused by:
java.lang.NoSuchMethodException:
javax.management.MBeanServer.addNotificationListener(javax.management.ObjectName,
org.jboss.jmx.adaptor.
rmi.RMINotificationListener,
javax.management.NotificationFilter, java.lang.Object)
 [java] at
java.lang.Class.getMethod(Class.java:978)
 [java] at
org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:183)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at
java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
 [java] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
 [java] at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at
java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
 [java] at
sun.rmi.transport.Transport$1.run(Transport.java:148)
 [java] at
java.security.AccessController.doPrivileged(Native
Method)
 [java] at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
 [java] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
 [java] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
 [java] at
java.lang.Thread.run(Thread.java:534)
 [java] at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
 [java] at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
 [java] at
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
 [java] at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
 [java] at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
 [java] at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
 [java] at

Re: [JBoss-user] EJB home methods are not allowed to access CMP or CMR

2003-11-24 Thread Alexey Loubyansky
Pedro Salazar wrote:

On Fri, 2003-11-21 at 21:13, Alexey Loubyansky wrote:

You are doing it wrong. In ejbPassivate the flag should be set to false. 
Please, read about activation/passivation in the spec.
There is also a nice picture on this subject.



Alexey,

I've read the EJB spec but I only found one error that happens when the
load is called on my entity bean. The load is always called before an
activate() even the entity bean isn't changed (read-only for instance),
which would always eliminates my cache effect.
Are you sure ejbLoad is called before ejbActivate in the same 
transaction for the same instance? It should not happen. How could I 
reproduce it?

So look at my sample below. First, the cache is false, and after the
first business method is called the cache is set. The cache will be
unset only when the load() is called that will be when the activate is
called. 

I could remove the unset code in the load() but if my entity bean change
(e.g. a store procedure) I won't be able to reload my entity bean data
ever.
Why? What do you mean?

Do you have any idea how to improve the cache effect here?


private boolean cache;
private String value;
public String getValue() {
if(cache){
this.logger.info(cached sum is +this.value);
}
else {
this.logger.info(processing sum...);
int sum=0;
for(int i=0;i1;i++)
sum+=i;
this.value=String.valueOf(sum);
this.logger.info(sum is +this.value);
this.cache=true;
}
return this.value;
}
public void ejbLoad() {
if(logger.isDebugEnabled())
logger.debug(Load Primitive ...);
this.cache=false;
this.value=null;
}

regards,
Pedro Salazar.


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EJB home methods are not allowed to access CMP or CMR

2003-11-24 Thread Pedro Salazar
  I've read the EJB spec but I only found one error that happens when the
  load is called on my entity bean. The load is always called before an
  activate() even the entity bean isn't changed (read-only for instance),
  which would always eliminates my cache effect.
 
 Are you sure ejbLoad is called before ejbActivate in the same 
 transaction for the same instance? It should not happen. How could I 
 reproduce it?
 

My mistake. Is called *after* the activate and *not before*. Sorry.

  
  So look at my sample below. First, the cache is false, and after the
  first business method is called the cache is set. The cache will be
  unset only when the load() is called that will be when the activate is
  called. 
  
  I could remove the unset code in the load() but if my entity bean change
  (e.g. a store procedure) I won't be able to reload my entity bean data
  ever.
 
 Why? What do you mean?
 

Technical I can, but I won't be able to implement a cache mechanism with
the any flag. I mean, I won't be able to know if data is really changed
and I must process all data again, or if the cache should persist. 
Because the load() should happen always after a activate(), with changes
or without them.

BTW, can the scenario below happen ( it happened to me ):

- I process some data (business method) and cache some data for the
entity #1.
- I let the entity bean go to passivate state.
- I test the cache for the entity #2 and for the entity #1. The cache
exist for the entity #2 but doesn't exist for entity #1. 

Both entity beans went to the pool, but when I invoked them again, the
pool gave the objects swapped for the entity beans.

So, if the cache is not possible to do in the entity beans, what is the
need of the activate() if the load() will always occur?  And, we cannot
access to any of the entity beans methods there...

regards,
Pedro Salazar.
-- 
-PS



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JSP compilation

2003-11-24 Thread Matthew Oatham
Hi,

Is there any way to prevent JSP pages being recompiled everytime JBoss 
restarts? i.e I deploy the web app - run the jsp - restart JBoss and tr-run 
a JSP - instead of using a cached copy of the jsp page it is re-compiled. 
How can i prevent this?

Thanks

_
Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] SNMP Adaptor causing OutOfMemory errors?

2003-11-24 Thread Chris Bonham
Environment:

IBM JDK 1.4.1 SR1
JAVA_OPTS:  -Xgcpolicy:optavgpause -Xms1024m -Xmx1536m -Xss512k
Linux RedHat 7.3
2GB RAM
8192 File Descriptors
JBoss 3.2.2 final + Tomcat 4.1.27

While upgrading our application from JBoss 3.2.2beta to JBoss 3.2.2 final,
we seem to keep running out of memory.  There is much more analysis to be done,
but one major culprit was the new SNMP Adaptor.  After ~12 hours with no one
hitting the application, JBoss sometimes dies with:

20:20:03,127 ERROR [STDERR] java.lang.OutOfMemoryError: heap allocation failed
20:20:03,128 ERROR [STDERR] at java.net.PlainDatagramSocketImpl.receive(Native 
Method)
20:20:03,129 ERROR [STDERR] at 
java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:129)
20:20:03,129 ERROR [STDERR] at 
java.net.DatagramSocket.receive(DatagramSocket.java:701)
20:20:03,130 ERROR [STDERR] at 
org.opennms.protocols.snmp.SnmpPortal$Receiver.run(SnmpPortal.java:285)
20:20:03,130 ERROR [STDERR] at java.lang.Thread.run(Thread.java:568)
20:21:21,388 ERROR [STDERR] java.lang.OutOfMemoryError: heap allocation failed
20:21:21,389 ERROR [STDERR] at java.net.PlainDatagramSocketImpl.receive(Native 
Method)
20:21:21,389 ERROR [STDERR] at 
java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:129)
20:21:21,390 ERROR [STDERR] at 
java.net.DatagramSocket.receive(DatagramSocket.java:701)
20:21:21,390 ERROR [STDERR] at 
org.opennms.protocols.snmp.SnmpPortal$Receiver.run(SnmpPortal.java:285)
20:21:21,391 ERROR [STDERR] at java.lang.Thread.run(Thread.java:568)

I removed the service over the weekend and the instance is still up.  It looks
like OpenNMS uses a lot of file descriptors:

http://lists.opennms.org/pipermail/discuss/2003-April/027601.html

Just an FYI for anyone having OutOfMemory errors.

--
Chris Bonham
President/CEO
Third Eye Consulting, Inc.
[EMAIL PROTECTED]
http://www.thirdeyeconsulting.com
317.823.3686
317.823.0353 (FAX)


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] C/C++-Client connecting to JBoss via JMS

2003-11-24 Thread Holger Baxmann @ mac
Hi Frank,

i currently have a client who is trying to implement this via SLSB and 
native library calls. Not the recommended way, but it works to some 
degree ;-)

The problem here is that the C MQ is communicating (in the Prod 
systems) via SHMem and so there is no JMS lib for the interface.

We are thinking about implementing a JCA, if it is worth the efforts 
and/or use simple POJOs as a Service Locator/Builder and expose them 
via JBoss.net. In this case it is a MQSeries (beware of the 
bit-transparency) Command and Oracle Feedback scenerio.

Going the two folded way: feed command one way via a POJO Singleton 
Command Wallpaper Pattern :) and beeing notified via DB triggered MDBs.

IMHO it depends mostly on the legacy arch there performance/scalability 
parameters and the 'standard' api which they expose, but is always 
handmade and homebrewn.

Any further details avail or are they secret? :)

bax

Am 20.11.2003 um 22:35 schrieb Langelage, Frank:

I would like to interface our C/C++ ERP-App with JBoss JMS to delegate 
some tasks to MDB's.
Has anybody done something like this successfully ?
Any advice for an C/C++ JMS-client-lib to interconnect those two 
systems ?

Thanks in advance
Frank


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Authentication Problem

2003-11-24 Thread Jack Lauman
Scott:

I have attached both the boot.log and server.log as seperate
zip files as requested.

Thanks,

Jack

Jack Lauman wrote:
 
 I am trying to move an app from 3.0.7 to 3.2.3RC1 and am getting the
 following error.  Apparently it's trying to connect to hsqldb
 instead of the mysql db named java:/RestaurantDS.  The app works
 correctly under 3.0.7.
 
 I would appreciate any help in resolving this.  I have included a short
 stack trace, login-config.xml and restaurant-ds.xml.
 
 Thanks,
 
 Jack
 
 --snip--
 [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3RC1
 (build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in
 1m:35s:493ms
 INFO  [STDOUT] 95508 [main] INFO org.jboss.system.server.Server  - JBoss
 (MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1
 date=200311101720)] Started in 1m:35s:493ms
 DEBUG [org.apache.tomcat.util.threads.ThreadPool] Getting new thread
 data
 INFO  [STDOUT] 399044 [TP-Processor3] DEBUG
 org.apache.tomcat.util.threads.ThreadPool  - Getting new thread data
 INFO  [org.jboss.security.plugins.JaasSecurityManagerService] Created
 [EMAIL PROTECTED]
 INFO  [STDOUT] 399210 [TP-Processor4] INFO
 org.jboss.security.plugins.JaasSecurityManagerService  - Created
 [EMAIL PROTECTED]
 INFO  [org.jboss.security.plugins.JaasSecurityManagerService]
 setCachePolicy, [EMAIL PROTECTED]
 INFO  [STDOUT] 399212 [TP-Processor4] INFO
 org.jboss.security.plugins.JaasSecurityManagerService  - setCachePolicy,
 [EMAIL PROTECTED]
 INFO  [org.jboss.security.plugins.JaasSecurityManagerService] Added
 RestaurantSecurityRealm,
 [EMAIL PROTECTED] to map
 INFO  [STDOUT] 399213 [TP-Processor4] INFO
 org.jboss.security.plugins.JaasSecurityManagerService  - Added
 RestaurantSecurityRealm,
 [EMAIL PROTECTED] to map
 ERROR [org.jboss.security.auth.spi.DatabaseServerLoginModule] Query
 failed
 java.sql.SQLException: Table not found: USER in statement [SELECT
 Password FROM User WHERE UserID = 'jlauman']
 at org.hsqldb.Trace.getError(Unknown Source)
 at org.hsqldb.jdbcResultSet.init(Unknown Source)
 at org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
 at org.hsqldb.jdbcConnection.execute(Unknown Source)
 at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
 at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
 at org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
 at
 org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:304)
 at
 org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:100)
 at
 org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:150)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 --snip--
 
 -- restaurant-ds.xml --
 
 ?xml version=1.0 encoding=UTF-8?
 
 !--
 =
 --
 !--
 --
 !--  JBoss Server
 Configuration   --
 !--
 --
 !--
 =
 --
 
 !-- $Id: mysql-ds.xml,v 1.1 2002/07/22 22:57:24 d_jencks Exp $ --
 !--
  --
 !--  Datasource config for MySQL using 3.0.9
 driver  --
 !--
  --
 
 datasources
   local-tx-datasource
 jndi-nameRestaurantDS/jndi-name
 
 connection-urljdbc:mysql://localhost:3306/restaurants/connection-url
 driver-classcom.mysql.jdbc.Driver/driver-class
 user-name/user-name
 password/password
 min-pool-size5/min-pool-size
 max-pool-size20/max-pool-size
 
 !-- Use the getConnection(user, pw) for logins
   application-managed-security/
 --
 
 !-- Use the security domain defined in conf/login-config.xml --
 security-domainRestaurantDbRealm/security-domain
 
 !-- Use the security domain defined in conf/login-config.xml or the
  getConnection(user, pw) for logins. The security domain takes
  precidence.
 
 security-domain-and-applicationRestaurantDbRealm/security-domain-and-application
 --
 
 !-- Add this depends tag if you are using the tcp connection url
 dependsjboss:service=Hypersonic/depends
 --
 
   /local-tx-datasource
 
 /datasources
 
 -- login-config.xml --
 
 ?xml version='1.0'?
 !DOCTYPE policy PUBLIC
   -//JBoss//DTD JBOSS Security Config 3.0//EN
   http://www.jboss.org/j2ee/dtd/security_config.dtd;
 
 policy
 !-- Used by clients within the application server VM such as
 mbeans and servlets that access EJBs.
 --
 application-policy name = RestaurantSecurityRealm

Re: [JBoss-user] Authentication Problem

2003-11-24 Thread Jack Lauman
Scott:

Sorry, forgot the files.

Thanks again,

Jack

Jack Lauman wrote:
 
 I am trying to move an app from 3.0.7 to 3.2.3RC1 and am getting the
 following error.  Apparently it's trying to connect to hsqldb
 instead of the mysql db named java:/RestaurantDS.  The app works
 correctly under 3.0.7.
 
 I would appreciate any help in resolving this.  I have included a short
 stack trace, login-config.xml and restaurant-ds.xml.
 
 Thanks,
 
 Jack
 
 --snip--
 [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3RC1
 (build: CVSTag=JBoss_3_2_3_RC1 date=200311101720)] Started in
 1m:35s:493ms
 INFO  [STDOUT] 95508 [main] INFO org.jboss.system.server.Server  - JBoss
 (MX MicroKernel) [3.2.3RC1 (build: CVSTag=JBoss_3_2_3_RC1
 date=200311101720)] Started in 1m:35s:493ms
 DEBUG [org.apache.tomcat.util.threads.ThreadPool] Getting new thread
 data
 INFO  [STDOUT] 399044 [TP-Processor3] DEBUG
 org.apache.tomcat.util.threads.ThreadPool  - Getting new thread data
 INFO  [org.jboss.security.plugins.JaasSecurityManagerService] Created
 [EMAIL PROTECTED]
 INFO  [STDOUT] 399210 [TP-Processor4] INFO
 org.jboss.security.plugins.JaasSecurityManagerService  - Created
 [EMAIL PROTECTED]
 INFO  [org.jboss.security.plugins.JaasSecurityManagerService]
 setCachePolicy, [EMAIL PROTECTED]
 INFO  [STDOUT] 399212 [TP-Processor4] INFO
 org.jboss.security.plugins.JaasSecurityManagerService  - setCachePolicy,
 [EMAIL PROTECTED]
 INFO  [org.jboss.security.plugins.JaasSecurityManagerService] Added
 RestaurantSecurityRealm,
 [EMAIL PROTECTED] to map
 INFO  [STDOUT] 399213 [TP-Processor4] INFO
 org.jboss.security.plugins.JaasSecurityManagerService  - Added
 RestaurantSecurityRealm,
 [EMAIL PROTECTED] to map
 ERROR [org.jboss.security.auth.spi.DatabaseServerLoginModule] Query
 failed
 java.sql.SQLException: Table not found: USER in statement [SELECT
 Password FROM User WHERE UserID = 'jlauman']
 at org.hsqldb.Trace.getError(Unknown Source)
 at org.hsqldb.jdbcResultSet.init(Unknown Source)
 at org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
 at org.hsqldb.jdbcConnection.execute(Unknown Source)
 at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
 at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
 at org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
 at
 org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:304)
 at
 org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:100)
 at
 org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:150)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 --snip--
 
 -- restaurant-ds.xml --
 
 ?xml version=1.0 encoding=UTF-8?
 
 !--
 =
 --
 !--
 --
 !--  JBoss Server
 Configuration   --
 !--
 --
 !--
 =
 --
 
 !-- $Id: mysql-ds.xml,v 1.1 2002/07/22 22:57:24 d_jencks Exp $ --
 !--
  --
 !--  Datasource config for MySQL using 3.0.9
 driver  --
 !--
  --
 
 datasources
   local-tx-datasource
 jndi-nameRestaurantDS/jndi-name
 
 connection-urljdbc:mysql://localhost:3306/restaurants/connection-url
 driver-classcom.mysql.jdbc.Driver/driver-class
 user-name/user-name
 password/password
 min-pool-size5/min-pool-size
 max-pool-size20/max-pool-size
 
 !-- Use the getConnection(user, pw) for logins
   application-managed-security/
 --
 
 !-- Use the security domain defined in conf/login-config.xml --
 security-domainRestaurantDbRealm/security-domain
 
 !-- Use the security domain defined in conf/login-config.xml or the
  getConnection(user, pw) for logins. The security domain takes
  precidence.
 
 security-domain-and-applicationRestaurantDbRealm/security-domain-and-application
 --
 
 !-- Add this depends tag if you are using the tcp connection url
 dependsjboss:service=Hypersonic/depends
 --
 
   /local-tx-datasource
 
 /datasources
 
 -- login-config.xml --
 
 ?xml version='1.0'?
 !DOCTYPE policy PUBLIC
   -//JBoss//DTD JBOSS Security Config 3.0//EN
   http://www.jboss.org/j2ee/dtd/security_config.dtd;
 
 policy
 !-- Used by clients within the application server VM such as
 mbeans and servlets that access EJBs.
 --
 application-policy name = RestaurantSecurityRealm
authentication
   login-module code =
 

Re: [JBoss-user] C/C++-Client connecting to JBoss via JMS

2003-11-24 Thread Langelage, Frank
Hi Holger,

we are thinking about different scenarios to advance our legacy old 
ERP-System with new modules written in java/j2ee running on jboss.
I implemented an JCA interface to call old procedures from new java 
technology.
But the other way is not quite clear so far. I thought about using JMS 
for this approach.
Someone else (Ulf Schroeter) already recommended using web services. 
Seems it will be easier to find a ready solution (library) to do web 
service calls from our old app.
So I think I will give this a try.

Thanks,
   Frank
Holger Baxmann @ mac wrote:

Hi Frank,

i currently have a client who is trying to implement this via SLSB and 
native library calls. Not the recommended way, but it works to some 
degree ;-)

The problem here is that the C MQ is communicating (in the Prod 
systems) via SHMem and so there is no JMS lib for the interface.

We are thinking about implementing a JCA, if it is worth the efforts 
and/or use simple POJOs as a Service Locator/Builder and expose them 
via JBoss.net. In this case it is a MQSeries (beware of the 
bit-transparency) Command and Oracle Feedback scenerio.

Going the two folded way: feed command one way via a POJO Singleton 
Command Wallpaper Pattern :) and beeing notified via DB triggered MDBs.

IMHO it depends mostly on the legacy arch there 
performance/scalability parameters and the 'standard' api which they 
expose, but is always handmade and homebrewn.

Any further details avail or are they secret? :)

bax

Am 20.11.2003 um 22:35 schrieb Langelage, Frank:

I would like to interface our C/C++ ERP-App with JBoss JMS to 
delegate some tasks to MDB's.
Has anybody done something like this successfully ?
Any advice for an C/C++ JMS-client-lib to interconnect those two 
systems ?

Thanks in advance
Frank


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] [ANN] JBoss-IDE 1.2.2 released

2003-11-24 Thread snpe
I am try update with Eclipse 3.0 M5 and get error :
'cannot unzip org.apache.xalan_2.4.1'

regards
Haris Peco
On Saturday 22 November 2003 11:07 pm, Laurent Etiemble wrote:
 Hi,

 The JBoss-IDE 1.2.2 release is available. It is a maintenance release which
 addresses many bugs. See release notes for more details :
 https://sourceforge.net/project/shownotes.php?release_id=199388

 Available releases are :
 - JBoss-IDE 1.2.2 for Eclipse 2.1.1 or higher
 - JBoss-IDE 1.2.2330 for Eclipes 3.0.0M4

 There is no more bundle available for download. All installation/upgrade
 must be done through the Eclipse install/update manager. See the
 documentation for that.

 Available documentation are :
 - Installation Guide : contains all you need to install/upgrade JBoss-IDE
 http://prdownloads.sourceforge.net/jboss/Install-1.2.2.pdf?download
 - Quick Start Guide : provides an overview of what brings JBoss-IDE
 http://prdownloads.sourceforge.net/jboss/QuickStart-1.2.2.pdf?download
 - Tutorial Guide : provides a tutorial to explore some features of
 JBoss-IDE
 http://prdownloads.sourceforge.net/jboss/Tutorial-1.2.2.pdf?download

 Bugs can be reported here (don't forget to put everything needed to help) :
 https://sourceforge.net/tracker/?group_id=22866atid=376685

 Any feedback can be posted through the JBoss Forums (don't forget to put
 everything needed to help) :
 http://www.jboss.org/forum.jsp?forum=162

 Enjoy and code.


 Laurent Etiemble,
 JBoss-IDE project lead.



 ---
 This SF.net email is sponsored by: SF.net Giveback Program.
 Does SourceForge.net help you be more productive?  Does it
 help you create better code?  SHARE THE LOVE, and help us help
 YOU!  Click Here: http://sourceforge.net/donate/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 3.2.3

2003-11-24 Thread Scott M Stark
Its named 3.2.3RC1 for release candidate 1 status. Its not
the final 3.2.3 release.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

[EMAIL PROTECTED] wrote:

Hallo,
I founfd  JBoss 3.2.3 at SF.net.
Is it the production release or only release candidate? At jboss.org I se 3.2.2
only.
Thanks,
Jiri


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Setting up Stores on JBoss

2003-11-24 Thread Scott M Stark
It looks correct and consistent with the 3.2.x admin devel guide
section on the subject.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Brian McSweeney wrote:

Hi all,

I run a web application packaged as an ear on JBoss-3.2.2.

I want to create stores on my website. This is standard webapp stuff. 
Let me give an example.

Imagine I run Ebay. A new person signs up, as a seller from a company 
named BrianCorp.

Ebay allows them to run a store on:

http://briancorp.ebay.com http://briancorp.ebay.com/

Now, I want to do this for my site too. Heres my knowledge so far.

I think this is about virtual hosts. For each store I want to open, I 
have to add a new virtual host. Heres what I was thinking of doing:
Add a virtual host for each new store.

To do this I must edit my jboss-web.xml file in the EAR and the 
\server\default\deploy\jbossweb-tomcat41.sar\META-INF\jboss-service.xml 
file for tomcat.

To jboss-web.xml I must add:

context-root/somedynamicpath/context-root
*virtual*-*host*briancorp.mysite.com/*virtual*-*host*
To jboss-service.xml

*Host* name=briancorp.mysite.com
Valve className=org.apache.catalina.valves.AccessLogValve
prefix=xyz directory=${jboss.server.home.dir}/log/
/*Host*
/Engine
Ive taken this from a forum post:

http://www.jboss.org/thread.jsp?forum=61thread=37290message=3795107q=how+to+create+virtual+host#3795107

Now, if anyone knows if this is correct Id be very grateful. Also, 
obviously I dont want to have to restart my entire site when I do this,
so could someone also tell me if this is possible to do on the fly.

Thank you very much indeed,

Brian


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JAAS Problem (login in same VM)

2003-11-24 Thread Scott M Stark
If the session is not secured then what exception are you getting in
the absence of the JAAS login? Show the stack traces that are occurring.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Meyer-Willner, Bernhard wrote:

Hi,

this is the setup (please don't comment on design issues, the design is
screwed, I know;): The ejb-jar with the session bean in question is not
secured, i.e. jboss.xml doesn't include a security-domain tag. The session
bean calls a class (same VM), which in turn calls this session bean again.
In order to be able to acquire the interface (call create()) we need to do a
JAAS login. If we don't, we get an exception.
I don't understand why the JAAS login is necessary, as the ejb-jar with the
session bean is not secured with a security-domain tag. Also this in-VM
login seems to cause problems later on, resulting in LoginExceptions
(javax.security...).
Please help anybody, cause I'm at a total loss.

Regards,
Bernie


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Remote JMX Notifications - Having Trouble With Example ch2 xmbean1 in JBoss 3.2.1

2003-11-24 Thread Scott M Stark
You have to replace the deploy/jmx-invoker-adaptor-server.sar with the
docs/examples/jmx/jmx-rmi-adaptor.sar. The jmx-invoker-adaptor-server.sar
does not support the remoting of the jmx notifications in 3.2.2.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Nicholas wrote:

I have been trying to get RMI based remote JMX
notifications working on version of JBoss 3.2.2 and
higher. So I went back to the exmaples in the 3.2.1
docs (the latest I have...??) and ran the XMBean
example TestXMBean1. It still works in JBoss 3.2.1 but
no longer works in 3.2.2 or 3.2.3RC1. I get the same
errors on both, outlined below.
Is there an update for this example ? Is there
something different I need to do ?
Thanks !

//Nicholas


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EJB home methods are not allowed to access CMP or CMR

2003-11-24 Thread Scott M Stark
The only usecase for the ejbActivate/ejbPassivate callbacks
is to cleanup resources like jms connections. The logic for
calculating the derived value you showed is what needs to
be done, and is a cache mechanism as ejbLoad is only called
when the cache state is inconsistent with the persistent store
basis you entity bean configuration. By definition, when the
entity is passivated the cached state is gone and must be either
reloaded from a persistent store or recomputed. If you don't
want these entities passivated change the cache policy.
From the ejb 2.0 spec:
spec
10.3.9 Non-persistent state
The Bean Provider may use instance variables in the entity bean instance
to maintain non-persistent state, e.g., a JMS connection.
The Bean Provider can use instance variables to store values that depend
on the persistent state of the entity bean instance, although this use is
not encouraged. The Bean Provider should use the ejbLoad() method to
resynchronize the values of any instance variables that depend on the
entity beans persistent state. In general, any non-persistent state
that depends on the persistent state of an entity bean
should be recomputed during the ejbLoad() method.
/spec
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Pedro Salazar wrote:

Technical I can, but I won't be able to implement a cache mechanism with
the any flag. I mean, I won't be able to know if data is really changed
and I must process all data again, or if the cache should persist. 
Because the load() should happen always after a activate(), with changes
or without them.

BTW, can the scenario below happen ( it happened to me ):

- I process some data (business method) and cache some data for the
entity #1.
- I let the entity bean go to passivate state.
- I test the cache for the entity #2 and for the entity #1. The cache
exist for the entity #2 but doesn't exist for entity #1. 

Both entity beans went to the pool, but when I invoked them again, the
pool gave the objects swapped for the entity beans.
So, if the cache is not possible to do in the entity beans, what is the
need of the activate() if the load() will always occur?  And, we cannot
access to any of the entity beans methods there...
regards,
Pedro Salazar.




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] apache + mod_jk + jboss*2 = no load balancing.

2003-11-24 Thread Mike Lindsey
I've got apache talking to a clustered jboss setup, using mod_jk, but I 
cannot get the load balacing to work.  I can force connections to a 
specific app server, but no matter what I do, I can't get the initial 
connection to hit a 'random' server.

my workers.properties:

worker.list=node1,node2,loadbalancer

worker.node1.port=8009
worker.node1.host=app01
worker.node1.type=ajp13
worker.node1.lbfactor=1
# worker.node1.local_worker=1
worker.node1.cachesize=10
worker.node2.port=8009
worker.node2.host=app02
worker.node2.type=ajp13
worker.node2.lbfactor=1
# worker.node2.local_worker=1
worker.node2.cachesize=10
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=node1,node2
# worker.loadbalancer.sticky_session=1
# worker.loadbalancer.local_worker_only=1
--
Mike Lindsey


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Remote JMX Notifications - Having Trouble With Example ch2 xmbean1 in JBoss 3.2.1

2003-11-24 Thread Nicholas
Perfect. Thanks.

//Nicholas


--- Scott M Stark [EMAIL PROTECTED] wrote:
 
 You have to replace the
 deploy/jmx-invoker-adaptor-server.sar with the
 docs/examples/jmx/jmx-rmi-adaptor.sar. The
 jmx-invoker-adaptor-server.sar
 does not support the remoting of the jmx
 notifications in 3.2.2.
 
 -- 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 Nicholas wrote:
 
  I have been trying to get RMI based remote JMX
  notifications working on version of JBoss 3.2.2
 and
  higher. So I went back to the exmaples in the
 3.2.1
  docs (the latest I have...??) and ran the XMBean
  example TestXMBean1. It still works in JBoss 3.2.1
 but
  no longer works in 3.2.2 or 3.2.3RC1. I get the
 same
  errors on both, outlined below.
  
  Is there an update for this example ? Is there
  something different I need to do ?
  
  Thanks !
  
  //Nicholas
 
 
 

---
 This SF.net email is sponsored by: SF.net Giveback
 Program.
 Does SourceForge.net help you be more productive? 
 Does it
 help you create better code?  SHARE THE LOVE, and
 help us help
 YOU!  Click Here: http://sourceforge.net/donate/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]

https://lists.sourceforge.net/lists/listinfo/jboss-user


=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
[EMAIL PROTECTED]
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user