Re: [JBoss-user] Two ears and classcastexception :( please, help!!

2004-01-30 Thread Simone Milani
In that case just put your common jar file inside the server/lib directory
but you loose the re-deploy ability for that jar.

Simone
- Original Message - 
From: "Francisco Figueiredo Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 28, 2004 9:27 PM
Subject: Re: [JBoss-user] Two ears and classcastexception :( please, help!!


> Simone Milani wrote:
> > Just put your 2 ears inside a sar module and put the common classes in
a
> > jar contained in the sar.
> >
>
> Put the ears inside a sar?
>
> But what if I want to deploy them independently?
>
>
> Thanks in advance.
>
>
> > Simone
> > - Original Message - 
> > From: "Francisco Figueiredo Jr." <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, January 23, 2004 8:24 PM
> > Subject: [JBoss-user] Two ears and classcastexception :( please, help!!
> >
> >
> >
> >>
> >>Hi all,
> >>
> >>I'm trying to get one application inside an .ear to use beans inside
> >
> > another
> >
> >>.ear.
> >>
> >>On both ear's I'm using custom class loader through the
> >
> >  tag
> >
> >>in jboss-app.xml.
> >>
> >>On both ears, in their application.xml I expose a jar containing the ejb
> >>interfaces using the  tag.
> >>
> >>The problem is that when I try to call a getHome in one ear, it throws
> >>classcastexception when trying to call narrow method in
> >
> > PortableRemoteObject
> >
> >>class.
> >>
> >>
> >>Am I doing something wrong?
> >>
> >>I'm sure the classcastexception is generated because of the different
> >
> > class
> >
> >>loaders.  I read the JBOSS admin guide in the section about classloaders
> >
> > and
> >
> >>indeed I did a modification in the code which calls the narrow method
and
> >
> > I
> >
> >>could check they are from different classloaders.
> >>
> >>what I get from calling narrow is this:
> >>
> >>[EMAIL PROTECTED]
> >>
> >
> >
url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43175corporativo.ear
> >
> >>,addedOrder=45}
> >>
> >>what I get from the ear calling the get home is this:
> >>
> >>[EMAIL PROTECTED]
> >>url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43176temis.ear
> >>,addedOrder=46}
> >>
> >>
> >>I can see that the class loaders are in fact different. But from my two
> >>disparate ears!
> >>
> >>
> >>
> >>I mean, I thought if I used custom classloaders, it would not be visible
> >
> > by
> >
> >>other applications in other classloaders.
> >>
> >>Am I missing something?
> >>
> >>What can I do to solve that?
> >>
> >>Please, help me. I'm desperate! :)
> >>
> >>Thanks in advance.
> >>
> >>Regards,
> >>
> >>Francisco Figueiredo Jr.
> >>
> >>
> >>__
> >>
> >>Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis!
> >>http://br.geocities.yahoo.com/
> >>
> >>
> >>---
> >>The SF.Net email is sponsored by EclipseCon 2004
> >>Premiere Conference on Open Tools Development and Integration
> >>See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> >>http://www.eclipsecon.org/osdn
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >
> >
> >
> > ---
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> -- 
> Regards,
>
> Francisco Figueiredo Jr.
> Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founding Member
>
>
> -
> "Science without religion is lame;
> religion without science is blind."
>
>~ Albert Einstein
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Two ears and classcastexception :( please, help!!

2004-01-28 Thread Simone Milani
Just put your 2 ears inside a sar module and put the common classes in  a
jar contained in the sar.

Simone
- Original Message - 
From: "Francisco Figueiredo Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 23, 2004 8:24 PM
Subject: [JBoss-user] Two ears and classcastexception :( please, help!!


>
>
> Hi all,
>
> I'm trying to get one application inside an .ear to use beans inside
another
> .ear.
>
> On both ear's I'm using custom class loader through the
 tag
> in jboss-app.xml.
>
> On both ears, in their application.xml I expose a jar containing the ejb
> interfaces using the  tag.
>
> The problem is that when I try to call a getHome in one ear, it throws
> classcastexception when trying to call narrow method in
PortableRemoteObject
> class.
>
>
> Am I doing something wrong?
>
> I'm sure the classcastexception is generated because of the different
class
> loaders.  I read the JBOSS admin guide in the section about classloaders
and
> indeed I did a modification in the code which calls the narrow method and
I
> could check they are from different classloaders.
>
> what I get from calling narrow is this:
>
> [EMAIL PROTECTED]
>
url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43175corporativo.ear
> ,addedOrder=45}
>
> what I get from the ear calling the get home is this:
>
> [EMAIL PROTECTED]
> url=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp43176temis.ear
> ,addedOrder=46}
>
>
> I can see that the class loaders are in fact different. But from my two
> disparate ears!
>
>
>
> I mean, I thought if I used custom classloaders, it would not be visible
by
> other applications in other classloaders.
>
> Am I missing something?
>
> What can I do to solve that?
>
> Please, help me. I'm desperate! :)
>
> Thanks in advance.
>
> Regards,
>
> Francisco Figueiredo Jr.
>
>
> __
>
> Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis!
> http://br.geocities.yahoo.com/
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] deployment order: SAR/WSR causes MBeanException

2004-01-27 Thread Simone Milani
Hi,

Just put your sar in the deploy.last directory.

Simone
- Original Message - 
From: "Matt Munz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 27, 2004 3:44 PM
Subject: [JBoss-user] deployment order: SAR/WSR causes MBeanException



Hi all,

  I sent the following message to the forums with no response.[1]  Any help
would be appreciated.

  I've tolerated this problem for a while, but now I'm ready to fix it. My
service archive, which contains a WSR, will not deploy properly unless I
prefix it with a letter/number so that the deployer loads it after
jboss-net.sar. I'd like to avoid this hack. I added the appropriate depends
clause to jboss-service.xml, with no effect.[2]

  Perhaps there is another way to do this? For those of you using JBoss.net,
how do you deploy your WSRs?

[1]  http://jboss.org/index.html?module=bb&op=viewtopic&t=44767
[2] < depends >jboss.net:service=Axis

  - Matt








---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Change partition name for JBoss cluster configuration

2004-01-09 Thread Simone Milani



Hi Sacha,
 
    You mean change the line 



In cluster-service.xml?
 
Thanks
 
Simone

  - Original Message - 
  From: 
  Sacha Labourey 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, January 08, 2004 11:06 
  PM
  Subject: RE: [JBoss-user] Change 
  partition name for JBoss cluster configuration
  
  the easiest way to change it is ... 
  not to change it but simply change the multicast address so that there is no 
  conflicts with other clusters.
  


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Boulatian, MisakSent: Thursday, January 08, 2004 7:06 
PMTo: [EMAIL PROTECTED]Subject: 
[JBoss-user] Change partition name for JBoss cluster 
configuration

Hi,
 
I am trying to 
run JBoss 3.2.3 in a clustered environment for production. I need to 
change the name 'DefaultPartition'. The way I was doing was to search and 
replace every occurrence of 'DefaultPartition' within the following files 
with the name I wanted:
 
- 
JBOSS_INSTALL_DIR/server/all/deploy/cluster-service.xml
- 
JBOSS_INSTALL_DIR/server/all/deploy/deploy.last/farm-service.xml
- 
JBOSS_INSTALL_DIR/server/all/deploy/jbossha-httpsession.sar/ClusteredHttpSessionEB.jar/META-INF/jboss.xml
 
I wonder if 
there is an easy way of doing this error-prone task.
 
Thanks a 
lot,
Misak

This message 
and any attachments are intended only for the use of the addressee and may 
contain information that is privileged and confidential. If the reader of 
the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of 
this communication is strictly prohibited. If you have received this 
communication in error, please notify us immediately by e-mail and delete 
the message and any attachments from your system. 
  


Re: [JBoss-user] AWT and XServer connection issues

2003-12-08 Thread Simone Milani



Do you have a video card installed in the 
box?
 
Simone

  - Original Message - 
  From: 
  Michael 
  Ukpong 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, December 08, 2003 10:58 
  AM
  Subject: [JBoss-user] AWT and XServer 
  connection issues
  
  
  Hi 
  people,
   
   
  I have a chart drawing application 
  running on jboss_3.2.1-tomcat_4.1.24. It runs on windows, but on Linux I get 
  this error:
   
  “Cant connect to X11 window server 
  using ‘;0.0’ as the value of the DISPLAY 
  variable”.
   
  The Appserver is running as ROOT on a Redhat 9 box with 
jdk1.4.1_02.
   
  Has anyone experienced this 
  problem before?...any help will be highly 
  appreciated
   
  Michael
   


[JBoss-user] Custom MBean state

2003-11-19 Thread Simone Milani



Hi,
 
    Is there some kind of state 
machine that prevents jumping from one state to another?
I was expecting that to call start on a destroyed 
bean would cause some kind of invalid state Exception.
Am I missing something?
 
Thanks
 
Simone


[JBoss-user] deploy.last bug

2003-11-13 Thread Simone Milani



Hi,
 
    I found what i think is a bug in 
the deploy.last directory behaviour.  If you have a sar file containing a 
resource file ie something.xml in it when the sar file is exploded in the temp 
directory the file does not get there as it instead happens when the sar is 
deployed in the normal deploy directory.
 
Does it makes sense?
 
 
Thanks
 
Simone


Re: [JBoss-user] Jboss and Jboss-web.xml

2003-11-05 Thread Simone Milani
As far I can see you can't because you would have to change all the JNDI
locations of EJBs as well.

Simone
- Original Message - 
From: "Maffeo Gaetano" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 11:08 AM
Subject: [JBoss-user] Jboss and Jboss-web.xml


> Hi all,
>
> how can i use the jboss-web.xml in order to get more then one context root
> for only one application?
>
>
>
> many thanks in advance
> gaetano
>
>
> ---
> 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] Loader repository and Mbean

2003-09-30 Thread Simone Milani
Thanks!
And it works :)

It is a shame is not supported in XDoclet as far as I can see.

Simone
- Original Message - 
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 29, 2003 8:11 PM
Subject: Re: [JBoss-user] Loader repository and Mbean


> Its for the sar as well.
>
> -- 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
>
> Simone Milani wrote:
>
> > Hi,
> >
> >The comment inside the jboss-service_3_2.dtd says:
> >
> > The loader-repository specifies the name of the UnifiedLoaderRepository
> > MBean to use for the ear to provide _ear_ level scoping of classes
deployed
> > in the _ear_.
> >
> > Why does it refer to ear specifically?  Is it not supposed to be used
> > with sar files as well?
> >
> > Thanks
> >
> > Simone
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Loader repository and Mbean

2003-09-29 Thread Simone Milani



Hi,
 
   The comment inside the 
jboss-service_3_2.dtd says:
 
The loader-repository specifies the name of the 
UnifiedLoaderRepositoryMBean to use for the ear to provide ear level 
scoping of classes deployedin the ear. 
 
Why does it refer to ear specifically?  Is it 
not supposed to be used with sar files as well?
 
Thanks
 
Simone


Re: [JBoss-user] Mbean testing strategy

2003-09-29 Thread Simone Milani
Hi,

Thanks, I had a look at it.  Which one you specifically suggest?  Those
tests are for internal JBoss functionality and I need to test custom one so
possibly is a different story.

Simone
- Original Message - 
From: "Rupp, Heiko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 29, 2003 11:39 AM
Subject: RE: [JBoss-user] Mbean testing strategy



>What is the best way to Junit test Mbeans?  Is it from inside or
> outside Jboss?  Any example / pointer would be appreciated.

The testsuite has various MBean tests. Perhaps this could be a start.

  Heiko
-- 
Heiko W. Rupp   EMail: [EMAIL PROTECTED]
Senior Consultant   Telefon: +49 711 222 992 - 900
Cellent AG Finance SolutionsTelefax: +49 711 222 992 - 999
Calwer Str. 33  D-70173 Stuttgart


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Mbean testing strategy

2003-09-29 Thread Simone Milani



Hi,
    
    What is the best way to Junit 
test Mbeans?  Is it from inside or outside Jboss?  Any example / 
pointer would be appreciated.
 
Thanks
 
Simone


[JBoss-user] JBoss-net & wsdl

2003-09-23 Thread Simone Milani
Hi,

I am trying to get the generated wsdl to use the host name instead of
localhost.

- http://localhost:8080/jboss-net/services/reportserver";
xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:impl="http://localhost:8080/jboss-net/services/reportserver";
xmlns:intf="http://localhost:8080/jboss-net/services/reportserver";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns1="http://net.jboss.org/jmx";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
- 

 Any pointer in the right direction?

Thanks

Simone


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Load-Balancing Problems

2003-08-18 Thread Simone Milani
Hi Sacha,

Thanks again!  Yes is very easy to check it provided that you know how
to check it :)

Cheers

Simone
- Original Message - 
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 16, 2003 7:20 AM
Subject: RE: [JBoss-user] Load-Balancing Problems


> > Thanks very much!  It works.
> > Would it not be a good idea then to throw an error when using
> > a clustered declared EJB within a non cluster enabled container?
>
> Well, what is not easy is how to determine that a stack is a non-clustered
> stack? You could implement your own invoker, etc. and this wouldn't be
easy
> to check. I will take a look however. Thank you for the idea.
>
> Cheers,
>
>
> sacha
>
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Load-Balancing Problems

2003-08-15 Thread Simone Milani
Hi Sacha,

Thanks very much!  It works.
Would it not be a good idea then to throw an error when using a clustered
declared EJB within a non cluster enabled container?

Cheers
Simone

- Original Message - 
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 15, 2003 1:58 PM
Subject: RE: [JBoss-user] Load-Balancing Problems


Yes, you have changed the configuration-name and build your own which is now
incompatible with clustering! You should extend the clustered configuration
when building "Standard Stateless SessionBean with Security", not inherits
from the default non-clustered one.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Simone Milani
> Sent: vendredi, 15. août 2003 14:41
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Hi Sasha,
>
> That was what I thought as well at some point but my
> jboss.xml is the
> following:
> 
>
>
>
>  
>
>   
>  Test
>  EJB/Session/Test
>  EJB/Session/Local/Test
>  Standard Stateless SessionBean with
> Security
>  true
>   
>
>
>
>
>
>
>  
>   
>  Optimistic CMP 2.x
> EntityBean
>
> org.jboss.ejb.plugins.lock.JDBCOptimisticLock<
/locking-polic
> y>
>  true
>   
> 
>  Standard Stateless SessionBean with
> Security
>  java:/jaas/tsar
>   
>
>
> 
> And the partition as the default name.
> Any idea?
>
> Thanks!!!
>
> Simone
>
> - Original Message - 
> From: "Sacha Labourey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 15, 2003 12:57 PM
> Subject: RE: [JBoss-user] Load-Balancing Problems
>
>
> OK, so check your JBoss.xml file as in the current setup you
> are *not* using
> clustering: the invoker is the standard JRMP invoker, not the HA-JRMP
> invoker.
>
>
> Cheers,
>
>
>
> sacha
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Simone Milani
> > Sent: vendredi, 15. août 2003 11:46
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Load-Balancing Problems
> >
> >
> > Hi Sacha,
> >
> > It is a SLSB and here is the stack trace of the call:
> >
> > 10:43:21,773 ERROR [LogInterceptor] RuntimeException:
> > java.lang.RuntimeException: Test
> > at
> >
> com.db.gm.mercury.ejb.session.test.TestBean.getPrimeAtPosition(Unknown
> > Source)
> > at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39
> > )
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl
> > .java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at
> > org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.i
> > nvoke(Stateles
> > sSessionContainer.java:646)
> > at
> > org.jboss.resource.connectionmanager.CachedConnectionIntercept
> > or.invoke(Cach
> > edConnectionInterceptor.java:186)
> > at
> > org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invo
> > ke(StatelessSe
> > ssionInstanceInterceptor.java:72)
> > at
> > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstrac
> > tTxInterceptor
> > .java:84)
> > at
> > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> > nterceptorCMT.
> > java:243)
> > at
> > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT
> > .java:104)
> > at
> > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter
> > ceptor.java:11
> > 7)
> > at
> > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
> > at
> > org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(Pro
> > xyFactoryFinde
> > rInterceptor.java:122)
> > at
> > org.jboss.ejb.StatelessSessionContainer.internalInvoke(Statele
> > ssSessionConta
> > iner.java:323)
> > at org.jboss.ejb.Container.invoke(Container.java:700)
> > at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> 

Re: [JBoss-user] Load-Balancing Problems

2003-08-15 Thread Simone Milani
Hi Sacha,

Apologies if I am confusing things.  I have a Stateless Session EJB
declared now as
true.
The code I am running is the following:

TestHome testHome = (TestHome) javax.rmi.PortableRemoteObject.narrow(
   ctx.lookup("EJB/Session/Test"),
   TestHome.class);

  Test test = testHome.create();
  System.out.println("Hello: " + test.hello());
  for(int i = 0; i < 200; i++)
  {
   Integer myPrime = test.getPrimeAtPosition(i);
   System.out.println("Thread " + Thread.currentThread().getName() +
   ":\tPrime @ position "+ i +": " + myPrime);
  }

And all the calls get sent to the same member.

Any idea?

Thanks

Simone
- Original Message - 
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 5:07 PM
Subject: RE: [JBoss-user] Load-Balancing Problems


What kind of EJB is that?

> -Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Simone Milani
> Sent: jeudi, 14. août 2003 16:52
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Hi,
>
> I use 3.2.2RC2 and the default config for round robin.
> to have the call
> span the whole cluster in round robin I need to lookup the
> home every time
> which is not very efficient.  I would like to do the lookup
> and the create
> only one and do round robin after that.  Is it possible?
>
> Thanks!
>
> Simone
> - Original Message - 
> From: "Sacha Labourey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 13, 2003 8:28 AM
> Subject: RE: [JBoss-user] Load-Balancing Problems
>
>
> Then that is very strange as with 3.2.x you should be able to
> re-create your
> home/remote and keep balancing correctly.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Christofer Dutz
> > Sent: mercredi, 13. août 2003 00:18
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Load-Balancing Problems
> >
> >
> > I am using 3.2.2RC2 ...
> >
> > Chris
> >
> > Sacha Labourey wrote:
> >
> > >... Or use 3.2.x which removes this issue.
> > >
> > >
> > >
> > >>-Original Message-
> > >>From: [EMAIL PROTECTED]
> > >>[mailto:[EMAIL PROTECTED] On Behalf Of
> > >>Adrian Brock
> > >>Sent: mardi, 12 août 2003 17:50
> > >>To: [EMAIL PROTECTED]
> > >>Subject: Re: [JBoss-user] Load-Balancing Problems
> > >>
> > >>
> > >>You are probably doing sessionHome.create() on every request?
> > >>
> > >>This creates a new remote interface proxy, which will
> > >>round-robin all servers. However if you only do one
> > >>invocation it will always use the first server and never get
> > >>to the others.
> > >>
> > >>You can get similar problems with other patterns in your
> > >>RemoteInterface usage depending upon how many servers you have.
> > >>
> > >>One simple solution is to use RandomRobin rather than
> > >>RoundRobin as the load balancing policy.
> > >>
> > >>Regards,
> > >>Adrian
> > >>
> > >>On Tue, 2003-08-12 at 10:41, Christofer Dutz wrote:
> > >>
> > >>
> > >>>Hi,
> > >>>
> > >>>I am having some Problems with load-balancing in JBoss.
> > >>>All Beans are set to use the RoundRobin Load-Balancing
> > strategy and
> > >>>the
> > >>>cluster seems to work like a charm.
> > >>>I setup the HA-JNDI to work on Port 1100 and setup the
> > >>>
> > >>>
> > >>client to use
> > >>
> > >>
> > >>>this port. Everything seems to work fine, except one thing.
> > >>>If I watch the load of the cluster-machines with "top" I
> > >>>
> > >>>
> > >>can see the
> > >>
> > >>
> > >>>machine that is directly accessed by the Client-Application
> > >>>has a load of 100% the other cluster nodes then are only
> > >>>
> > >>>
> > >>30%. Mabe I'm
> > >>
> > >>
> > >>>wrong, but I think that it could be, that the client proxy
> > >>>is doing no load-balancing at all and that the 30% are just
> > >>>
>

Re: [JBoss-user] Load-Balancing Problems

2003-08-15 Thread Simone Milani
Hi Sacha,

It is a SLSB and here is the stack trace of the call:

10:43:21,773 ERROR [LogInterceptor] RuntimeException:
java.lang.RuntimeException: Test
at
com.db.gm.mercury.ejb.session.test.TestBean.getPrimeAtPosition(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
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:646)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionInterceptor.java:186)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:72)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:243)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
7)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
rInterceptor.java:122)
at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta
iner.java:323)
at org.jboss.ejb.Container.invoke(Container.java:700)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
362)
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
01)
at java.lang.Thread.run(Thread.java:534)



Thanks!


Simone



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Load-Balancing Problems

2003-08-15 Thread Simone Milani
Hi Sasha,

That was what I thought as well at some point but my jboss.xml is the
following:


   

 

  
 Test
 EJB/Session/Test
 EJB/Session/Local/Test
 Standard Stateless SessionBean with
Security
 true
  

   

   
   

 
  
 Optimistic CMP 2.x EntityBean

org.jboss.ejb.plugins.lock.JDBCOptimisticLock
 true
  

 Standard Stateless SessionBean with
Security
 java:/jaas/tsar
  
   


And the partition as the default name.
Any idea?

Thanks!!!

Simone

- Original Message - 
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 15, 2003 12:57 PM
Subject: RE: [JBoss-user] Load-Balancing Problems


OK, so check your JBoss.xml file as in the current setup you are *not* using
clustering: the invoker is the standard JRMP invoker, not the HA-JRMP
invoker.


Cheers,



sacha

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Simone Milani
> Sent: vendredi, 15. août 2003 11:46
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Hi Sacha,
>
> It is a SLSB and here is the stack trace of the call:
>
> 10:43:21,773 ERROR [LogInterceptor] RuntimeException:
> java.lang.RuntimeException: Test
> at
> com.db.gm.mercury.ejb.session.test.TestBean.getPrimeAtPosition(Unknown
> Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39
> )
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.i
> nvoke(Stateles
> sSessionContainer.java:646)
> at
> org.jboss.resource.connectionmanager.CachedConnectionIntercept
> or.invoke(Cach
> edConnectionInterceptor.java:186)
> at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invo
> ke(StatelessSe
> ssionInstanceInterceptor.java:72)
> at
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstrac
> tTxInterceptor
> .java:84)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.
> java:243)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT
> .java:104)
> at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter
> ceptor.java:11
> 7)
> at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
> at
> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(Pro
> xyFactoryFinde
> rInterceptor.java:122)
> at
> org.jboss.ejb.StatelessSessionContainer.internalInvoke(Statele
> ssSessionConta
> iner.java:323)
> at org.jboss.ejb.Container.invoke(Container.java:700)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Reflec
> tedMBeanDispat
> cher.java:284)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
> at
> org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
> 362)
> at
> sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
> at sun.rmi.transport.Transport$1.run(Transport.java:148)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
> at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport
> .java:460)
> at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTr
> ansport.java:7
> 01)
> at java.lang.Thread.run(Thread.java:534)
>
>
>
> Thanks!
>
>
> Simone
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win 

Re: [JBoss-user] Load-Balancing Problems

2003-08-14 Thread Simone Milani
Hi,

I use 3.2.2RC2 and the default config for round robin.  to have the call
span the whole cluster in round robin I need to lookup the home every time
which is not very efficient.  I would like to do the lookup and the create
only one and do round robin after that.  Is it possible?

Thanks!

Simone
- Original Message - 
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 8:28 AM
Subject: RE: [JBoss-user] Load-Balancing Problems


Then that is very strange as with 3.2.x you should be able to re-create your
home/remote and keep balancing correctly.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Christofer Dutz
> Sent: mercredi, 13. août 2003 00:18
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> I am using 3.2.2RC2 ...
>
> Chris
>
> Sacha Labourey wrote:
>
> >... Or use 3.2.x which removes this issue.
> >
> >
> >
> >>-Original Message-
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] On Behalf Of
> >>Adrian Brock
> >>Sent: mardi, 12 août 2003 17:50
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: [JBoss-user] Load-Balancing Problems
> >>
> >>
> >>You are probably doing sessionHome.create() on every request?
> >>
> >>This creates a new remote interface proxy, which will
> >>round-robin all servers. However if you only do one
> >>invocation it will always use the first server and never get
> >>to the others.
> >>
> >>You can get similar problems with other patterns in your
> >>RemoteInterface usage depending upon how many servers you have.
> >>
> >>One simple solution is to use RandomRobin rather than
> >>RoundRobin as the load balancing policy.
> >>
> >>Regards,
> >>Adrian
> >>
> >>On Tue, 2003-08-12 at 10:41, Christofer Dutz wrote:
> >>
> >>
> >>>Hi,
> >>>
> >>>I am having some Problems with load-balancing in JBoss.
> >>>All Beans are set to use the RoundRobin Load-Balancing
> strategy and
> >>>the
> >>>cluster seems to work like a charm.
> >>>I setup the HA-JNDI to work on Port 1100 and setup the
> >>>
> >>>
> >>client to use
> >>
> >>
> >>>this port. Everything seems to work fine, except one thing.
> >>>If I watch the load of the cluster-machines with "top" I
> >>>
> >>>
> >>can see the
> >>
> >>
> >>>machine that is directly accessed by the Client-Application
> >>>has a load of 100% the other cluster nodes then are only
> >>>
> >>>
> >>30%. Mabe I'm
> >>
> >>
> >>>wrong, but I think that it could be, that the client proxy
> >>>is doing no load-balancing at all and that the 30% are just
> >>>
> >>>
> >>for syncing.
> >>
> >>
> >>>Any Ideas of how I could balance the load over all nodes?
> >>>Any help is realy appreciated.
> >>>
> >>>Christofer Dutz
> >>>
> >>>
> >>>
> >>>
> >>>---
> >>>This SF.Net email sponsored by: Free pre-built ASP.NET
> >>>
> >>>
> >>sites including
> >>
> >>
> >>>Data Reports, E-commerce, Portals, and Forums are available now.
> >>>Download today and enter to win an XBOX or Visual Studio .NET.
> >>>
> >>>
> >>>
> >>http://aspnet.click->
> url.com/go/psa0013ave/direct;at.aspnet_072303_
> >>
> >>
> >>>01/01
> >>>___
> >>>JBoss-user mailing list
> >>>[EMAIL PROTECTED]
> >>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>>
> >>>
> >>
> >>---
> >>This SF.Net email sponsored by: Free pre-built ASP.NET sites
> >>including Data Reports, E-commerce, Portals, and Forums are
> >>available now. Download today and enter to win an XBOX or
> >>Visual Studio .NET.
> >>http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet
> >>
> >>
> >_072303_01/01
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> >
> >
> >
> >---
> >This SF.Net email sponsored by: Free pre-built ASP.NET sites
> including
> >Data Reports, E-commerce, Portals, and Forums are available now.
> >Download today and enter to win an XBOX or Visual Studio .NET.
> >http://aspnet.click-url.com/go/psa0013ave/direct;at.aspne
> t_072303_01/01
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet
> _072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



-

Re: [JBoss-user] Load-Balancing Problems

2003-08-14 Thread Simone Milani
Opppss, sorry.  I had the bean tagged as
false.

Thanks

Simone
- Original Message - 
From: "Simone Milani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 3:51 PM
Subject: Re: [JBoss-user] Load-Balancing Problems


> Hi,
>
> I use 3.2.2RC2 and the default config for round robin.  to have the
call
> span the whole cluster in round robin I need to lookup the home every time
> which is not very efficient.  I would like to do the lookup and the create
> only one and do round robin after that.  Is it possible?
>
> Thanks!
>
> Simone
> - Original Message - 
> From: "Sacha Labourey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 13, 2003 8:28 AM
> Subject: RE: [JBoss-user] Load-Balancing Problems
>
>
> Then that is very strange as with 3.2.x you should be able to re-create
your
> home/remote and keep balancing correctly.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Christofer Dutz
> > Sent: mercredi, 13. août 2003 00:18
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Load-Balancing Problems
> >
> >
> > I am using 3.2.2RC2 ...
> >
> > Chris
> >
> > Sacha Labourey wrote:
> >
> > >... Or use 3.2.x which removes this issue.
> > >
> > >
> > >
> > >>-Original Message-
> > >>From: [EMAIL PROTECTED]
> > >>[mailto:[EMAIL PROTECTED] On Behalf Of
> > >>Adrian Brock
> > >>Sent: mardi, 12 août 2003 17:50
> > >>To: [EMAIL PROTECTED]
> > >>Subject: Re: [JBoss-user] Load-Balancing Problems
> > >>
> > >>
> > >>You are probably doing sessionHome.create() on every request?
> > >>
> > >>This creates a new remote interface proxy, which will
> > >>round-robin all servers. However if you only do one
> > >>invocation it will always use the first server and never get
> > >>to the others.
> > >>
> > >>You can get similar problems with other patterns in your
> > >>RemoteInterface usage depending upon how many servers you have.
> > >>
> > >>One simple solution is to use RandomRobin rather than
> > >>RoundRobin as the load balancing policy.
> > >>
> > >>Regards,
> > >>Adrian
> > >>
> > >>On Tue, 2003-08-12 at 10:41, Christofer Dutz wrote:
> > >>
> > >>
> > >>>Hi,
> > >>>
> > >>>I am having some Problems with load-balancing in JBoss.
> > >>>All Beans are set to use the RoundRobin Load-Balancing
> > strategy and
> > >>>the
> > >>>cluster seems to work like a charm.
> > >>>I setup the HA-JNDI to work on Port 1100 and setup the
> > >>>
> > >>>
> > >>client to use
> > >>
> > >>
> > >>>this port. Everything seems to work fine, except one thing.
> > >>>If I watch the load of the cluster-machines with "top" I
> > >>>
> > >>>
> > >>can see the
> > >>
> > >>
> > >>>machine that is directly accessed by the Client-Application
> > >>>has a load of 100% the other cluster nodes then are only
> > >>>
> > >>>
> > >>30%. Mabe I'm
> > >>
> > >>
> > >>>wrong, but I think that it could be, that the client proxy
> > >>>is doing no load-balancing at all and that the 30% are just
> > >>>
> > >>>
> > >>for syncing.
> > >>
> > >>
> > >>>Any Ideas of how I could balance the load over all nodes?
> > >>>Any help is realy appreciated.
> > >>>
> > >>>Christofer Dutz
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>---
> > >>>This SF.Net email sponsored by: Free pre-built ASP.NET
> > >>>
> > >>>
> > >>sites including
> > >>
> > >>
> > >>>Data Reports, E-commerce, Portals, and Forums are available now.
> > >>>Download today and enter to win an XBOX or Visual Studio .NET.
> > >>>
> > >>>
> > >>>
> > >>http://aspnet.click->
> > url.com/go/psa00

Re: [JBoss-user] memory leaks during redeployment

2003-08-01 Thread Simone Milani
Hi Scott,

What I am trying to say is that the memory leaks affect the finders
method as well.  Does it makes sense?

Thanks

Simone
- Original Message - 
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 2:33 PM
Subject: Re: [JBoss-user] memory leaks during redeployment


> No, as no finders need be executed, only redeployment.
>
> -- 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
>
> Simone Milani wrote:
>
> > Hi Scott,
> >
> > Would you please confirm (as I think) that this problem is also
causing
> > the following bug?
> >
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=738166&group_id=22866
> >
> > Thanks!
> >
> > Simone
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] memory leaks during redeployment

2003-07-28 Thread Simone Milani
Hi Scott,

Would you please confirm (as I think) that this problem is also causing
the following bug?
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=738166&group_id=22866

Thanks!

Simone
- Original Message - 
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 27, 2003 1:30 AM
Subject: Re: [JBoss-user] memory leaks during redeployment


> Its a known issue I'm looking into.
>
> -- 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
>
> Alexey Yudichev wrote:
>
> >   In Jboss 3.2.1 I often encounter OutOfMemoryErrors on our jboss
installations. I realized that if no redeployments happen the JBoss instance
even being on heavy load works great forever. Once I begin to often redeploy
applications I finally get OutOfMemoryError no matter if I
specified -Xmx300m or -Xmx800m. Can anybody run a memory profiler on a
redeployment process? I tried to do it with OptimizeIt and I always get +1Mb
of heap after each redeployment. Most new objects are of type Object[] and
are referenced from WeakHashMaps (which is ok I guess), from inside some
classes of Xerces parser and many more. I cannot of course judge whether
these new references are caused by the leak or not.
> >   As far as I remember I had no such problem when I used Jboss 3.0.
> >   As always, I am ok to offer any help I can.
> >
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] memory leaks during redeployment

2003-07-27 Thread Simone Milani
Hi,

The problem I have after 2 or 3 redeployments all my finders method fail
and at the 5 the server goes out of memory.
Below is the stack trace of my finderError

2003-07-25 15:51:01,029 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.MDSKeyVector.findByMandatoryP
arameters] Executing SQL: SELECT t0_o.MK_MDS_ID, t0_o.MK_ASOFDATE,
t0_o.MK_BUSINESS_AREA, t0_o.MK_CLASS, t0_o.MK_CURRENCY, t0_o.MK_CURVE_ID,
t0_o.MK_DATE_SAVED, t0_o.MK_INSTANCE, t0_o.MK_LOCATION, t0_o.MK_NAME,
t0_o.MK_PROCESS, t0_o.MK_TIMESTAMP, t0_o.MK_USER FROM MDS_KEY t0_o WHERE
t0_o.MK_CLASS = ? AND t0_o.MK_CURRENCY = ? AND t0_o.MK_INSTANCE = ? AND
t0_o.MK_PROCESS = ? AND t0_o.MK_ASOFDATE = ? AND t0_o.MK_LOCATION = ? AND
t0_o.MK_BUSINESS_AREA = ? AND t0_o.MK_NAME = ?
2003-07-25 15:51:01,045 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.MDSKeyVector.findByMandatoryP
arameters] Find failed
java.lang.IllegalArgumentException: Entity primary key is null
 at
org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache$PreloadKey.(ReadAheadCac
he.java:695)
 at
org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.getPreloadDataMap(ReadAheadCac
he.java:527)
 at
org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.addPreloadData(ReadAheadCache.
java:460)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstract
QueryCommand.java:175)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstract
QueryCommand.java:91)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityC
ommand.java:44)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.
java:593)
 at
org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager
.java:307)
 at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(
CachedConnectionInterceptor.java:301)
 at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:628)
 at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:1006)
 at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.jav
a:88)
 at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:188)
 at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(
CachedConnectionInterceptor.java:215)
 at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.jav
a:88)
 at
org.jboss.ejb.plugins.EntityMultiInstanceInterceptor.invokeHome(EntityMultiI
nstanceInterceptor.java:54)
 at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor
.java:61)
 at
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInt
erceptor.java:28)
 at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:88)
 at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:243)
 at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)
 at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:92)
 at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
 at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryF
inderInterceptor.java:93)
 at
org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:478)
 at org.jboss.ejb.Container.invoke(Container.java:720)
 at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyF
actory.java:272)
 at
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
 at $Proxy245.findByMandatoryParameters(Unknown Source)
 at
com.db.gm.mercury.ejb.session.mds.MDSKeyVectorFacadeBean.findLightByMandator
yParameters(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor155.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:646)
 at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionInterceptor.java:186)
 at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:72)
 at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:84)
 at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:243)
 at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
 at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
7)
 at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
 at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
rInterceptor.java:122)
 at
org.jboss.e

Re: [JBoss-user] memory leaks during redeployment

2003-07-25 Thread Simone Milani
Hi,

I keep having the same problem with 3.2.2RC1.

Regards

Simone
- Original Message - 
From: "Alexey Yudichev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 1:16 PM
Subject: [JBoss-user] memory leaks during redeployment


  In Jboss 3.2.1 I often encounter OutOfMemoryErrors on our jboss
installations. I realized that if no redeployments happen the JBoss instance
even being on heavy load works great forever. Once I begin to often redeploy
applications I finally get OutOfMemoryError no matter if I
specified -Xmx300m or -Xmx800m. Can anybody run a memory profiler on a
redeployment process? I tried to do it with OptimizeIt and I always get +1Mb
of heap after each redeployment. Most new objects are of type Object[] and
are referenced from WeakHashMaps (which is ok I guess), from inside some
classes of Xerces parser and many more. I cannot of course judge whether
these new references are caused by the leak or not.
  As far as I remember I had no such problem when I used Jboss 3.0.
  As always, I am ok to offer any help I can.


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Apache load balanging for Cluster

2003-07-23 Thread Simone Milani
Hi,

I have setup a cluster of JBoss 3.2.2RC1 instances running on Linux and
use Apache Running on Solaris to do Loadbalancing with modjk for Tomcat.
It all works OK but I have lots of werbose output coming out:

10:26:30,401 INFO  [STDOUT] 2f 69 6e 35 3e 3c 69 6e 36 3e 4c 44 4e 3c 2f 69
| /
in5>LDNOTC




And I get the following warning
10:26:40,062 INFO  [ChannelSocket] connection timeout reached
10:26:51,301 INFO  [ChannelSocket] connection timeout reached

I guess the latter has to do with the HTTP 1.1 persistent connection.#

Anyway is it standard behaviour or there is something wrong somewhere?

Thanks

Simone


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] sync-on-commit-only

2003-07-11 Thread Simone Milani
Hi Jeremy,

I am using this set to false in conjuction with a nonnullable FK-Field
field to insure that the NON NULL constraint is always respected inside the
transaction.  Am I wrong?

Thanks

Simone
- Original Message - 
From: "Jeremy Boynes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 10, 2003 6:23 PM
Subject: RE: [JBoss-user] sync-on-commit-only


> This causes the container to flush e.g. before executing finders, which
> is required (and often desired) behaviour. Setting this to true will
> mean finders will not be aware of any modifications already made in the
> transaction. I'd recommend leaving it at false unless you know that your
> application can handle this, or unless you do many find/modify cycles on
> a single instance in a single transaction.
>
> Jeremy
>
> /*
>  * Jeremy Boynes
>  * Partner
>  * Core Developers Network
>  */
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Corby Page
> > Sent: Thursday, July 10, 2003 9:45 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] sync-on-commit-only
> >
> >
> > Assuming your entity beans are enlisted in a transaction, is
> > there any reason ever to leave this option set to false?
> >
> > Thanks,
> > Corby
> >
> >
> >
> >
> > ---
> > This SF.Net email sponsored by: Parasoft
> > Error proof Web apps, automate testing & more.
> > Download & eval WebKing and get a free book.
> > www.parasoft.com/bulletproofapps
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/j> boss-user
> >
>
>
>
> ---
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps1
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Reentrancy Issues w/ 3.2.1 + Optimistic Locking

2003-07-09 Thread Simone Milani

>> Will I still get caching from commit option A?
AFAIK you will only get caching inside a single transaction.

Simone


> -Original Message-
> From: Simone Milani [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 7:32 AM
> To: [EMAIL PROTECTED]
>
> Hi,
>
> Make sure that you configure your container like this:
>
>   
>  Optimistic CMP 2.x EntityBean
>
>
org.jboss.ejb.plugins.lock.JDBCOptimisticLock y>
>  true
>   
>
> Hope it helps
>
> Simone
> - Original Message -
> From: "Javier Soltero" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 09, 2003 1:31 AM
> Subject: [JBoss-user] Reentrancy Issues w/ 3.2.1 + Optimistic Locking
>
>
> Hi,
>
> We're in the process of migrating an application from 3.0.6 to 3.2.1. Our
> main interest was to use Optimistic Locking for our many Entity Beans. We
> have the application running, using the version strategy for OL, and
during
> most calls to our backend (which is composed of session façade beans and
> entity beans), we get errors such as the one below indicating that a
> reentrant method call was detected. All the api's in our session beans
have
> tx required, and we're using read-only method directives in the entity
layer
> for every non-write method.
>
> Has anyone else seen problems like these? This does not occur with 3.0.6 +
> PessimisticLocking
>
>
> Oh, and we're using commit-option A.
>
>
> Any help will be greatly appreciated.
>
> Thanks,
>
> -javier
>
>
>
> 2003-07-08 15:36:02,881 ERROR [org.jboss.ejb.plugins.LogInterceptor]
> TransactionRolledbackLocalException, causedBy:
> javax.ejb.EJBException: Reentrant method call detected: Platform [.10001.]
> at
>
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt
> erceptor.java:73)
> at
>
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
> ptor.java:174)
> at
>
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
> a:89)
> at
>
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce
> ptor.java:53)
> at
>
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
> .java:84)
> at
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
> java:273)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
> at
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
> 7)
> at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
> at
>
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
> rInterceptor.java:122)
> at
> org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
> at org.jboss.ejb.Container.invoke(Container.java:674)
> at
>
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFacto
> ry.java:353)
> at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
> at $Proxy355.getPlatformValue(Unknown Source)
> at
>
net.covalent.spider.appdef.server.session.AgentManagerEJBImpl.getAgent(Agent
> ManagerEJBImpl.java:379)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> 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:629)
> at
>
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
> edConnectionInterceptor.java:186)
> at
>
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
> ssionInstanceInterceptor.java:72)
> at
>
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
> .java:84)
> at
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
> java:243)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
> at
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
> 7)
> at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
> at
>
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
> rInterceptor.java:122)
> at
>
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta
> iner.java

Re: [JBoss-user] Reentrancy Issues w/ 3.2.1 + Optimistic Locking

2003-07-09 Thread Simone Milani
Hi,

Make sure that you configure your container like this:

  
 Optimistic CMP 2.x EntityBean

org.jboss.ejb.plugins.lock.JDBCOptimisticLock
 true
  

Hope it helps

Simone
- Original Message - 
From: "Javier Soltero" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 1:31 AM
Subject: [JBoss-user] Reentrancy Issues w/ 3.2.1 + Optimistic Locking


Hi,

We're in the process of migrating an application from 3.0.6 to 3.2.1. Our
main interest was to use Optimistic Locking for our many Entity Beans. We
have the application running, using the version strategy for OL, and during
most calls to our backend (which is composed of session façade beans and
entity beans), we get errors such as the one below indicating that a
reentrant method call was detected. All the api's in our session beans have
tx required, and we're using read-only method directives in the entity layer
for every non-write method.

Has anyone else seen problems like these? This does not occur with 3.0.6 +
PessimisticLocking


Oh, and we're using commit-option A.


Any help will be greatly appreciated.

Thanks,

-javier



2003-07-08 15:36:02,881 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException, causedBy:
javax.ejb.EJBException: Reentrant method call detected: Platform [.10001.]
at
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt
erceptor.java:73)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:174)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
a:89)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce
ptor.java:53)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:273)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
7)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
rInterceptor.java:122)
at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
at org.jboss.ejb.Container.invoke(Container.java:674)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFacto
ry.java:353)
at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
at $Proxy355.getPlatformValue(Unknown Source)
at
net.covalent.spider.appdef.server.session.AgentManagerEJBImpl.getAgent(Agent
ManagerEJBImpl.java:379)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
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:629)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionInterceptor.java:186)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:72)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:243)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
7)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
rInterceptor.java:122)
at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta
iner.java:322)
at org.jboss.ejb.Container.invoke(Container.java:674)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFacto
ry.java:353)
at
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionPro
xy.java:83)
at $Proxy346.getAgent(Unknown Source)
at
net.covalent.spider.measurement.server.session.SessionEJB.getAgentConnection
(SessionEJB.java:297)
at
net.covalent.spider.measurement.server.session.MeasurementProcessorEJBImpl.s
cheduleRawMeasurements(MeasurementProcessorEJBImpl.java:309)
at
net.covalent.spider.measurement.server.session.MeasurementProcessorEJBImpl.s
chedule(MeasurementProcessorEJBImpl.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.ja

Re: [JBoss-user] Renaming a cluster partition

2003-07-04 Thread Simone Milani
Hi,

> Thanks!  I guess is more efficient to change the Multicast adress,
> right?  Is a problem to change both?
I take is not a problem
> And last issue: I will need to change the autodiscoveryaddress as well:  I
> tried to use from my client the -Djnp.discoveryGroup property to match the
> changed value in the cluster_service.xml
> 230.0.5.4
> but it was not working.
I was wrong doing the -D option, it must be set in the properties for the
JNDI context.

Thanks again

Simone


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Renaming a cluster partition

2003-07-03 Thread Simone Milani
Hi Sacha,

Thanks!  I guess is more efficient to change the Multicast adress,
right?  Is a problem to change both?
And last issue: I will need to change the autodiscoveryaddress as well:  I
tried to use from my client the -Djnp.discoveryGroup property to match the
changed value in the cluster_service.xml
230.0.5.4
but it was not working.

Thank you!

Simone
- Original Message - 
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 2:05 PM
Subject: RE: [JBoss-user] Renaming a cluster partition


> Change it everywhere OR simply change the multicast address BUT NOT the
> partition name.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Simone Milani
> > Sent: jeudi, 3. juillet 2003 14:33
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] Renaming a cluster partition
> >
> >
> > Hi,
> >
> > I know this subject has been discussed prevously many
> > times, apologies
> > but I would appreciate a clarification.
> > I need to change the name of the cluster partition for a server in all
> > configuration.  My question is, do I need to replace globally all the
> > occurrence of the word DefaultPartion with MyPartitionName or
> > is enough to
> > change the cluster-service.xml:
> >   
> >   
> >   
> > 
> >>  name="jboss:service=DefaultPartition">
> >
> > 
> > MyPartitionName
> > and so on for all the attribute with name="PartitionName"
> >
> >
> > Thanks!!!
> >
> > Simone
> >
> >
> > ---
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06
> > 1203_01/01
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Renaming a cluster partition

2003-07-03 Thread Simone Milani
Hi,

I know this subject has been discussed prevously many times, apologies
but I would appreciate a clarification.
I need to change the name of the cluster partition for a server in all
configuration.  My question is, do I need to replace globally all the
occurrence of the word DefaultPartion with MyPartitionName or is enough to
change the cluster-service.xml:
  
  
  

  


MyPartitionName
and so on for all the attribute with name="PartitionName"


Thanks!!!

Simone


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Netboot

2003-06-27 Thread Simone Milani
Hi Scott,

Possibly would be very good to have a build command that does that plus
precompiles the JSPs.
Thanks!

Simone
- Original Message - 
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 26, 2003 5:15 PM
Subject: Re: [JBoss-user] Netboot


> Yes that is currently required, and no such a configuration does not
> exist. This could be handled in the netboot server via filter that
> compressed any unpackaged deployments automatically.
>
> -- 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
>
> Simone Milani wrote:
>
> > Hi,
> >
> > I finally managed to have netboot working for 3.2.1.  In the process
I
> > had to compress everything that is deployed as exploded normally.  Am I
> > right?  Is it there a skeleton already built for this?
> >
> > Thanks!
> >
> >
> > Simone
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Netboot

2003-06-26 Thread Simone Milani
Hi,

I finally managed to have netboot working for 3.2.1.  In the process I
had to compress everything that is deployed as exploded normally.  Am I
right?  Is it there a skeleton already built for this?

Thanks!


Simone


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EJBQL >= for dates

2003-06-25 Thread Simone Milani
Thanks,

I guess another option would be to use JBoss-QL.  Am I correct?

Thanks

Simone
- Original Message - 
From: "Ingo Bruell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:08 AM
Subject: AW: [JBoss-user] EJBQL >= for dates


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi,
>
> you can not use '>=' or '<=' with attributes of type date only '=', '<',
'>'
> and
> '<>' are allowed like the message said. If you need such behavior, you
could
> combine them with an 'or' or 'and' operator.
>
> > I am trying to use >= and <= in my EJB-QL and I get the following
error:
> > org.jboss.deployment.DeploymentException: Error compiling EJB-QL
statement
> > 'SELECT OBJECT(o) FROM MDSKeyVector o WHERE o.className = ?1
> >  AND o.currency = ?2 AND o.instance = ?3 AND o.process = ?4 AND
o.location =
> > ?5 AND o.businessArea = ?6 AND o.name = ?7 AND o.asOfDate
> > >= ?8 AND o.asOfDate <= ?9'; - nested throwable:
> > (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered ">=" at
line 1,
> > column 19
> > 5.
> > Was expecting one of:
> > ">" ...
> > "<" ...
> > "=" ...
> > "<>" ...
> > )
> >
> > Is it not leagl EJB-QL?  Also note that the above works with just < and
>
>
>
> best regards
>
> Ingo Bruell
>
> - - - ---
> <[EMAIL PROTECTED]>
> 
> Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E
E5FC
> GermanyPGP-Public-Key available at pgpkeys.mit.edu
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 6.5.8 for non-commercial use 
>
> iQA/AwUBPvlmbI/nxkgWnuX8EQLWNACbBcdIbEFtnuotkm0H43NyfgLK2wAAoPjJ
> Nui6g8t+gdvS1cnYC6kCNBa5
> =yI/E
> -END PGP SIGNATURE-
>
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJBQL >= for dates

2003-06-25 Thread Simone Milani
Hi,

I am trying to use >= and <= in my EJB-QL and I get the following error:
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement
'SELECT OBJECT(o) FROM MDSKeyVector o WHERE o.className = ?1
 AND o.currency = ?2 AND o.instance = ?3 AND o.process = ?4 AND o.location =
?5 AND o.businessArea = ?6 AND o.name = ?7 AND o.asOfDate
>= ?8 AND o.asOfDate <= ?9'; - nested throwable:
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered ">=" at line 1,
column 19
5.
Was expecting one of:
">" ...
"<" ...
"=" ...
"<>" ...
)

Is it not leagl EJB-QL?  Also note that the above works with just < and >

Thanks

Simone


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop

2003-06-25 Thread Simone Milani
Hi,

I add a look at the sources for 3.2.1 and looks like there is no tag for
that.

Simone
- Original Message - 
From: "Neal Sanche" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 12:53 AM
Subject: Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop


I am also very interested in testing this functionality. I am
currently writing an application for PocketPC using the new .NET
Compact Framework, and nothing I have tried so far causes basic
authentication to kick in.

Is there an XDoclet module that includes the new
validateUnauthenticatedCalls? What version of JBoss is this feature
included in? 3.2.1?

Thanks,

-Neal

On June 11, 2003 06:37 am, Simone Milani wrote:
> Thanks for your reply.  I added the parameter and the first time I
> make the request I get the Authentication error and after that I
> get an Authorization error.  Still looks like M$ is not sending
> anything after getting the 500 error.  Did you managed to get it
> working?
> Is it possible that to trigger the sending of data M$ expect the
> 500 when getting the wsdl on the init call and not on the actual
> web service call?
>
> Thanks
>
> Simone
> - Original Message -
> From: "Jung , Dr. Christoph" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 10, 2003 4:43 PM
> Subject: AW: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
>
>
> There was a bug-report on that issue stating that M$ would not send
> authentication data
> until faced with a server error (50x or something similar, I
> think).
>
> The JBoss Authentication Handler has been extended with the
> parameter "validateUnauthenticatedCalls"
>
> 
>type="java:org.jboss.net.axis.server.JBossAuthenticationHandler">
>  value="java:/jaas/other"/>
>  name="validateUnauthenticatedCalls" value="false"/>
> 
>
> This will block any unauthenticated calls from trying to get routed
> (this is what M$ could first try to do before going the "right"
> way).
>
> Best,
> CGJ
>
> > -Ursprüngliche Nachricht-
> > Von: Simone Milani [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 10. Juni 2003 16:29
> > An: [EMAIL PROTECTED]
> > Betreff: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
> >
> >
> > Hi,
> >
> > I am happily using the M$ Soap 3.0 toolkit as a client
> > for JBoss.net.  I am now having trouble having the Basic
> > Authentication to work.  Has anyone managed to use it?
> >
> > Thanks
> >
> >
> > Simone
> >
> >
> >
> > ---
> > This SF.net email is sponsored by:  Etnus, makers of
> > TotalView, The best thread debugger on the planet. Designed
> > with thread debugging features you've never dreamed of, try
> > TotalView 6 free at www.etnus.com.
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/j> boss-user
>
> ###
>
> This message has been scanned by F-Secure Anti-Virus for Microsoft
> Exchange. For more information, connect to http://www.F-Secure.com/
>
>
> ---
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The
> best thread debugger on the planet. Designed with thread debugging
> features you've never dreamed of, try TotalView 6 free at
> 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
> best thread debugger on the planet. Designed with thread debugging
> features you've never dreamed of, try TotalView 6 free at
> www.etnus.com. ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop

2003-06-25 Thread Simone Milani
I add a look at the sources for 3.2.1 and looks like there is no Xdoclet tag
for that.

Simone
- Original Message - 
From: "Neal Sanche" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 12:53 AM
Subject: Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop


I am also very interested in testing this functionality. I am
currently writing an application for PocketPC using the new .NET
Compact Framework, and nothing I have tried so far causes basic
authentication to kick in.

Is there an XDoclet module that includes the new
validateUnauthenticatedCalls? What version of JBoss is this feature
included in? 3.2.1?

Thanks,

-Neal

On June 11, 2003 06:37 am, Simone Milani wrote:
> Thanks for your reply.  I added the parameter and the first time I
> make the request I get the Authentication error and after that I
> get an Authorization error.  Still looks like M$ is not sending
> anything after getting the 500 error.  Did you managed to get it
> working?
> Is it possible that to trigger the sending of data M$ expect the
> 500 when getting the wsdl on the init call and not on the actual
> web service call?
>
> Thanks
>
> Simone
> - Original Message -
> From: "Jung , Dr. Christoph" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 10, 2003 4:43 PM
> Subject: AW: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
>
>
> There was a bug-report on that issue stating that M$ would not send
> authentication data
> until faced with a server error (50x or something similar, I
> think).
>
> The JBoss Authentication Handler has been extended with the
> parameter "validateUnauthenticatedCalls"
>
> 
>type="java:org.jboss.net.axis.server.JBossAuthenticationHandler">
>  value="java:/jaas/other"/>
>  name="validateUnauthenticatedCalls" value="false"/>
> 
>
> This will block any unauthenticated calls from trying to get routed
> (this is what M$ could first try to do before going the "right"
> way).
>
> Best,
> CGJ
>
> > -Ursprüngliche Nachricht-
> > Von: Simone Milani [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 10. Juni 2003 16:29
> > An: [EMAIL PROTECTED]
> > Betreff: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
> >
> >
> > Hi,
> >
> > I am happily using the M$ Soap 3.0 toolkit as a client
> > for JBoss.net.  I am now having trouble having the Basic
> > Authentication to work.  Has anyone managed to use it?
> >
> > Thanks
> >
> >
> > Simone
> >
> >
> >
> > ---
> > This SF.net email is sponsored by:  Etnus, makers of
> > TotalView, The best thread debugger on the planet. Designed
> > with thread debugging features you've never dreamed of, try
> > TotalView 6 free at www.etnus.com.
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/j> boss-user
>
> ###
>
> This message has been scanned by F-Secure Anti-Virus for Microsoft
> Exchange. For more information, connect to http://www.F-Secure.com/
>
>
> ---
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The
> best thread debugger on the planet. Designed with thread debugging
> features you've never dreamed of, try TotalView 6 free at
> 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
> best thread debugger on the planet. Designed with thread debugging
> features you've never dreamed of, try TotalView 6 free at
> www.etnus.com. ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMX notifications

2003-06-24 Thread Simone Milani
Apologies,
Please ignore my last message, I did not read the last reply from Scott.
That solved my problem.

Thank you!

Simone
- Original Message - 
From: "Simone Milani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 6:12 PM
Subject: Re: [JBoss-user] JMX notifications


> Hi Adrian,
>
> The  RMINotificationListener is on package org.jboss.jmx.adaptor.rmi
and
> indeed is serializing the object to the server (anyway good to know that
can
> be used :) ).  I was actually
> I just wonder now what would should go in the placeholder of the following
> code so that the notification gets back to the client.
>
>RMIAdaptor server = (RMIAdaptor)
> ctx.lookup("jmx/rmi/RMIAdaptor");
>ObjectName myObjectName = new
> ObjectName("mercury.farming:service=FarmHandPoolService");
>server.addNotificationListener (myObjectName,
>
>null,
>);
> I could not figure it out from that example.
> Thank you!!!
>
> Simone
> - Original Message - 
> From: "Adrian Brock" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 24, 2003 1:19 PM
> Subject: RE: [JBoss-user] JMX notifications
>
>
> > What is RMINotificationListener?
> >
> > It looks like you've just serialized your notification listener
> > and therefore it is running on the server.
> >
> > JBoss includes a connector and some support mbeans that
> > allow notifications to be returned to the client
> > using RMI or JMS or polling.
> > You register your listener with the connector which
> > will proxy requests to the remote mbeanserver.
> >
> > Some of this is documented in the (out-of-date) link I posted before
> > http://jboss.sourceforge.net/doc-24/ch11s39.html
> >
> > Regards,
> > Adrian
> >
> > xxxxxxxx
> > Adrian Brock
> > Director of Support
> > Back Office
> > JBoss Group, LLC
> > 
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of
> > > Simone Milani
> > > Sent: 24 June 2003 12:07
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [JBoss-user] JMX notifications
> > >
> > >
> > > Hi Adrian,
> > >
> > > Thank you.  I got to the point where my notification are
> > > all handled on
> > > the server not on the client.
> > > Here is what I have done:
> > >
> > > public class JMXClient
> > >  implements RMINotificationListener, Serializable
> > > {
> > >  .
> > >
> > >  public static void main(String[] args)
> > >  {
> > >
> > >   try
> > >   {
> > >
> > >
> > >RMIAdaptor server = (RMIAdaptor)
> > > ctx.lookup("jmx/rmi/RMIAdaptor");
> > >
> > > //Server will print "handling here", why?
> > > ObjectName myObjectName = new
> > > ObjectName("mercury.farming:service=FarmHandPoolService");
> > >server.addNotificationListener (myObjectName,
> > >new JMXClient(),
> > >null,
> > >null);
> > >
> > >Object[] params = new Object[] {};
> > >
> > >String[] signature = {};
> > >
> > >Thread.currentThread().sleep(5 * 1000);
> > >
> > > //This causes one notification to be sent and server prints
> > > "Handling here"
> > >Object result =  server.invoke(myObjectName, "testNotification",
> > > params, signature);
> > >System.out.println("Result: " + result);
> > >
> > >Thread.currentThread().sleep(30 * 1000);
> > >   }
> > >   catch (Exception e)
> > >   {
> > >e.printStackTrace();
> > >   }
> > >  }
> > >
> > >  public void handleNotification(Notification notification,
> > > Object handback)
> > >  {
> > >   System.out.println("Handling here");
> > >  }
> > > }
> > >
> > > Thanks!
> > >
> > > Simone
> >
> >
> >
> >
> >
> > ---
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% M

Re: [JBoss-user] JMX notifications

2003-06-24 Thread Simone Milani
Hi Adrian,

The  RMINotificationListener is on package org.jboss.jmx.adaptor.rmi and
indeed is serializing the object to the server (anyway good to know that can
be used :) ).  I was actually
I just wonder now what would should go in the placeholder of the following
code so that the notification gets back to the client.

   RMIAdaptor server = (RMIAdaptor)
ctx.lookup("jmx/rmi/RMIAdaptor");
   ObjectName myObjectName = new
ObjectName("mercury.farming:service=FarmHandPoolService");
   server.addNotificationListener (myObjectName,
   
   null,
   );
I could not figure it out from that example.
Thank you!!!

Simone
- Original Message - 
From: "Adrian Brock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 1:19 PM
Subject: RE: [JBoss-user] JMX notifications


> What is RMINotificationListener?
>
> It looks like you've just serialized your notification listener
> and therefore it is running on the server.
>
> JBoss includes a connector and some support mbeans that
> allow notifications to be returned to the client
> using RMI or JMS or polling.
> You register your listener with the connector which
> will proxy requests to the remote mbeanserver.
>
> Some of this is documented in the (out-of-date) link I posted before
> http://jboss.sourceforge.net/doc-24/ch11s39.html
>
> Regards,
> Adrian
>
> 
> Adrian Brock
> Director of Support
> Back Office
> JBoss Group, LLC
> xxxx
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Simone Milani
> > Sent: 24 June 2003 12:07
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] JMX notifications
> >
> >
> > Hi Adrian,
> >
> > Thank you.  I got to the point where my notification are
> > all handled on
> > the server not on the client.
> > Here is what I have done:
> >
> > public class JMXClient
> >  implements RMINotificationListener, Serializable
> > {
> >  .
> >
> >  public static void main(String[] args)
> >  {
> >
> >   try
> >   {
> >
> >
> >RMIAdaptor server = (RMIAdaptor)
> > ctx.lookup("jmx/rmi/RMIAdaptor");
> >
> > //Server will print "handling here", why?
> > ObjectName myObjectName = new
> > ObjectName("mercury.farming:service=FarmHandPoolService");
> >server.addNotificationListener (myObjectName,
> >new JMXClient(),
> >null,
> >null);
> >
> >Object[] params = new Object[] {};
> >
> >String[] signature = {};
> >
> >Thread.currentThread().sleep(5 * 1000);
> >
> > //This causes one notification to be sent and server prints
> > "Handling here"
> >Object result =  server.invoke(myObjectName, "testNotification",
> > params, signature);
> >System.out.println("Result: " + result);
> >
> >Thread.currentThread().sleep(30 * 1000);
> >   }
> >   catch (Exception e)
> >   {
> >e.printStackTrace();
> >   }
> >  }
> >
> >  public void handleNotification(Notification notification,
> > Object handback)
> >  {
> >   System.out.println("Handling here");
> >  }
> > }
> >
> > Thanks!
> >
> > Simone
>
>
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMX notifications

2003-06-24 Thread Simone Milani
Hi Adrian,

Thank you.  I got to the point where my notification are all handled on
the server not on the client.
Here is what I have done:

public class JMXClient
 implements RMINotificationListener, Serializable
{
 .

 public static void main(String[] args)
 {

  try
  {


   RMIAdaptor server = (RMIAdaptor)
ctx.lookup("jmx/rmi/RMIAdaptor");

//Server will print "handling here", why?
ObjectName myObjectName = new
ObjectName("mercury.farming:service=FarmHandPoolService");
   server.addNotificationListener (myObjectName,
   new JMXClient(),
   null,
   null);

   Object[] params = new Object[] {};

   String[] signature = {};

   Thread.currentThread().sleep(5 * 1000);

//This causes one notification to be sent and server prints "Handling here"
   Object result =  server.invoke(myObjectName, "testNotification",
params, signature);
   System.out.println("Result: " + result);

   Thread.currentThread().sleep(30 * 1000);
  }
  catch (Exception e)
  {
   e.printStackTrace();
  }
 }

 public void handleNotification(Notification notification, Object handback)
 {
  System.out.println("Handling here");
 }
}

Thanks!

Simone
- Original Message - 
From: "Adrian Brock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 10:48 AM
Subject: RE: [JBoss-user] JMX notifications


> What does "without luck" mean?
>
> Have you seen this (it applies to 2.4 but you
> be able to make it work).
> http://jboss.sourceforge.net/doc-24/ch11s39.html
>
> Regards,
> Adrian
>
> 
> Adrian Brock
> Director of Support
> Back Office
> JBoss Group, LLC
> xxxx
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Simone Milani
> > Sent: 24 June 2003 09:36
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] JMX notifications
> >
> >
> > Thanks!
> >
> > One more question if I can.  I wonder if is possible to have
> > notifications
> > sent to an external JVM.  I tried using the
> > RMINotificationListener but
> > witouth luck.
> >
> > Thanks
> >
> > Simone
> > - Original Message - 
> > From: "Adrian Brock" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 23, 2003 6:35 PM
> > Subject: RE: [JBoss-user] JMX notifications
> >
> >
> > >
> > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jmx/src/m
> > ain/test/c
> > > ompliance/server/MBeanServerTEST.java?annotate=1.14.4.1
> > >
> > > Any of the testAddNotificationListener* tests
> > >
> > > Regards,
> > > Adrian
> > >
> > > 
> > > Adrian Brock
> > > Director of Support
> > > Back Office
> > > JBoss Group, LLC
> > > 
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] On Behalf Of
> > > > Simone Milani
> > > > Sent: 23 June 2003 17:42
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [JBoss-user] JMX notifications
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Could please someone point me at some examples of
> > > > registering for JMX
> > > > notifications?
> > > >
> > > > Thanks!!!
> > > >
> > > > Simone
> > > >
> > > >
> > > > ---
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU
> > > > Hosting Partner.
> > > > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission!
> > > > INetU Dedicated Managed Hosting
> > http://www.inetu.net/partner/index.php
> > > >
> > ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > >
> > >
> > >
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU
> > Hosting Partner.
> > > Refer Dedicated Serve

Re: [JBoss-user] JMX notifications

2003-06-24 Thread Simone Milani
Thanks!

One more question if I can.  I wonder if is possible to have notifications
sent to an external JVM.  I tried using the RMINotificationListener but
witouth luck.

Thanks

Simone
- Original Message - 
From: "Adrian Brock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 6:35 PM
Subject: RE: [JBoss-user] JMX notifications


> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jmx/src/main/test/c
> ompliance/server/MBeanServerTEST.java?annotate=1.14.4.1
>
> Any of the testAddNotificationListener* tests
>
> Regards,
> Adrian
>
> 
> Adrian Brock
> Director of Support
> Back Office
> JBoss Group, LLC
> 
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Simone Milani
> > Sent: 23 June 2003 17:42
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] JMX notifications
> >
> >
> > Hi,
> >
> > Could please someone point me at some examples of
> > registering for JMX
> > notifications?
> >
> > Thanks!!!
> >
> > Simone
> >
> >
> > ---
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU
> > Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JMX notifications

2003-06-23 Thread Simone Milani
Hi,

Could please someone point me at some examples of registering for JMX
notifications?

Thanks!!!

Simone


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: Re[2]: [JBoss-user] Random NullPointerException on finders

2003-06-19 Thread Simone Milani
Hi,

I never had the error on first deploy I always got the error after 5 or
6 redeployment and after that at the next redeployment got an out of memory
error.

Simone
- Original Message - 
From: "Davide Pozza" <[EMAIL PROTECTED]>
To: "Jboss" <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 2:52 PM
Subject: Re: Re[2]: [JBoss-user] Random NullPointerException on finders


On my application, last time, it has happened just some minutes after a
startup (first deploy)

Bye


> Hello, Simone.
>
> Thursday, June 19, 2003, 3:39:16 PM, Simone Milani wrote:
>
> SM> Hi Davide,
>
> SM> I posted a bug on the issue, but still got no reply yet.
> SM>
http://sourceforge.net/tracker/index.php?func=detail&aid=738166&group_id=22866&atid=376685
>
> The stacktraces are just different I wouldn't be sure they have the
> same cause.
>
> SM>  According to my investigation the bug manifest itself after having
done
> SM> some redeployments.  I believe it is due to a memory leak in the
> SM> redeployment process.
>
> So, you don't have the problem at first deploy? It is really important
> and could help in fixing it. Could you please check it?
>
> Thank you,
> alex
>
>
> SM> Regards
>
> SM> Simone
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Random NullPointerException on finders

2003-06-19 Thread Simone Milani
Hi Davide,

I posted a bug on the issue, but still got no reply yet.
http://sourceforge.net/tracker/index.php?func=detail&aid=738166&group_id=22866&atid=376685

 According to my investigation the bug manifest itself after having done
some redeployments.  I believe it is due to a memory leak in the
redeployment process.


Regards

Simone




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Who is using JBoss in production?

2003-06-19 Thread Simone Milani
Obviuosly you forgot to mention the name of the company :)
A while ago I sent an email asking who was using JBoss in the financial
arena and no one replied.

Simone
- Original Message - 
From: "Magesh Prabhu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 9:58 AM
Subject: Re: [JBoss-user] Who is using JBoss in production?


I've the experience of working in a large scale intranet system and a
middleware system both running in JBoss. They both are functioning smoothly.
The Intranet system is for a huge Financial Institution and is being used
extensively by minumum of 100 users concurrently. JBoss is just simply
superb.

On 6/17/03 4:57 PM, Giorgio Ponza <[EMAIL PROTECTED]> wrote:
>I Use JBoss 2.4.7 in 3 machines, and 10 sites
>Never had problems, but are small traffic ones ;)
>Giorgio
>
>> Hi all,
>> I was wondering? How many of you are actually running production
>systems
>> on JBoss?
>>
>> Grtz,
>
>
>
>---
>This SF.Net email is sponsored by: INetU
>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



**
This email and its attachments are intended for the above
named only and may be confidential.  If they have come to
you in error, you must take no action based on them, nor
must you copy or show them to anyone; please reply to this
email and highlight the error.
Security Warning: Please note that this email has been
created in the knowledge that the internet email is not a
100% secure communications medium.  We advise that you
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this
email and attachments are free from any virus, we advise
that in keeping with good computing practice the recipient
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Connecting to remote MBeanServer

2003-06-16 Thread Simone Milani
Hi,

Please could you point me at an example of using the MBeanServer
remotely using the EJB or RMI adaptor?

Thanks

Simone


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] MBean parameters

2003-06-13 Thread Simone Milani
Great, thank you!  Is there any docs of any 'wonder' that can be done with
it?

Thanks

Simone
- Original Message - 
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 6:35 PM
Subject: Re: [JBoss-user] MBean parameters


> You need a property editor for a String[], which we have by default.
Simply have the
> Channel attribute be of type String[] and use value that is a comma
seperated list of
> the array elements:
> ChannelA,ChannelB
>
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> xxxxxxxx
>
> - Original Message - 
> From: "Simone Milani" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 12, 2003 6:29 AM
> Subject: [JBoss-user] MBean parameters
>
>
> > Hi,
> >
> > Is it possible to have in 3.2.1 an MBean with a parameter with
multiple
> > values, something like:
> >
> >  > name="jboss.dbus:service=DbusBridgeService">
> >   ChannelA
> >   ChannelB
> >  
> >
> > And have Channel mapped to a String[]?
> >
> > Thanks
> >
> > Simone
> >
>
>
>
> ---
> This SF.NET email is sponsored by: eBay
> Great deals on office technology -- on eBay now! Click here:
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] MBean parameters

2003-06-12 Thread Simone Milani
Hi,

Is it possible to have in 3.2.1 an MBean with a parameter with multiple
values, something like:


  ChannelA
  ChannelB
 

And have Channel mapped to a String[]?

Thanks

Simone


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop

2003-06-11 Thread Simone Milani
Thanks for your reply.  I added the parameter and the first time I make the
request I get the Authentication error and after that I get an Authorization
error.  Still looks like M$ is not sending anything after getting the 500
error.  Did you managed to get it working?
Is it possible that to trigger the sending of data M$ expect the 500 when
getting the wsdl on the init call and not on the actual web service call?

Thanks

Simone
- Original Message - 
From: "Jung , Dr. Christoph" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 4:43 PM
Subject: AW: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop


There was a bug-report on that issue stating that M$ would not send
authentication data
until faced with a server error (50x or something similar, I think).

The JBoss Authentication Handler has been extended with the parameter
"validateUnauthenticatedCalls"


  




This will block any unauthenticated calls from trying to get routed (this is
what M$ could first try to do before going the "right" way).

Best,
CGJ



> -----Ursprüngliche Nachricht-
> Von: Simone Milani [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 10. Juni 2003 16:29
> An: [EMAIL PROTECTED]
> Betreff: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
>
>
> Hi,
>
> I am happily using the M$ Soap 3.0 toolkit as a client
> for JBoss.net.  I am now having trouble having the Basic
> Authentication to work.  Has anyone managed to use it?
>
> Thanks
>
>
> Simone
>
>
>
> ---
> This SF.net email is sponsored by:  Etnus, makers of
> TotalView, The best thread debugger on the planet. Designed
> with thread debugging features you've never dreamed of, try
> TotalView 6 free at www.etnus.com.
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/j> boss-user
>
###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at 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 best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop

2003-06-10 Thread Simone Milani
Hi,

I am happily using the M$ Soap 3.0 toolkit as a client for JBoss.net.  I
am now having trouble having the Basic Authentication to work.  Has anyone
managed to use it?

Thanks


Simone



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: AW: [JBoss-user] Confused about Web Service Security...

2003-06-09 Thread Simone Milani
Hi,

I managed to do it, thank you anyway :)


Simone
>
> Hi,
>
> I am trying to get basic auth to work.  I am at the point where got my
> Java cleint passing the Authorization: Basic details and JBoss throwing
back
> an error:
> AxisFault
>  faultCode: {http://xml.apache.org/axis/}Server.userException
>  faultString: javax.ejb.EJBException: checkSecurityAssociation;
> CausedByException is:
> Authentication exception, principal=null faultActor: null
>  faultDetail:
> stackTrace: javax.ejb.EJBException: checkSecurityAssociation;
> CausedByException is:
> Authentication exception, principal=null
>
> I have my deployment descriptor generated by XDoclet and use a custom jaas
> module which I am trying to use both for Web Services and EJB.
> I changed the jboss-net.sar\jboss-net.war\WEB-INF\jboss-web.xml and the
> jboss-net.sar\axis-config.xml to use my module. (What is the role of each
> one?)
>
> The deployment file is:
>
> 
>
> 
> 
> 
> 
>
>  name="Test"
> xmlns="http://xml.apache.org/axis/wsdd/";
> targetNamespace="http://net.jboss.org/Test";
> xmlns:test="http://net.jboss.org/Test";
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>
> 
>
>   
>  value="org.jboss.net.axis.server.EJBProvider"/>
>  value="EJB/Session/TestEJB/Session/Local/Test"/>
> 
> 
>type="java:org.jboss.net.axis.server.TransactionRequestHandler"/>
> 
> 
>type="java:org.jboss.net.axis.server.SerialisationResponseHandler"/>
>type="java:org.jboss.net.axis.server.TransactionResponseHandler"/>
> 
>   
>
> 
>
> 
>
> 
>
> Thank you!!!
>
> Simone
>
>
>
>
> ---
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at 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 best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: AW: [JBoss-user] Confused about Web Service Security...

2003-06-09 Thread Simone Milani
Hi,

I am trying to get basic auth to work.  I am at the point where got my
Java cleint passing the Authorization: Basic details and JBoss throwing back
an error:
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: javax.ejb.EJBException: checkSecurityAssociation;
CausedByException is:
Authentication exception, principal=null faultActor: null
 faultDetail:
stackTrace: javax.ejb.EJBException: checkSecurityAssociation;
CausedByException is:
Authentication exception, principal=null

I have my deployment descriptor generated by XDoclet and use a custom jaas
module which I am trying to use both for Web Services and EJB.
I changed the jboss-net.sar\jboss-net.war\WEB-INF\jboss-web.xml and the
jboss-net.sar\axis-config.xml to use my module. (What is the role of each
one?)

The deployment file is:








http://xml.apache.org/axis/wsdd/";
targetNamespace="http://net.jboss.org/Test";
xmlns:test="http://net.jboss.org/Test";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>



  




  


  
  

  







Thank you!!!

Simone




---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Error deploying sar on 3.2.2Beta

2003-06-03 Thread Simone Milani
Following some investigation the error only happens if I have deployed
jboss-net.sar and the deployemnts of all .war files seems to be failing all
the time no matter if stand alone or inside an ear.  Anyone any idea?

Thank you!!

Simone
- Original Message -
From: "Simone Milani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 02, 2003 5:43 PM
Subject: [JBoss-user] Error deploying sar on 3.2.2Beta


> Hi,
>
> I am testing my sar archive that works on 3.2.1 on 3.2.2Beta snapshot
> dated 02-Jun-2003 02:13 on WinNT.  The sar contains an ear with some ejbs
> and one war.  Got this error, wonder if anyone could help. (Have 7 G free
> space on disk)
>
> Thanks!!!  Simone
>
> 17:34:28,104 INFO  [EARDeployer] Init J2EE application:
> file:/E:/jboss-3.2-snaps
>
hot/tomcat41/output/jboss-3.2.2beta/server/default/tmp/deploy/server/default
> /dep
> loy/9mdsboss.sar/53.9mdsboss.sar-contents/mdsboss.ear
> 17:34:28,573 INFO  [XSLSubDeployer] transformed into doc: [#document:
null]
> 17:34:28,604 INFO  [XSLSubDeployer] transformed into doc: [#document:
null]
> 17:34:30,447 ERROR [EmbeddedCatalinaService41] Problem in init
> org.jboss.deployment.DeploymentException: Was unable to move war to:
> E:\jboss-3.
>
2-snapshot\tomcat41\output\jboss-3.2.2beta\server\default\tmp\deploy\server\
> defa
>
ult\deploy\9mdsboss.sar\53.9mdsboss.sar-contents\mdsboss.ear-contents\test.w
> ar.t
> mp
> at
> org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:268
> )
> at org.jboss.deployment.MainDeployer.init(MainDeployer.java:694)
> at org.jboss.deployment.MainDeployer.init(MainDeployer.java:714)
> at org.jboss.deployment.MainDeployer.init(MainDeployer.java:714)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
> at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
> nDispatcher.java:284)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy7.deploy(Unknown Source)
> at
> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
> tScanner.java:302)
> at
> org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
> canner.java:476)
> at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> doScan(AbstractDeploymentScanner.java:200)
> at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> loop(AbstractDeploymentScanner.java:211)
> at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> run(AbstractDeploymentScanner.java:190)
> 17:34:30,572 WARN  [NestedThrowable] Duplicate throwable nesting of same
> base ty
> pe: class org.jboss.deployment.DeploymentException is assignable from:
class
> org
> .jboss.deployment.DeploymentException
> 17:34:30,588 WARN  [NestedThrowable] Duplicate throwable nesting of same
> base ty
> pe: class org.jboss.deployment.DeploymentException is assignable from:
class
> org
> .jboss.deployment.DeploymentException
> 17:34:30,604 WARN  [NestedThrowable] Duplicate throwable nesting of same
> base ty
> pe: class org.jboss.deployment.DeploymentException is assignable from:
class
> org
> .jboss.deployment.DeploymentException
> 17:34:30,619 WARN  [NestedThrowable] Duplicate throwable nesting of same
> base ty
> pe: class org.jboss.deployment.DeploymentException is assignable from:
class
> org
> .jboss.deployment.DeploymentException
> 17:34:30,619 ERROR [URLDeploymentScanner] Failed to deploy:
> org.jboss.deployment
> [EMAIL PROTECTED]
> url=file:/E:/jboss-3.2-snaps
> hot/tomcat41/output/jboss-3.2.2beta/server/default/deploy/9mdsboss.sar,
> deployed
> LastModified=0 }
> org.jboss.deployment.DeploymentException: exception in init of
> file:/E:/jboss-3.
>
2-snapshot/tomcat41/output/jboss-3.2.2beta/server/default/deploy/9mdsboss.sa
> r; -
>  nested throwable: (org.jboss.deployment.DeploymentException: exception in
> init
> of
>
file:/E:/jboss-3.2-snapshot/tomcat41/output/jboss-3.2.2beta/server/default/t
> m
>
p/deploy/server/default/deploy/9mdsboss.sar/53.9mdsboss.sar-contents/mdsboss
> .ear
> ; - nested throwable: (org.jboss.deployment.DeploymentException: exception
> in in
> it of
> file:/E:/jboss-3.2-snapshot/tomcat41/out

[JBoss-user] Error deploying sar on 3.2.2Beta

2003-06-03 Thread Simone Milani
Hi,

I am testing my sar archive that works on 3.2.1 on 3.2.2Beta snapshot
dated 02-Jun-2003 02:13 on WinNT.  The sar contains an ear with some ejbs
and one war.  Got this error, wonder if anyone could help. (Have 7 G free
space on disk)

Thanks!!!  Simone

17:34:28,104 INFO  [EARDeployer] Init J2EE application:
file:/E:/jboss-3.2-snaps
hot/tomcat41/output/jboss-3.2.2beta/server/default/tmp/deploy/server/default
/dep
loy/9mdsboss.sar/53.9mdsboss.sar-contents/mdsboss.ear
17:34:28,573 INFO  [XSLSubDeployer] transformed into doc: [#document: null]
17:34:28,604 INFO  [XSLSubDeployer] transformed into doc: [#document: null]
17:34:30,447 ERROR [EmbeddedCatalinaService41] Problem in init
org.jboss.deployment.DeploymentException: Was unable to move war to:
E:\jboss-3.
2-snapshot\tomcat41\output\jboss-3.2.2beta\server\default\tmp\deploy\server\
defa
ult\deploy\9mdsboss.sar\53.9mdsboss.sar-contents\mdsboss.ear-contents\test.w
ar.t
mp
at
org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:268
)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:694)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:714)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:714)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:200)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:211)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:190)
17:34:30,572 WARN  [NestedThrowable] Duplicate throwable nesting of same
base ty
pe: class org.jboss.deployment.DeploymentException is assignable from: class
org
.jboss.deployment.DeploymentException
17:34:30,588 WARN  [NestedThrowable] Duplicate throwable nesting of same
base ty
pe: class org.jboss.deployment.DeploymentException is assignable from: class
org
.jboss.deployment.DeploymentException
17:34:30,604 WARN  [NestedThrowable] Duplicate throwable nesting of same
base ty
pe: class org.jboss.deployment.DeploymentException is assignable from: class
org
.jboss.deployment.DeploymentException
17:34:30,619 WARN  [NestedThrowable] Duplicate throwable nesting of same
base ty
pe: class org.jboss.deployment.DeploymentException is assignable from: class
org
.jboss.deployment.DeploymentException
17:34:30,619 ERROR [URLDeploymentScanner] Failed to deploy:
org.jboss.deployment
[EMAIL PROTECTED]
url=file:/E:/jboss-3.2-snaps
hot/tomcat41/output/jboss-3.2.2beta/server/default/deploy/9mdsboss.sar,
deployed
LastModified=0 }
org.jboss.deployment.DeploymentException: exception in init of
file:/E:/jboss-3.
2-snapshot/tomcat41/output/jboss-3.2.2beta/server/default/deploy/9mdsboss.sa
r; -
 nested throwable: (org.jboss.deployment.DeploymentException: exception in
init
of
file:/E:/jboss-3.2-snapshot/tomcat41/output/jboss-3.2.2beta/server/default/t
m
p/deploy/server/default/deploy/9mdsboss.sar/53.9mdsboss.sar-contents/mdsboss
.ear
; - nested throwable: (org.jboss.deployment.DeploymentException: exception
in in
it of
file:/E:/jboss-3.2-snapshot/tomcat41/output/jboss-3.2.2beta/server/default
/tmp/deploy/server/default/deploy/9mdsboss.sar/53.9mdsboss.sar-contents/mdsb
oss.
ear-contents/test.war; - nested throwable:
(org.jboss.deployment.DeploymentExcep
tion: Was unable to move war to:
E:\jboss-3.2-snapshot\tomcat41\output\jboss-3.2
.2beta\server\default\tmp\deploy\server\default\deploy\9mdsboss.sar\53.9mdsb
oss.
sar-contents\mdsboss.ear-contents\test.war.tmp; - nested throwable:
(org.jboss.d
eployment.DeploymentException: Was unable to move war to:
E:\jboss-3.2-snapshot\
tomcat41\output\jboss-3.2.2beta\server\default\tmp\deploy\server\default\dep
loy\
9mdsboss.sar\53.9mdsboss.sar-contents\mdsboss.ear-contents\test.war.tmp
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:720)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor3

[JBoss-user] Out of memory after some redeployments

2003-05-31 Thread Simone Milani
Hi,

Apologies if I missed some threads and this has been already solved.  I
use 3.2.1 and after some redeployments of my sar I get this error:


16:26:33,633 ERROR [MainDeployer] could not create deployment:
file:/E:/jboss-3.
2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/deploy/9mdsboss.s
ar/7
1.9mdsboss.sar-contents/mdsboss.ear-contents/StaticCreditEJB.jar
java.lang.OutOfMemoryError
16:26:33,633 ERROR [MainDeployer] could not create deployment:
file:/E:/jboss-3.
2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/deploy/9mdsboss.s
ar/7
1.9mdsboss.sar-contents/mdsboss.ear
org.jboss.deployment.DeploymentException: Could not create deployment:
file:/E:/
jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/deploy/9m
dsbo
ss.sar/71.9mdsboss.sar-contents/mdsboss.ear-contents/StaticCreditEJB.jar; -
nest
ed throwable: (java.lang.OutOfMemoryError)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:458)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:200)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:211)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:190)
Caused by: java.lang.OutOfMemoryError
16:26:33,649 ERROR [MainDeployer] could not create deployment:
file:/E:/jboss-3.
2.1_tomcat-4.1.24/server/default/deploy/9mdsboss.sar
org.jboss.deployment.DeploymentException: Could not create deployment:
file:/E:/
jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/deploy/9m
dsbo
ss.sar/71.9mdsboss.sar-contents/mdsboss.ear-contents/StaticCreditEJB.jar; -
nest
ed throwable: (java.lang.OutOfMemoryError)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:458)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:200)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:211)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:190)
Caused by: java.lang.OutOfMemoryError
16:26:33,649 ERROR [URLDeploymentScanner] Failed to deploy:
org.jboss.deployment
[EMAIL PROTECTED]
url=file:/E:/jboss-3.2.1_tom
cat-4.1.24/server/default/deploy/9mdsboss.sar,
deployedLastModified=105430789449
0 }
org.jboss.deployment.DeploymentException: Could not create deployment:
file:/E:/
jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/deploy/9m
dsbo
ss.sar/71.9mdsboss.sar-contents/mdsboss.ear-contents/StaticCreditEJB.jar; -
nest
ed throwable: (java.lang.OutOfMemoryError)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
at org.jboss.de

[JBoss-user] [OT] JBoss success story in banking

2003-05-30 Thread Simone Milani
Hi,

I wonder if anyone got any JBoss success story in the financial /
banking arena.

Regards

Simone


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] How describe dependencies between two ears

2003-04-15 Thread Simone Milani
Title: Message



With ear dependencies I think you are better off 
using the 

org.jboss.deployment.scanner.PrefixDeploymentSorter
In your jboss-service.xml file.
Altough they will all use a different classloader.  If 
you share some libraries you can package all in a sar file:
file.sar
---ear1.ear
---ear2.ear
---commonLib.jar
Simone
 
 
 

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, April 15, 2003 12:47 
  PM
  Subject: [JBoss-user] How describe 
  dependencies between two ears
  
  Can I deploy 
  multiple application ear’s, which depend on one another, into a JBoss Server 
  (jboss-3.2.0RC4_tomcat-4.1.18)?
  Can (must) I 
  use the “Class-Path” manifest attribute in an ear to declare its dependencies 
  in order for the deployer to find the correct sequence in which to deploy the 
  multiple ear’s?
  If yes then 
  probably it will also be possible to declare an ear depended of a jar in the 
  same way?
   
  Thanks for any 
  advice.
   
  Percy 
  Christian
   


Re: [JBoss-user] Optimized CMP loading

2003-04-04 Thread Simone Milani




Hi Dain,

   thanks for your reply, but all my methods are marked as transaction 
required and all that loading stuff happens anyway for a single finder 
method.
I am confused.

Thanks

Simone

From: Dain Sundstrom <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Optimized CMP loading
Date: Thu, 3 Apr 2003 09:58:48 -0600
You need to use a transaction for the access.  We can not assume that  data 
read in one transaction is valid in another transaction.

-dain

On Thursday, April 3, 2003, at 08:39 AM, Simone Milani wrote:

I am using read-ahead:

  
 on-find
   50
 
It keeps saying no preload data found while actually before has loaded  
the
data.

2003-04-03 15:28:44,293 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.MDSDbax]  Executing
SQL: SELECT MD_KEY,MD_BUSINESS_AREA, MD_CLASS, MD_CURRENCY,  MD_DATEVALUE,
MD_FIELDNAME, MD_FLOATVALUE, MD_INSTANCE, MD_LOCATION, MD_NAME,
MD_STRING_VALUE, MD_TYPEID FROM MDS_DBAX WHERE (MD_KEY=?) OR  (MD_KEY=?) 
OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?) OR
(MD_KEY=?) OR (MD_KEY=?) OR (MD_KEY=?)
2003-04-03 15:28:44,293 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSDbax.mDK 
ey]
Set parameter: index=1, jdbcType=NUMERIC, value=4707

2003-04-03 15:28:44,293 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSDbax.mDK 
ey]
Set parameter: index=50, jdbcType=NUMERIC, value=4756
2003-04-03 15:28:44,309 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSDbax.mDK 
ey]
Get result: index=1, javaType=java.lang.Long, Simple, value=4708
2003-04-03 15:28:44,309 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSDbax.bus 
iness
Area] Get result: index=2, javaType=java.lang.String, Simple, value=OTC
2003-04-03 15:28:44,309 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSDbax] Add preload  data:
entity=MDSDbax pk=4708 field=businessArea
... get and load all results.
2003-04-03 15:28:44,403 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSDbax] Add preload  data:
entity=MDSDbax pk=4756 field=typeId
2003-04-03 15:28:44,403 TRACE
[org.jboss.ejb.plugins.EntityMultiInstanceSynchronizationInterceptor]
register, [EMAIL PROTECTED],
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=dblon34056//23,
BranchQual=]
2003-04-03 15:28:44,403 TRACE
[org.jboss.ejb.plugins.EntityMultiInstanceSynchronizationInterceptor]
register, [EMAIL PROTECTED],
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=dblon34056//23,
BranchQual=]
2003-04-03 15:28:44,403 TRACE  
[org.jboss.ejb.plugins.EntityLockInterceptor]
End invoke, key=4707
2003-04-03 15:28:44,403 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TxInterceptorCMT: In finally
2003-04-03 15:28:44,403 TRACE [org.jboss.ejb.plugins.LogInterceptor]  End
method=getMDSDbaxValue
2003-04-03 15:28:44,403 TRACE
[org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor] invokerBInding  is 
null
in ProxyFactoryFinder
2003-04-03 15:28:44,403 TRACE [org.jboss.ejb.plugins.LogInterceptor]  
Start
method=getMDSDbaxValue
2003-04-03 15:28:44,403 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Current transaction in MI is TransactionImpl:XidImpl [FormatId=257,
GlobalId=dblon34056//23, BranchQual=]
2003-04-03 15:28:44,403 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TX_REQUIRED for getMDSDbaxValue
2003-04-03 15:28:44,403 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Thread came in with tx TransactionImpl:XidImpl [FormatId=257,
GlobalId=dblon34056//23, BranchQual=]
2003-04-03 15:28:44,403 TRACE  
[org.jboss.ejb.plugins.EntityLockInterceptor]
Begin invoke, key=4708
2003-04-03 15:28:44,403 TRACE  [org.jboss.ejb.plugins.EntityInstancePool] 
Get
instance [EMAIL PROTECTED]
com.db.jbozz.ejb.entity.mds.MDSDbaxCMP
2003-04-03 15:28:44,403 TRACE
[org.jboss.ejb.plugins.lock.JDBCOptimisticLock] schedule>
method=getMDSDbaxValue; tx=TransactionImpl:XidImpl [FormatId=257,
GlobalId=dblon34056//23, BranchQual=]
2003-04-03 15:28:44,403 TRACE
[org.jboss.ejb.plugins.lock.JDBCOptimisticLock] schedule> other tx  came 
in:
tx=0; ctx.id=4708
2003-04-03 15:28:44,403 TRACE
[org.jboss.ejb.plugins.lock.JDBCOptimisticLock] schedule> modified  
strategy:
locking all field values
2003-04-03 15:28:44,403 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSDbax] load data:
entity=MDSDbax pk=4708
2003-04-03 15:

Re: [JBoss-user] Optimized CMP loading

2003-04-03 Thread Simone Milani
dbc.bridge.JDBCCMP2xFieldBridge.MDSDbax.mDKey]
Set parameter: index=4, jdbcType=NUMERIC, value=4711
2003-04-03 15:28:44,418 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSDbax.mDKey]
Set parameter: index=5, jdbcType=NUMERIC, value=4712
2003-04-03 15:28:44,418 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSDbax.mDKey]
Set parameter: index=6, jdbcType=NUMERIC, value=4713
2003-04-03 15:28:44,418 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSDbax.mDKey]
Set parameter: index=7, jdbcType=NUMERIC, value=4714

And all like this

Thanks!

Simone

- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 2:17 PM
Subject: Re: [JBoss-user] Optimized CMP loading


> Thursday, April 03, 2003, 3:35:05 PM, you wrote:
>
> SM> Hi,
>
> SM> Is it possible to preload all the entities returned from a finder?
>
> Yes, with read-ahead.
>
> SM>   I have a finder method that returns many rows (around 100) and the
read-ahead strategy does not help at all.
>
> Does not help or does not work?
>
> alex
>
> SM>   Also I am
> SM> using Optimistic locking with 3.2.0 so there is no global entity
cache.
>
> SM> Thanks
>
> SM> Simone
>
>
>
> ---
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Optimized CMP loading

2003-04-03 Thread Simone Milani



Hi,
 
    Is it possible to preload all 
the entities returned from a finder?  I have a finder method that returns 
many rows (around 100) and the read-ahead strategy does not help at all.  
Also I am using Optimistic locking with 3.2.0 so there is no global entity 
cache.
 
Thanks
 
Simone


Re: [JBoss-user] How to build Tomcat Module

2003-04-03 Thread Simone Milani
Hi,

Thanks but it does not work for me.  The readme file in tomcat41 refer
to the catalina module, I find it really confusing!

Thanks

Simone
- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 6:21 AM
Subject: Re: [JBoss-user] How to build Tomcat Module


> AFAIK, catalina is for Tomcat-4.0.x.
> So, tomcat41 is for you.
> You don't need to look at build.xml file. In tomcat41, there should be
> a readme file with instructions. Just follow them and there shouldn't
> be problems.
>
> alex
>
> Wednesday, April 02, 2003, 5:49:24 PM, you wrote:
>
> SM> Hi,
>
> SM> I am trying to build the Tomcat module for the current 3.2.0 CVS
version.  I noticed that there are 2 modules one catalina and one tomcat41.
In both the build.xml files there is this:
>
> SM> 
> SM> 
>
> SM> So I got the latest Tomcat version 4.1.24 and unpacked there.  But
when I do build main I have 66 errors for all the Tomcat classes not found
in import.  Also what is the difference between the 2
> SM> modules?  Could anyone kindly advise?
>
> SM> Thanks
>
> SM> Simone
>
>
>
> ---
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] How to build Tomcat Module

2003-04-02 Thread Simone Milani



Hi,
 
    I am trying to build the Tomcat 
module for the current 3.2.0 CVS version.  I noticed that there are 2 
modules one catalina and one tomcat41.  In both the build.xml files there 
is this:
 
        

 
So I got the latest Tomcat version 4.1.24 and 
unpacked there.  But when I do build main I have 66 errors for all the 
Tomcat classes not found in import.  Also what is the difference between 
the 2 modules?  Could anyone kindly advise?
 
Thanks
 
Simone


Re: [JBoss-user] How to cjeckout JBoss 3.2 RC4

2003-04-01 Thread Simone Milani
Hi,

Wrong tag, it should be:
cvs -d:pserver:[EMAIL PROTECTED]:80/cvsroot/jboss
checkout -r Branch_3_2 jboss-3.2

Simone
- Original Message -
From: "Aleksandr Shneyderman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 4:43 PM
Subject: [JBoss-user] How to cjeckout JBoss 3.2 RC4


> I wanted to get a CVS copy of RC4
>
> I do the checkout of jboss-3.2 module
> with the tag of JBoss_3_2_0_RC4
>
> Is it the right way to do it?
>
> If it is why do I get an error building
> from the source? Here is the partial build.log:
>
>
> configure:
>  [echo] groups:  default
>  [echo] modules:
>
common,jmx,system,j2ee,naming,transaction,server,security,messaging,connecto
> r,cluster,jetty,varia,jboss.net,iiop,management,catalina
>
> init:
>
> _buildmagic:modules:most:
> [execmodules]
> ==
> ==  Executing 'most' in module 'common'...
> ==
>
> _buildmagic:init:
>
> configure:
>
> init:
>
> compile-mbean-sources:
> [mkdir] Created dir:
C:\projects\jboss\jboss320RC4\common\output\gen-src
> [execmodules] (XDocletMain.start   45  ) Running
> 
> [execmodules] (TemplateSubTask.engineStarted   788 ) Generating output
> for 'org.jboss.util.property.jmx.SystemPropertyClassValue' using template
> file
>
'jar:file:C:\projects\jboss\jboss320RC4\thirdparty\xdoclet\xdoclet\lib\xdocl
> et-jmx-module-jb3.jar!/xdoclet/modules/jmx/resources/mbean.xdt'.
> [execmodules] INFO:Some classes refer to other classes that were not
> found among the sources or on the classpath.
> [execmodules]  (Perhaps the referred class doesn't exist? Hasn't
> been generated yet?)
> [execmodules]  The referring classes do not import any fully
> qualified classes matching these classes.
> [execmodules]  However, since no packages are imported, xjavadoc
has
> assumed that the referred classes
> [execmodules]  belong to the same package as the referring class.
> The classes are:
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\net\protocol\URLList
> erBase.java --> URLFilter qualified to org.jboss.net.protocol.URLFilter
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\property\jmx\Sy
> stemPropertyClassValue.java --> SystemPropertyClassValueMBean qualified to
> org.jboss.util.property.jmx.SystemPropertyClassValueMBean
>
> compile-classes:
> [mkdir] Created dir:
C:\projects\jboss\jboss320RC4\common\output\classes
> [javac] Compiling 192 source files to
> C:\projects\jboss\jboss320RC4\common\output\classes
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:9: package javax.management does not exist
> [execmodules] import javax.management.DynamicMBean;
> [execmodules] ^
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:10: package javax.management does not exist
> [execmodules] import javax.management.AttributeNotFoundException;
> [execmodules] ^
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:11: package javax.management does not exist
> [execmodules] import javax.management.MBeanException;
> [execmodules] ^
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:12: package javax.management does not exist
> [execmodules] import javax.management.ReflectionException;
> [execmodules] ^
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:13: package javax.management does not exist
> [execmodules] import javax.management.Attribute;
> [execmodules] ^
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:14: package javax.management does not exist
> [execmodules] import javax.management.InvalidAttributeValueException;
> [execmodules] ^
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:15: package javax.management does not exist
> [execmodules] import javax.management.AttributeList;
> [execmodules] ^
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:16: package javax.management does not exist
> [execmodules] import javax.management.MBeanInfo;
> [execmodules] ^
> [execmodules]
>
C:\projects\jboss\jboss320RC4\common\src\main\org\jboss\util\jmx\DynamicMBea
> nSupport.java:22: cannot resolve symbol
> [execmodules] symbol  : class DynamicMBean
> [execmodules] location: class org.jboss.util.jmx.DynamicMBeanSupport
> [execmodules] public class DynamicMBeanSupport implements DynamicMBean
>

Re: Re[2]: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
Hi Andrew,
Just looked at your source and
you can only have CMR between Local ejbs :)  Try to update the test case to
have the relation beetween 2 local Entities and have a remote Session facade
that calls the test method.

Simone
- Original Message -
From: "Simone Milani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 1:25 PM
Subject: Re: Re[2]: [JBoss-user] CMR Error under load


> As of yesterday 10 PM GMT.
>
>
> Simone
> - Original Message -
> From: "Alex Loubyansky" <[EMAIL PROTECTED]>
> To: "Simone Milani" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 01, 2003 9:47 AM
> Subject: Re[2]: [JBoss-user] CMR Error under load
>
>
> > with fresh 3.2.0RC5 from CVS?
> >
> > alex
> >
> > Tuesday, April 01, 2003, 11:26:47 AM, Simone Milani wrote:
> >
> > SM> Hi Andrew,
> >
> > SM> I had the error as well
> >
> >
> > SM> Simone
> >
> >
> > SM> - Original Message -
> > SM> From: "Andrew May" <[EMAIL PROTECTED]>
> > SM> To: <[EMAIL PROTECTED]>
> > SM> Sent: Tuesday, April 01, 2003 8:40 AM
> > SM> Subject: Re: [JBoss-user] CMR Error under load
> >
> >
> > >> Simone,
> > >>
> > >> I manually inserted a couple of records. e.g.:
> > >>
> > >> INSERT INTO Parent VALUES ('test1');
> > >> INSERT INTO Child (id, name, value, parentid) VALUES ('test1:name1',
> > SM> 'name1', 'value1',
> > >> 'test1');
> > >>
> > >> And that was enough data to recreate the problem. The test was then
> called
> > SM> with
> > >>
> > >> java com.ingenta.acs.test.ejb.CMRTest test1 30 100
> > >>
> > >> - that's with a parent pk of test1, 30 threads each doing 100 loops.
> The
> > SM> classpath has
> > >> test.jar, all the necessary JBOSS client jars, and a jndi.properties
> > SM> containing a provider
> > >> url.
> > >>
> > >> For every successful record it will print the returned name/value
pairs
> > SM> from the child.
> > >> For every failure it will print the error message (the full stack
trace
> > SM> should be in the
> > >> server log).
> > >>
> > >> Thanks for having a look at this - I've had to wait for our firewall
to
> be
> > SM> opened up
> > >> before I can build the latest 3.2 code from CVS.
> > >>
> > >> Andrew
> > >>
> > >> Simone Milani wrote:
> > >>
> > >> > Hi Andrew,
> > >> >
> > >> > I am trying your test, do you have a script to populate the
> tables
> > SM> and
> > >> > the parameters for the CMRTestClass?
> > >> >
> > >> > Thanks
> > >> >
> > >> > Simone
> > >> > - Original Message -
> > >> > From: "Andrew May" <[EMAIL PROTECTED]>
> > >> > To: <[EMAIL PROTECTED]>
> > >> > Sent: Monday, March 31, 2003 2:46 PM
> > >> > Subject: Re: [JBoss-user] CMR Error under load
> > >> >
> > >> >
> > >> >
> > >> >>I don't see a RC5 release on sourceforge, so I assume this means I
> have
> > SM> to
> > >> >
> > >> > build it from
> > >> >
> > >> >>CVS. I'll give that a go, but as I've never tried it before it
could
> > SM> take
> > >> >
> > >> > me a while
> > >> >
> > >> >>(never actually used CVS I confess) - still it's something I ought
to
> be
> > >> >
> > >> > able to do.
> > >> >
> > >> >>If anyone has a chance to run my test on this version of JBoss I'd
be
> > >> >
> > >> > grateful - it'll
> > >> >
> > >> >>probably be at least a day before I get that far.
> > >> >>
> > >> >>Andrew
> > >> >>
> > >> >>Alex Loubyansky wrote:
> > >> >>
> > >> >>
> > >> >>>Could you, please, try it on JBoss-3.2.0RC5 which is the current
> > >> >>>version.
> > >> >>>I have a testcase that failed in my old 3.2 and passes in cu

Re: Re[2]: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
As of yesterday 10 PM GMT.


Simone
- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 9:47 AM
Subject: Re[2]: [JBoss-user] CMR Error under load


> with fresh 3.2.0RC5 from CVS?
>
> alex
>
> Tuesday, April 01, 2003, 11:26:47 AM, Simone Milani wrote:
>
> SM> Hi Andrew,
>
> SM> I had the error as well
>
>
> SM> Simone
>
>
> SM> - Original Message -
> SM> From: "Andrew May" <[EMAIL PROTECTED]>
> SM> To: <[EMAIL PROTECTED]>
> SM> Sent: Tuesday, April 01, 2003 8:40 AM
> SM> Subject: Re: [JBoss-user] CMR Error under load
>
>
> >> Simone,
> >>
> >> I manually inserted a couple of records. e.g.:
> >>
> >> INSERT INTO Parent VALUES ('test1');
> >> INSERT INTO Child (id, name, value, parentid) VALUES ('test1:name1',
> SM> 'name1', 'value1',
> >> 'test1');
> >>
> >> And that was enough data to recreate the problem. The test was then
called
> SM> with
> >>
> >> java com.ingenta.acs.test.ejb.CMRTest test1 30 100
> >>
> >> - that's with a parent pk of test1, 30 threads each doing 100 loops.
The
> SM> classpath has
> >> test.jar, all the necessary JBOSS client jars, and a jndi.properties
> SM> containing a provider
> >> url.
> >>
> >> For every successful record it will print the returned name/value pairs
> SM> from the child.
> >> For every failure it will print the error message (the full stack trace
> SM> should be in the
> >> server log).
> >>
> >> Thanks for having a look at this - I've had to wait for our firewall to
be
> SM> opened up
> >> before I can build the latest 3.2 code from CVS.
> >>
> >> Andrew
> >>
> >> Simone Milani wrote:
> >>
> >> > Hi Andrew,
> >> >
> >> > I am trying your test, do you have a script to populate the
tables
> SM> and
> >> > the parameters for the CMRTestClass?
> >> >
> >> > Thanks
> >> >
> >> > Simone
> >> > - Original Message -
> >> > From: "Andrew May" <[EMAIL PROTECTED]>
> >> > To: <[EMAIL PROTECTED]>
> >> > Sent: Monday, March 31, 2003 2:46 PM
> >> > Subject: Re: [JBoss-user] CMR Error under load
> >> >
> >> >
> >> >
> >> >>I don't see a RC5 release on sourceforge, so I assume this means I
have
> SM> to
> >> >
> >> > build it from
> >> >
> >> >>CVS. I'll give that a go, but as I've never tried it before it could
> SM> take
> >> >
> >> > me a while
> >> >
> >> >>(never actually used CVS I confess) - still it's something I ought to
be
> >> >
> >> > able to do.
> >> >
> >> >>If anyone has a chance to run my test on this version of JBoss I'd be
> >> >
> >> > grateful - it'll
> >> >
> >> >>probably be at least a day before I get that far.
> >> >>
> >> >>Andrew
> >> >>
> >> >>Alex Loubyansky wrote:
> >> >>
> >> >>
> >> >>>Could you, please, try it on JBoss-3.2.0RC5 which is the current
> >> >>>version.
> >> >>>I have a testcase that failed in my old 3.2 and passes in current
> >> >>>3.2.0RC5.
> >> >>>
> >> >>>Please, try it.
> >> >>>
> >> >>>alex
> >> >>>
> >> >>>Monday, March 31, 2003, 12:37:32 PM, Andrew May wrote:
> >> >>>
> >> >>>AM> OK, here's a test case that recreates the problem for me.
> >> >>>
> >> >>>AM> I've attached test.jar which is the ejb-jar and also includes
the
> >> >
> >> > test case class. Also
> >> >
> >> >>>AM> attached is test-src.jar which has the source code for the EJBs
and
> >> >
> >> > the test. I'm afraid
> >> >
> >> >>>AM> I've been hacking around existing build scripts to create the
test
> >> >
> >> > so I've not included
> >> >
> >> >>>AM> any way of 

[JBoss-user] Re: NOT NULL relations

2003-04-01 Thread Simone Milani
Hi Alex,

Thanks!  Works great!  I thought other people could be interested on it
as well!

Simone
- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Monday, March 31, 2003 8:24 PM
Subject: Re: NOT NULL relations


> Sorry, it doesn't look to be enough for me to tell what is wrong.
>
> What is the scenario? Is it cascade-delete? If it is then here is the
> tric:
>
>   
>  custom container
>  true
>   
>
>
> By the spec, in cascade-delete the one-side is removed first, thus,
> destroying relationships. This means null values for foreign key
> fields. And when entity is removed, container synchronizes persistent
> state. Thus writting nulls to the db.
> To prevent this, you should set sync-on-commit-only to true. Then,
> synchronization will occur only at commit time when many-side will be
> deleted too.
>
> But be careful with sync-on-commit-only == true as it is not spec
> compliant behavior. Well... non-null foreign key are already spec
> non-compliant thing, though.
>
> alex
>
>
> Monday, March 31, 2003, 8:08:59 PM, you wrote:
>
> SM> Hi Alex,
>
> SM> Sorry to bother you once again, but this is sitting between me and
the JBoss production
>
> SM> jbosscmp-jdbc.xml
>
> SM>  
> SM> mDSId
> SM> MV_MDS_ID
> SM>
>
> SM> NUMERIC
> SM> NUMERIC(8)
>
> SM> 
> SM> ..
> SM> ...
> SM> ...
> SM> 
> SM>   mDSKeyVector-mDSVectors
>
> SM>   
> SM>
mDSKeyVector-has-mDSVectors
> SM>   
> SM>  
> SM>mDSId
> SM>MV_MDS_ID
> SM>  
> SM>   
>
> SM>   
> SM>   
> SM>
mDSVector-has-mDSKeyVector
> SM> 
>
> SM>   
> SM> 
>
> SM> Error:
>
> SM> 2003-03-31 17:59:44,506 TRACE [org.jboss.ejb.plugins.LogInterceptor]
End method=
> SM> 2003-03-31 17:59:44,506 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.MDSVector] Executing
SQL: UPDATE MDS_VECTOR_1 SET MV_MDS_ID=?, MV_DATE_SAVED=? WHERE MV_KEY=? AND
> SM> MV_DATE_SAVED=?
> SM> 2003-03-31 17:59:44,506 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSVector.mDSId]
Set parameter: index=1, jdbcType=NUMERIC, value=NULL
> SM> 2003-03-31 17:59:44,506 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSVector.dateSa
ved] Set parameter: index=2, jdbcType=DATE, value=Mon Mar 31 17:59:44 BST
2003
> SM> 2003-03-31 17:59:44,506 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSVector.mVKey]
Set parameter: index=3, jdbcType=NUMERIC, value=7
> SM> 2003-03-31 17:59:44,506 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.MDSVector.dateSa
ved] Set parameter: index=4, jdbcType=DATE, value=Mon Mar 31 00:00:00 BST
2003
> SM> 2003-03-31 17:59:44,506 TRACE
[org.jboss.ejb.plugins.lock.JDBCOptimisticLock] updateLockedFieldValue>
field=dateSaved; value Mon Mar 31 17:59:44 BST 2003
> SM> 2003-03-31 17:59:44,521 TRACE
[org.jboss.ejb.plugins.EntityLockInterceptor] End invoke, key=2276622
> SM> 2003-03-31 17:59:44,521 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TxInterceptorCMT: In finally
> SM> 2003-03-31 17:59:44,521 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException, causedBy:
> SM> com.sybase.jdbc2.jdbc.SybSQLException: The column MV_MDS_ID in table
MDS_VECTOR_1 does not allow null values.
>
>
> SM> Any idea?
>
> SM> Thanks
>
> SM> Simone
>
>


---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
Hi Andrew,

I had the error as well


Simone


- Original Message -
From: "Andrew May" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 8:40 AM
Subject: Re: [JBoss-user] CMR Error under load


> Simone,
>
> I manually inserted a couple of records. e.g.:
>
> INSERT INTO Parent VALUES ('test1');
> INSERT INTO Child (id, name, value, parentid) VALUES ('test1:name1',
'name1', 'value1',
> 'test1');
>
> And that was enough data to recreate the problem. The test was then called
with
>
> java com.ingenta.acs.test.ejb.CMRTest test1 30 100
>
> - that's with a parent pk of test1, 30 threads each doing 100 loops. The
classpath has
> test.jar, all the necessary JBOSS client jars, and a jndi.properties
containing a provider
> url.
>
> For every successful record it will print the returned name/value pairs
from the child.
> For every failure it will print the error message (the full stack trace
should be in the
> server log).
>
> Thanks for having a look at this - I've had to wait for our firewall to be
opened up
> before I can build the latest 3.2 code from CVS.
>
> Andrew
>
> Simone Milani wrote:
>
> > Hi Andrew,
> >
> > I am trying your test, do you have a script to populate the tables
and
> > the parameters for the CMRTestClass?
> >
> > Thanks
> >
> > Simone
> > - Original Message -
> > From: "Andrew May" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, March 31, 2003 2:46 PM
> > Subject: Re: [JBoss-user] CMR Error under load
> >
> >
> >
> >>I don't see a RC5 release on sourceforge, so I assume this means I have
to
> >
> > build it from
> >
> >>CVS. I'll give that a go, but as I've never tried it before it could
take
> >
> > me a while
> >
> >>(never actually used CVS I confess) - still it's something I ought to be
> >
> > able to do.
> >
> >>If anyone has a chance to run my test on this version of JBoss I'd be
> >
> > grateful - it'll
> >
> >>probably be at least a day before I get that far.
> >>
> >>Andrew
> >>
> >>Alex Loubyansky wrote:
> >>
> >>
> >>>Could you, please, try it on JBoss-3.2.0RC5 which is the current
> >>>version.
> >>>I have a testcase that failed in my old 3.2 and passes in current
> >>>3.2.0RC5.
> >>>
> >>>Please, try it.
> >>>
> >>>alex
> >>>
> >>>Monday, March 31, 2003, 12:37:32 PM, Andrew May wrote:
> >>>
> >>>AM> OK, here's a test case that recreates the problem for me.
> >>>
> >>>AM> I've attached test.jar which is the ejb-jar and also includes the
> >
> > test case class. Also
> >
> >>>AM> attached is test-src.jar which has the source code for the EJBs and
> >
> > the test. I'm afraid
> >
> >>>AM> I've been hacking around existing build scripts to create the test
> >
> > so I've not included
> >
> >>>AM> any way of building the code. I'm using an older version of
XDoclet.
> >>>
> >>>AM> There are 2 entities, Parent and Child. The CMRTest class creates
> >
> > multiple threads to call
> >
> >>>AM> the getPropertyMap() method on the Parent. This method iterates
> >
> > around the CMR collection
> >
> >>>AM> of children, and when multiple threads are run causes occasional
CMR
> >
> > errors.
> >
> >>>AM> In jbosscmp-jdbc.xml the datasource is java:/jdbc.testPool and the
> >
> > mapping is for Oracle8.
> >
> >>>AM> My test doesn't create the test data, so I've manually inserted
data
> >
> > before running the
> >
> >>>AM> test. I've found that it's only necessary to have one child record
> >
> > to recreate the problem.
> >
> >>>AM> The CMRTest class takes 3 arguments - the parent primary key,
number
> >
> > of threads, number of
> >
> >>>AM> loops per thread. e.g.:
> >>>
> >>>AM> java com.ingenta.acs.test.ejb.CMRTest test1 30 100
> >>>
> >>>AM> 30 threads with 100 loops always causes at least one CMR error for
> >
> > me. I've tested on two
> >
> >>>AM> setups, both of which cause errors.
&

Re: [JBoss-user] CMR Error under load

2003-03-31 Thread Simone Milani
Hi Andrew,

I am trying your test, do you have a script to populate the tables and
the parameters for the CMRTestClass?

Thanks

Simone
- Original Message -
From: "Andrew May" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 31, 2003 2:46 PM
Subject: Re: [JBoss-user] CMR Error under load


> I don't see a RC5 release on sourceforge, so I assume this means I have to
build it from
> CVS. I'll give that a go, but as I've never tried it before it could take
me a while
> (never actually used CVS I confess) - still it's something I ought to be
able to do.
>
> If anyone has a chance to run my test on this version of JBoss I'd be
grateful - it'll
> probably be at least a day before I get that far.
>
> Andrew
>
> Alex Loubyansky wrote:
>
> > Could you, please, try it on JBoss-3.2.0RC5 which is the current
> > version.
> > I have a testcase that failed in my old 3.2 and passes in current
> > 3.2.0RC5.
> >
> > Please, try it.
> >
> > alex
> >
> > Monday, March 31, 2003, 12:37:32 PM, Andrew May wrote:
> >
> > AM> OK, here's a test case that recreates the problem for me.
> >
> > AM> I've attached test.jar which is the ejb-jar and also includes the
test case class. Also
> > AM> attached is test-src.jar which has the source code for the EJBs and
the test. I'm afraid
> > AM> I've been hacking around existing build scripts to create the test
so I've not included
> > AM> any way of building the code. I'm using an older version of XDoclet.
> >
> > AM> There are 2 entities, Parent and Child. The CMRTest class creates
multiple threads to call
> > AM> the getPropertyMap() method on the Parent. This method iterates
around the CMR collection
> > AM> of children, and when multiple threads are run causes occasional CMR
errors.
> >
> > AM> In jbosscmp-jdbc.xml the datasource is java:/jdbc.testPool and the
mapping is for Oracle8.
> > AM> My test doesn't create the test data, so I've manually inserted data
before running the
> > AM> test. I've found that it's only necessary to have one child record
to recreate the problem.
> >
> > AM> The CMRTest class takes 3 arguments - the parent primary key, number
of threads, number of
> > AM> loops per thread. e.g.:
> >
> > AM> java com.ingenta.acs.test.ejb.CMRTest test1 30 100
> >
> > AM> 30 threads with 100 loops always causes at least one CMR error for
me. I've tested on two
> > AM> setups, both of which cause errors.
> >
> > AM> 1) Solaris, Sun JDK1.3.1, JBoss 3.2.0RC3, Oracle 8.1.7.2.0
> > AM> 2) Linux (Mandrake 9), Sun JDK1.4.1, JBoss 3.2.0RC4, Oracle
8.1.7.2.0
> >
> > AM> jboss.xml in the ejb-jar declares all get* methods to be read-only.
If I remove this the
> > AM> CMR error does not occur, but the test goes a lot slower.
> >
> > AM> Let me know if there's any more information you need.
> >
> > AM> Andrew
> >
> > AM> Dain Sundstrom wrote:
> >
> >
> >>>I fixed a similar bug in this stuff for Sacha on March 19th (version
> >>>1.43.2.13).  The problem was registering for transaction
synchronization
> >>>on the transaction in the context and not the transaction associated
> >>>with the current thread.  This bug created the type of problem you have
> >>>described, but the fix should bin in 3.2 rc4.
> >>>
> >>>Until someone can create a test case that reproduces the new bug, I
> >>>don't think there is much we can do.
> >>>
> >>>-dain
> >>>
> >>>On Friday, March 28, 2003, at 10:01 AM, Alex Loubyansky wrote:
> >>>
> >>>
> Hello Andrew,
> 
> you are not alone complaining about this. But nobody could produce a
> testcase that fail at least eventually.
> 
> I am trying to reproduce it but can't for the moment.
> 
> I have a Parent and 1000 of related Child entities.
> I have 100 concurrent threads finding parent by primary key, getting
> children and iterating through relation collection.
> I use standard container for both Parent and Child.
> In jboss.xml get methods are read-only for both Parent and Child.
> 
> Any more info you can provide? Again a testcase would be great. Let it
> fail not each time but eventually.
> 
> Thank you,
> alex
> >
> >
> >
> >
> >
> > ---
> > This SF.net email is sponsored by: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
> ---
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> ___
> JBoss-user mailing

[JBoss-user] Exposing timestamp-column field for Optimistic lock

2003-03-31 Thread Simone Milani



Hi,
 
    I am currently testing 
Optimistic locking with the Timestamp Strategy.  My findings are that the 
timestamp column cannot be a CMP field otherwise the insert SQL will include it 
2 times.  
 
Any thoughs anyone?
 
Thanks!
 
Simone


Re: [JBoss-user] separate logs for my apss

2003-03-28 Thread Simone Milani
You can configure the logging inside the log4j.xml file in the conf
directory.

Simone
- Original Message -
From: "costin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 4:49 PM
Subject: [JBoss-user] separate logs for my apss


>   Hi!
>
>   I want to use different logs for my application. I have searched the
>   archives but haven`t find any information. Searched the forums but
>   it seems that all I get is some commercial - maybe I have to be
>   logged in.
>
>   How can I make another log for my application?
>
>
> --
>  costin
>
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMR Error under load

2003-03-28 Thread Simone Milani
Hi,
I had the same promlem when I was using RC3.  Try to move to RC4.  What
container are you using?

Simone
- Original Message -
From: "Andrew May" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 11:49 AM
Subject: [JBoss-user] CMR Error under load


> I'm getting this CMR error when I load test our system:
>
> java.lang.IllegalStateException: The iterator of a CMR collection may only
be used within
> the transction in which it was created
>  at
>
org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet$1.verifyIteratorIsValid(Re
lationSet.java:309)
>  at
org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet$1.hasNext(RelationSet.java
:269)
>  at
com.ingenta.acs.core.ejb.IdentityBean.getPropertyMap(IdentityBean.java:286)
>
> Using both JBoss 3.0.3 and 3.2.0RC3 on Solaris with Sun's JDK 1.3.1 or
1.4.1.
>
> We have an Identity entity and an IdentityProperty entity with a 1-M CMR
relationship. For
> convenince there's a method on the Identity bean that gets the related
IdentityProperties,
> iterates through the CMR collection and puts the values in a Map:
>
> public Map getPropertyMap()
> {
>Map result = new HashMap();
>Set properties = getIdentityProperties();
>for (Iterator i = properties.iterator(); i.hasNext(); )
>{
>   IdentityPropertyLocal p = (IdentityPropertyLocal) i.next();
>   result.put(p.getName(), p.getValue());
>}
>
>return result;
> }
>
> This method is marked as transaction "Required" - the bean is marked
"Supports" and the
> set* methods are marked "Mandatory".
>
> In jboss.xml all get* methods have been declared read-only:
>
> 
> Identity
> acs/core/Identity
> 
> 
> get*
> true
> 
> 
> 
>
> When a single person is using the application this error never occurs, but
when I start
> load testing this error keeps occurring with relatively low load. We could
never use it in
> production with this number of errors.
>
> This bean is queried every time a new user is authenticated, so it's a
potential
> bottleneck - which is why it's been marked read-only for get*. Without
being marked
> read-only everything gets very slow (starts to take about 20 seconds to
authenticate a
> user and show our home page) and all the jbossweb threads (max 100) get
used up.
>
> When I originally tested (with JBoss 3.0.1 I think) a while ago this error
was very rare,
> but with 3.0.3 and 3.2.0RC3 it's a lot more common (admittedly there have
been application
> code changes since then).
>
> Please help!
>
> Thanks,
>
> Andrew
>
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Starting threads from session beans

2003-03-28 Thread Simone Milani
You can then invoke your MBean method from the EJB:

Object result =  mbeanServer.invoke(objectName, methodName,
params, signature);

And that should not break the rules.

Simone
- Original Message - 
From: "Alex Sumner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 12:33 PM
Subject: RE: [JBoss-user] Starting threads from session beans


> I can use an MBean, in that I can put my multi-threaded code that does
> the background work into an MBean easily enough. In fact, that's what I
> was planning to do.
> 
> But how do I then, from within an EJB method, tell it to do something
> without breaking the rules? I'm thinking maybe I have to make my MBean a
> JCA resource?
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Simone
> Milani
> Sent: 28 March 2003 11:37
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Starting threads from session beans
> 
> 
> Why not use an MBean?
> 
> Simone
> - Original Message -
> From: "Igor Fedorenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 28, 2003 10:58 AM
> Subject: RE: [JBoss-user] Starting threads from session beans
> 
> 
> You can write JCA adapter and do (virtually) anything you want in it. It
> much easier than it sounds...
> 
> > -Original Message-
> > From: Alex Sumner [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 28, 2003 4:55 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] Starting threads from session beans
> >
> >
> > Thanks,
> >
> > Wonder if it's permissible to enter a synchronized block? That would 
> > give me all I need, just add something to a list, then another thread
> > (pre-existing) can pick it up and do something about it. Otherwise 
> > it's MDBs and lots of messages, which is a big overhead for what I 
> > need.
> >
> > Cheers,
> >
> > Alex
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Alastair 
> > Rodgers
> > Sent: 28 March 2003 09:30
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] Starting threads from session beans
> >
> >
> > No, the EJB 2.0 Spec doesn't permit it. Section 24.1.2 (page 495)
> > states:
> >
> > 
> > The enterprise bean must not attempt to manage threads. The enterprise
> 
> > bean must not attempt to start, stop, suspend, or resume a thread; or 
> > to change a thread's priority or name. The enterprise bean must
> > not attempt
> > to manage thread groups.
> >
> > These functions are reserved for the EJB Container. Allowing the 
> > enterprise bean to manage threads would decrease the Container's 
> > ability to properly manage the runtime environment. 
> >
> >
> > Regards,
> > Al.
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Alex 
> > > Sumner
> > > Sent: 27 March 2003 20:15
> > > To: [EMAIL PROTECTED]
> > > Subject: [JBoss-user] Starting threads from session beans
> > >
> > >
> > > Hi,
> > >
> > > Briefly: is it permissible to start a new thread from a thread 
> > > running in a session bean?
> > >
> > > I've heard that it isn't allowed, but can't see this explicitly 
> > > prohibited in the J2EE specs. More importantly, what will the 
> > > consequences be in JBoss? If the session bean thread is in a TX, 
> > > would I be correct in assuming the new thread will not be associated
> 
> > > with that TX?
> > >
> > > Thanks,
> > >
> > > Alex
> > >
> > >
> > >
> >
> >
> > ---
> > This SF.net email is sponsored by:
> > The Definitive IT and Networking Event. Be There!
> > NetWorld+Interop Las Vegas 2003 -- Register today!
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED] 
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> >
> > ---
> > This SF.net email is sponsored by:
> > The Definitive IT and Networking Event. Be There!
> > NetWorld+Interop Las Vegas 2003 -- Register today!
> > http://ads.sourcefor

Re: [JBoss-user] Starting threads from session beans

2003-03-28 Thread Simone Milani
Why not use an MBean?

Simone
- Original Message -
From: "Igor Fedorenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 10:58 AM
Subject: RE: [JBoss-user] Starting threads from session beans


You can write JCA adapter and do (virtually) anything you want in it. It
much easier than it sounds...

> -Original Message-
> From: Alex Sumner [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 4:55 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Starting threads from session beans
>
>
> Thanks,
>
> Wonder if it's permissible to enter a synchronized block? That would
> give me all I need, just add something to a list, then another thread
> (pre-existing) can pick it up and do something about it.
> Otherwise it's
> MDBs and lots of messages, which is a big overhead for what I need.
>
> Cheers,
>
> Alex
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Alastair
> Rodgers
> Sent: 28 March 2003 09:30
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Starting threads from session beans
>
>
> No, the EJB 2.0 Spec doesn't permit it. Section 24.1.2 (page 495)
> states:
>
> 
> The enterprise bean must not attempt to manage threads. The enterprise
> bean must not attempt to start, stop, suspend, or resume a
> thread; or to
> change a thread's priority or name. The enterprise bean must
> not attempt
> to manage thread groups.
>
> These functions are reserved for the EJB Container. Allowing the
> enterprise bean to manage threads would decrease the
> Container's ability
> to properly manage the runtime environment. 
>
>
> Regards,
> Al.
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Alex Sumner
> > Sent: 27 March 2003 20:15
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] Starting threads from session beans
> >
> >
> > Hi,
> >
> > Briefly: is it permissible to start a new thread from a
> > thread running in a session bean?
> >
> > I've heard that it isn't allowed, but can't see this
> > explicitly prohibited in the J2EE specs. More importantly,
> > what will the consequences be in JBoss? If the session bean
> > thread is in a TX, would I be correct in assuming the new
> > thread will not be associated with that TX?
> >
> > Thanks,
> >
> > Alex
> >
> >
> >
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Latest CVS version

2003-03-26 Thread Simone Milani
Hi Sebastian,

Thanks for this, but yes, I tried and this is the result:

E:\tmp>cvs -z3 -d:pserver:[EMAIL PROTECTED]:80/cvsroot/j
boss
 login
Logging in to
:pserver:[EMAIL PROTECTED]:80/cvsroot/jboss
CVS password:
cvs [login aborted]: connect to
cvs-pserver.sourceforge.net(66.35.250.213):80 fa
iled: Connection timed out

And if I try with WinCVS setting up the proxy get this outcome:

cvs -d :pserver;proxy=lonhhsgdpx01;proxyport=8080:[EMAIL PROTECTED]
checkout -P -r Branch_3_2 boss-3.2 (in directory
C:\WINNT\Profiles\milasx.000\Desktop)
cvs [checkout aborted]: proxy server lonhhsgdpx01:8080 does not support http
tunnelling

*CVS exited normally with code 1*

Thanks!

Simone
- Original Message -
From: "Sebastian Hauer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 3:28 PM
Subject: RE: [JBoss-user] Latest CVS version



Hi Simone,

Not sure if it will work with your proxy but did you follow the
instructions on:
https://sourceforge.net/docman/display_doc.php?docid=14033&group_id=1

And did you try this?

cvs -z3
-d:pserver:[EMAIL PROTECTED]:80/cvsroot/jboss login
cvs -z3
-d:pserver:[EMAIL PROTECTED]:80/cvsroot/jboss co -r
Branch_3_2 jboss-head

If you are not a jboss developer with cvs write access I am not sure
whether you can get access over CVS_RSH=ssh
You might be stuck with pserver.

You might also have to try multiple times before you get a connection to
the sourceforge cvs server.  I have to try usually 10 to 15 times before
I get a response back.

Regards,
Sebastian


> -----Original Message-
> From: Simone Milani [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 8:13 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Latest CVS version
>
>
> Thanks,
>
> Tried that as well, but still have the problem that my
> proxy servers here do not allow HTTP Tunnelling.  Is there a
> nightly tarball for the 3.2.0 branch?
>
> Simone
> - Original Message -
> From: "Guy Rouillier" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 26, 2003 5:21 AM
> Subject: Re: [JBoss-user] Latest CVS version
>
>
> >
> >
> > Simone Milani wrote:
> > > Hi Heiko,
> > >
> > > Thanks, I am trying to setup an SSH tunnell on my NT
> machine to
> > > use
> with
> > > CVS but no luck.  Did you ever managed to do it?
> >
> > Simone, have you tried PUTTY?  I'm using that under Win2K
> with WinCvs
> > at home to ssh into a remote CVS, and it's been working
> fine for over
> > a year.  Just go to google and search for putty.  Post here if you
> > have any configuration questions.
> >
> >
> >
> >
> > ---
> > This SF.net email is sponsored by:
> > The Definitive IT and Networking Event. Be There!
> > NetWorld+Interop Las Vegas 2003 -- Register today!
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/j> boss-user
>


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Latest CVS version

2003-03-26 Thread Simone Milani
Thanks,

Tried that as well, but still have the problem that my proxy servers
here do not allow HTTP Tunnelling.  Is there a nightly tarball for the 3.2.0
branch?

Simone
- Original Message -
From: "Guy Rouillier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 5:21 AM
Subject: Re: [JBoss-user] Latest CVS version


>
>
> Simone Milani wrote:
> > Hi Heiko,
> >
> > Thanks, I am trying to setup an SSH tunnell on my NT machine to use
with
> > CVS but no luck.  Did you ever managed to do it?
>
> Simone, have you tried PUTTY?  I'm using that under Win2K with WinCvs at
> home to ssh into a remote CVS, and it's been working fine for over a
> year.  Just go to google and search for putty.  Post here if you have
> any configuration questions.
>
>
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Latest CVS version

2003-03-25 Thread Simone Milani
Thanks,

Tried that but I think my problem is that I also need to use a proxy
server that does not support HTTP tunnelling.

Simone
- Original Message -
From: 
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 5:15 PM
Subject: Re: [JBoss-user] Latest CVS version


> Simone,
> I cut this line out of the SourceForge help pages:
> cvs -d:pserver:[EMAIL PROTECTED]:80/cvsroot/jboss
>
> try reading
>
https://sourceforge.net/docman/display_doc.php?docid=14033&group_id=1#reposi
torymirroring
> for more info.
> Ciao,
> Jonathan O'Connor
> Development Manager
> XCOM Dublin
> Phone: +353 1 872 3305
> Mobile: +353 86 824 0736
>
>
>
>
> "Simone Milani" <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
> 25.03.2003 16:19
> Please respond to jboss-user
>
>
> To: <[EMAIL PROTECTED]>
> cc:
> Subject:Re: [JBoss-user] Latest CVS version
>
>
> I tried using cygwin but again no luck.  Here is what I did.
>
> /home/personal$
> CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot/jbo
> ss
> /home/personal$ cvs -z3 checkout -r Branch_3_2 jboss-3.2
> cvs.exe [checkout aborted]: connect to
> cvs-ssh.sourceforge.net(66.35.250.212):24
> 01 failed: Connection timed out
> /home/personal$ CVS_RSH=ssh
> /home/personal$ cvs -z3 checkout -r Branch_3_2 jboss-3.2
> cvs.exe [checkout aborted]: connect to
> cvs-ssh.sourceforge.net(66.35.250.212):24
> 01 failed: Connection timed out
>
> Could you please tell how you did it?
>
> Thanks
>
>
> Simone
>
> - Original Message -
> From: "Rupp,Heiko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 25, 2003 1:11 PM
> Subject: RE: [JBoss-user] Latest CVS version
>
>
> > Hi Simone,
> >
> > > Thanks, I am trying to setup an SSH tunnell on my NT
> > > machine to use with
> > > CVS but no luck.  Did you ever managed to do it?
> >
> > If you use anonymous access, you don't need to, as this
> > is a non-encrypted connection. The trick here is to use
> > a port that is normally open in the firewall for outgoing
> > connections like e.g. https.
> > I did try it once, but this failed and I did not look into
> > it since.
> >
> > On my win2k box, I use cygwin including openssh to connect
> > over normal cvs + ssh to sourceforge, which works.
> >
> > Tell me if you have success.
> >
> >   Heiko
> > --
> > Bancotec GmbH  EMail: [EMAIL PROTECTED]
> > Calwer Str. 33 Telefon: +49 711 222 992 900
> > D-70173 Stuttgart  Telefax: +49 711 222 992 999
> > Ein Unternehmen der Cellent AG http://www.cellent.de/
> >
> >
> > ---
> > This SF.net email is sponsored by:
> > The Definitive IT and Networking Event. Be There!
> > NetWorld+Interop Las Vegas 2003 -- Register today!
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Latest CVS version

2003-03-25 Thread Simone Milani
I tried using cygwin but again no luck.  Here is what I did.

/home/personal$
CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot/jbo
ss
/home/personal$ cvs -z3 checkout -r Branch_3_2 jboss-3.2
cvs.exe [checkout aborted]: connect to
cvs-ssh.sourceforge.net(66.35.250.212):24
01 failed: Connection timed out
/home/personal$ CVS_RSH=ssh
/home/personal$ cvs -z3 checkout -r Branch_3_2 jboss-3.2
cvs.exe [checkout aborted]: connect to
cvs-ssh.sourceforge.net(66.35.250.212):24
01 failed: Connection timed out

Could you please tell how you did it?

Thanks


Simone

- Original Message -
From: "Rupp,Heiko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 1:11 PM
Subject: RE: [JBoss-user] Latest CVS version


> Hi Simone,
>
> > Thanks, I am trying to setup an SSH tunnell on my NT
> > machine to use with
> > CVS but no luck.  Did you ever managed to do it?
>
> If you use anonymous access, you don't need to, as this
> is a non-encrypted connection. The trick here is to use
> a port that is normally open in the firewall for outgoing
> connections like e.g. https.
> I did try it once, but this failed and I did not look into
> it since.
>
> On my win2k box, I use cygwin including openssh to connect
> over normal cvs + ssh to sourceforge, which works.
>
> Tell me if you have success.
>
>   Heiko
> --
> Bancotec GmbH  EMail: [EMAIL PROTECTED]
> Calwer Str. 33 Telefon: +49 711 222 992 900
> D-70173 Stuttgart  Telefax: +49 711 222 992 999
> Ein Unternehmen der Cellent AG http://www.cellent.de/
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Latest CVS version

2003-03-25 Thread Simone Milani
Hi Heiko,

Thanks, I am trying to setup an SSH tunnell on my NT machine to use with
CVS but no luck.  Did you ever managed to do it?

Thanks

Simone
- Original Message -
From: "Rupp,Heiko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 11:40 AM
Subject: RE: [JBoss-user] Latest CVS version


> H,
>
>
> >I have the CVS port blocked by a firewall and wonder how I can get a
> > snapshot from CVS of the latest 3.2.0 tag.  I am trying to use CVSGrab
> > but is getting a nightmare.
>
> Have a look at
>
https://sourceforge.net/docman/display_doc.php?docid=768&group_id=1#firewall
>
>   Heiko
> --
> Bancotec GmbH  EMail: [EMAIL PROTECTED]
> Calwer Str. 33 Telefon: +49 711 222 992 900
> D-70173 Stuttgart  Telefax: +49 711 222 992 999
> Ein Unternehmen der Cellent AG http://www.cellent.de/
>
>
> ---
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Latest CVS version

2003-03-25 Thread Simone Milani



Hi,
 
    I have the CVS port blocked by a 
firewall and wonder how I can get a snapshot from CVS of the latest 3.2.0 
tag.  I am trying to use CVSGrab but is getting a nightmare.
 
Thank you very much!!
 
Simone


Re: Re[6]: [JBoss-user] CMR with FK in the database

2003-03-25 Thread Simone Milani
Hi ALex,

Thanks!  Please remember that the PK must be Long in the SybaseCreate
command or we get a ClassCastException:
Long pk = null;
 //Retrieve the last identity created for this Connection
 mySybaseStmt =
statement.getConnection().prepareStatement(IDENTITY_SQL);
 ResultSet rs = mySybaseStmt.executeQuery();

 if(rs.next())
 {
pk = new Long(rs.getString(1));
log.info("Generated Long PK:" + pk);
 }

Thanks!

Simone

- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 8:32 PM
Subject: Re[6]: [JBoss-user] CMR with FK in the database


> This is the problem with vendor-specific create commands.
> Just fixed it.
>
> PS: Simone, be sure to use JDBCSybaseCreateCommand that extends
> JDBCAbstractVendorCreateCommand.
>
> alex
>
> Monday, March 24, 2003, 6:35:05 PM, Simone Milani wrote:
>
> SM> Hi Alex,
>
> SM> Thanks, but that does not work for me :(  I am using RC4 and get
this
> SM> error if I do expose the FK field as CMP field:
>
> SM> 2003-03-24 16:31:14,416 DEBUG
> SM> [org.jboss.ejb.plugins.cmp.jdbc.sybase.JDBCSybaseC
> SM> reateCommand.MDSVector] Executing SQL: INSERT INTO MDS_VECTOR
> SM> (MV_ADDITIONAL_INF
> SM> O, MV_ID, !!!MV_MDS_ID   , MV_SEQ_NO, MV_SPREAD, MV_VALUE,
> SM> MV_VALUE_TYPE, !MV_MDS_ID) V
> SM> ALUES (?, ?, ?, ?, ?, ?, ?, ?)
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.additionalInfo] Set parameter: index=1,
> SM> jdbcType=VARCHAR, va
> SM> lue=NULL
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.iD] Set parameter: index=2, jdbcType=VARCHAR,
value=NULL
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.mDSID] Set parameter: index=3, jdbcType=NUMERIC,
> SM> value=NULL
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.seqNo] Set parameter: index=4, jdbcType=SMALLINT,
> SM> value=NULL
>
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.spread] Set parameter: index=5, jdbcType=DOUBLE,
> SM> value=0.0
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.value] Set parameter: index=6, jdbcType=DOUBLE,
> SM> value=2.0
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.valueType] Set parameter: index=7, jdbcType=CHAR,
> SM> value=C
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.mDSId] Set parameter: index=8, jdbcType=NUMERIC,
> SM> value=NULL
> SM> 2003-03-24 16:31:14,416 ERROR
> SM> [org.jboss.ejb.plugins.cmp.jdbc.sybase.JDBCSybaseC
> SM> reateCommand.MDSVector] Could not create entity
> SM> com.sybase.jdbc2.jdbc.SybSQLException: Column name MV_MDS_ID appears
more
> SM> than o
> SM> nce in the result column list.
>
> SM> Because the CMP fileds and CMR fields do overlap - See
JDBCEntityBridge line
> SM> 151
>
> SM> Thanks!!!
>
> SM> Simone
>
> SM> - Original Message -
> SM> From: "Alex Loubyansky" <[EMAIL PROTECTED]>
> SM> To: "Simone Milani" <[EMAIL PROTECTED]>
> SM> Sent: Monday, March 24, 2003 3:52 PM
> SM> Subject: Re[4]: [JBoss-user] CMR with FK in the database
>
>
> >> Hello Simone,
> >>
> >> actually, it looks like exposing FK field[s] as non-null CMP field[s].
> >> Just map FK fields to CMP fields in jbosscmp-jdbc.xml.
> >>
> >> NOTE: there is currently a bug (stack overflow on loading) in FK fields
> SM> map to CMP columns.
> >> I can't commit changes to CVS the whole day. I hope Dain will help
> >> help me and today it'll be fixed in CVS.
> >>
> >> alex
> >>
> >> Monday, March 24, 2003, 3:45:54 PM, Simone Milani wrote:
> >>
> >> SM> Hi Alex,
> >>
> >> SM> Thanks!  Do I have to expose the FK field in my ChildBean?
Could
> SM> you
> >> SM> provide an example?
> >>
> >> SM> Thanks
> >>
> >> SM> Simone
> >> SM> - Original Message -

Re: [JBoss-user] jboss.xml commit-option

2003-03-25 Thread Simone Milani



You need to merge the JBoss.xml with your file 
jboss-container.xml where you put something like
 
   
  
 
MyContainer
...

        
A  
   

 
And set the container of your bean to 
MyContainer.
 
Hope it helps
 
Simone

  - Original Message - 
  From: 
  Sonnek, 
  Ryan 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Monday, March 24, 2003 6:06 
PM
  Subject: [JBoss-user] jboss.xml 
  commit-option
  
  is 
  there a way to have the commit-option tags generated by xdoclet?  i 
  searched through the jboss_xml.xdt and couldn't find any reference to 
  commit-option or optiond-refresh-rate.  does the jboss xdoclet module 
  have such functionality?
   
  thanks
  Ryan
  
  Ryan J. Sonnek Brown Printing Company J2EE Application Developer 507.835.0803 [EMAIL PROTECTED] 
  
   


Re: Re[6]: [JBoss-user] CMR with FK in the database

2003-03-24 Thread Simone Milani
Hi Alex,
Here you go:

  
 MDSVector
   java:/MDS
   Sybase
 false
 false
 false
 MDS_VECTOR

 
additionalInfo
MV_ADDITIONAL_INFO

VARCHAR
VARCHAR(255)


 
iD
MV_ID

VARCHAR
VARCHAR(255)


 
mVKey
MV_KEY

NUMERIC
NUMERIC(8)

   

 
mDSID
MV_MDS_ID

NUMERIC
NUMERIC(8)


 
seqNo
MV_SEQ_NO

SMALLINT
SMALLINT(5)


 
spread
MV_SPREAD

DOUBLE
DOUBLE PRECISION(15)


 
value
MV_VALUE

DOUBLE
DOUBLE PRECISION(15)


 
valueType
MV_VALUE_TYPE

CHAR
CHAR(12)



 
 
  

  

  mDSKeyMatrix-mDSMatrixs

  

mDSKeyMatrix-has-mDSMatrixs
  
 
   mDSId
   MM_MDS_ID
 
  

  
  

mDSMatrix-has-mDSKeyMatrix


  


  mDSKeyVector-mDSVectors

  

mDSVector-has-mDSKeyVector
  true


  
  

mDSKeyVector-has-mDSVectors
  
 
   mDSId
   MV_MDS_ID
 
  

  

  

Note I am running on Standard CMP 2.x EntityBean container

Thanks!

Simone


- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 6:22 PM
Subject: Re[6]: [JBoss-user] CMR with FK in the database


> Could you, please, post jbosscmp-jdbc.xml excerpt for MDS_VECTOR
> entity and relationship mapping?
>
> thanks,
> alex
>
> Monday, March 24, 2003, 6:35:05 PM, Simone Milani wrote:
>
> SM> Hi Alex,
>
> SM> Thanks, but that does not work for me :(  I am using RC4 and get
this
> SM> error if I do expose the FK field as CMP field:
>
> SM> 2003-03-24 16:31:14,416 DEBUG
> SM> [org.jboss.ejb.plugins.cmp.jdbc.sybase.JDBCSybaseC
> SM> reateCommand.MDSVector] Executing SQL: INSERT INTO MDS_VECTOR
> SM> (MV_ADDITIONAL_INF
> SM> O, MV_ID, !!!MV_MDS_ID   , MV_SEQ_NO, MV_SPREAD, MV_VALUE,
> SM> MV_VALUE_TYPE, !MV_MDS_ID) V
> SM> ALUES (?, ?, ?, ?, ?, ?, ?, ?)
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.additionalInfo] Set parameter: index=1,
> SM> jdbcType=VARCHAR, va
> SM> lue=NULL
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.iD] Set parameter: index=2, jdbcType=VARCHAR,
value=NULL
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.mDSID] Set parameter: index=3, jdbcType=NUMERIC,
> SM> value=NULL
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.seqNo] Set parameter: index=4, jdbcType=SMALLINT,
> SM> value=NULL
>
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.spread] Set parameter: index=5, jdbcType=DOUBLE,
> SM> value=0.0
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.value] Set parameter: index=6, jdbcType=DOUBLE,
> SM> value=2.0
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.valueType] Set parameter: index=7, jdbcType=CHAR,
> SM> value=C
> SM> 2003-03-24 16:31:14,416 TRACE
> SM> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
> SM> eldBridge.MDSVector.mDSId] Set parameter: index=8, jdbcType=NUMERIC,
> SM> value=NULL
> SM> 2003-03-24 16:31:14,416 ERROR
> SM> [org.jboss.ejb.plugins.cmp.jdbc.sybase.JDBCSybaseC
> SM> reateCommand.MDSVector] Could not create entity
> SM> com.sybase.jdbc2.jdbc.SybSQLException: Column name MV_MDS_ID appears
more
> SM> than o
> SM> nce in the result column list.
>
> SM> Because the CMP fileds and CMR fields do overlap - See
JDBCEntityBridge line
> SM> 151
>
> SM> Thanks!!!
>
> SM> Simone
>
> SM> - Original Message -
> SM> From: "Alex Loubyansky" <[EMAIL PROTECTED]>
> SM> To: "Simone Milani" <[EMAIL PROTECTED]>
> SM> Sent: Monday, March 24, 2003 3:52 PM
> SM> Subject: R

Re: Re[4]: [JBoss-user] CMR with FK in the database

2003-03-24 Thread Simone Milani
Hi Alex,

Thanks, but that does not work for me :(  I am using RC4 and get this
error if I do expose the FK field as CMP field:

2003-03-24 16:31:14,416 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.sybase.JDBCSybaseC
reateCommand.MDSVector] Executing SQL: INSERT INTO MDS_VECTOR
(MV_ADDITIONAL_INF
O, MV_ID, !!!MV_MDS_ID   , MV_SEQ_NO, MV_SPREAD, MV_VALUE,
MV_VALUE_TYPE, !MV_MDS_ID) V
ALUES (?, ?, ?, ?, ?, ?, ?, ?)
2003-03-24 16:31:14,416 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
eldBridge.MDSVector.additionalInfo] Set parameter: index=1,
jdbcType=VARCHAR, va
lue=NULL
2003-03-24 16:31:14,416 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
eldBridge.MDSVector.iD] Set parameter: index=2, jdbcType=VARCHAR, value=NULL
2003-03-24 16:31:14,416 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
eldBridge.MDSVector.mDSID] Set parameter: index=3, jdbcType=NUMERIC,
value=NULL
2003-03-24 16:31:14,416 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
eldBridge.MDSVector.seqNo] Set parameter: index=4, jdbcType=SMALLINT,
value=NULL

2003-03-24 16:31:14,416 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
eldBridge.MDSVector.spread] Set parameter: index=5, jdbcType=DOUBLE,
value=0.0
2003-03-24 16:31:14,416 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
eldBridge.MDSVector.value] Set parameter: index=6, jdbcType=DOUBLE,
value=2.0
2003-03-24 16:31:14,416 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
eldBridge.MDSVector.valueType] Set parameter: index=7, jdbcType=CHAR,
value=C
2003-03-24 16:31:14,416 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFi
eldBridge.MDSVector.mDSId] Set parameter: index=8, jdbcType=NUMERIC,
value=NULL
2003-03-24 16:31:14,416 ERROR
[org.jboss.ejb.plugins.cmp.jdbc.sybase.JDBCSybaseC
reateCommand.MDSVector] Could not create entity
com.sybase.jdbc2.jdbc.SybSQLException: Column name MV_MDS_ID appears more
than o
nce in the result column list.

Because the CMP fileds and CMR fields do overlap - See JDBCEntityBridge line
151

Thanks!!!

Simone

- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 3:52 PM
Subject: Re[4]: [JBoss-user] CMR with FK in the database


> Hello Simone,
>
> actually, it looks like exposing FK field[s] as non-null CMP field[s].
> Just map FK fields to CMP fields in jbosscmp-jdbc.xml.
>
> NOTE: there is currently a bug (stack overflow on loading) in FK fields
map to CMP columns.
> I can't commit changes to CVS the whole day. I hope Dain will help
> help me and today it'll be fixed in CVS.
>
> alex
>
> Monday, March 24, 2003, 3:45:54 PM, Simone Milani wrote:
>
> SM> Hi Alex,
>
> SM> Thanks!  Do I have to expose the FK field in my ChildBean?  Could
you
> SM> provide an example?
>
> SM> Thanks
>
> SM> Simone
> SM> - Original Message -
> SM> From: "Alex Loubyansky" <[EMAIL PROTECTED]>
> SM> To: "Jonathan.O'[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> SM> Sent: Monday, March 24, 2003 12:06 PM
> SM> Subject: Re[2]: [JBoss-user] CMR with FK in the database
>
>
> >> JBoss-3.2 now supports NON-NULL foreig keys if foreign key fields are
> >> mapped to NON NULL CMP fields.
> >>
> >> alex
> >>
> >> Monday, March 24, 2003, 1:50:17 PM, Jonathan O'Connor wrote:
> >>
> >> JOCxd> Simone,
> >> JOCxd> Look for previous messages about INSERT after ejbPostCreate.
> >> JOCxd> If you use oracle you can also mark the NON NULL constraint as
> SM> DEFERRABLE
> >> JOCxd> INITIALLY DEFERRED. However, lots of DBAs don't like this.
> >> JOCxd> Ciao,
> >> JOCxd> Jonathan O'Connor
> >>
> >>
> >>
> >>
> >>
> >> JOCxd> "Simone Milani" <[EMAIL PROTECTED]>
> >> JOCxd> Sent by: [EMAIL PROTECTED]
> >> JOCxd> 24.03.2003 10:43
> >> JOCxd> Please respond to jboss-user
> >>
> >>
> >> JOCxd> To: <[EMAIL PROTECTED]>
> >> JOCxd> cc:
> >> JOCxd> Subject:[JBoss-user] CMR with FK in the database
> >>
> >>
> >> JOCxd> Hi,
> >>
> >> JOCxd> I have a one to many relation with a FK constaint and the FK
in
> SM> the
> >> JOCxd> children declared as non nullable.  The SQL that is generated by
> SM> JBoss
> >> JOCxd> seems to violate this constraint.
> >>
> >> JOCxd> Please help!!!
> >>
> >>
> >> JOCxd> Thanks
> >>
> >> JOCxd> Simone
>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: Re[2]: [JBoss-user] CMR with FK in the database

2003-03-24 Thread Simone Milani
Hi Alex,

Thanks!  Do I have to expose the FK field in my ChildBean?  Could you
provide an example?

Thanks

Simone
- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Jonathan.O'[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 12:06 PM
Subject: Re[2]: [JBoss-user] CMR with FK in the database


> JBoss-3.2 now supports NON-NULL foreig keys if foreign key fields are
> mapped to NON NULL CMP fields.
>
> alex
>
> Monday, March 24, 2003, 1:50:17 PM, Jonathan O'Connor wrote:
>
> JOCxd> Simone,
> JOCxd> Look for previous messages about INSERT after ejbPostCreate.
> JOCxd> If you use oracle you can also mark the NON NULL constraint as
DEFERRABLE
> JOCxd> INITIALLY DEFERRED. However, lots of DBAs don't like this.
> JOCxd> Ciao,
> JOCxd> Jonathan O'Connor
>
>
>
>
>
> JOCxd> "Simone Milani" <[EMAIL PROTECTED]>
> JOCxd> Sent by: [EMAIL PROTECTED]
> JOCxd> 24.03.2003 10:43
> JOCxd> Please respond to jboss-user
>
>
> JOCxd> To: <[EMAIL PROTECTED]>
> JOCxd> cc:
> JOCxd> Subject:[JBoss-user] CMR with FK in the database
>
>
> JOCxd> Hi,
>
> JOCxd> I have a one to many relation with a FK constaint and the FK in
the
> JOCxd> children declared as non nullable.  The SQL that is generated by
JBoss
> JOCxd> seems to violate this constraint.
>
> JOCxd> Please help!!!
>
>
> JOCxd> Thanks
>
> JOCxd> Simone
>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] CMR with FK in the database

2003-03-24 Thread Simone Milani



Hi,
 
    I have a one to many relation 
with a FK constaint and the FK in the children declared as non nullable.  
The SQL that is generated by JBoss seems to violate this 
constraint.
 
Please help!!!
 
 
Thanks
 
Simone


Re: [JBoss-user] Optimistic Locking error

2003-03-21 Thread Simone Milani
Hi Alex,

I just did a test and looks that there is the same error even without
the cascadedelete.  Is it possible?

Thanks!!!

Simone
- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 3:50 PM
Subject: Re: [JBoss-user] Optimistic Locking error


> Please, submit a bug report and include all this info.
>
> Thank you,
> alex
>
> Thursday, March 20, 2003, 5:20:34 PM, Simone Milani wrote:
>
> SM> Hi,
>
> SM> I am using 3.2.0 RC3 and have a an entity bean with a one to many
relation with another entity bean.  Both uses Optimistic Locking with
modified startegy.  They are tagged for cascade delete
> SM> and when I do a remove I get the following error:
>
> SM> 2003-03-20 15:07:25,997 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSVector] Add finder
results: entity=MDSVector results=[11377836, 11377837, 11377838, 11377839,
11377840, 11377841,
> SM> 11377842, 11377843, 11377844, 11377845, 11377846, 11377847, 11377848,
11377849, 11377850, 11377851, 11377852, 11377853, 11377854, 11377855,
11377856, 11377857, 11377858, 11377859, 11377860,
> SM> 11377861, 11377862, 11377863, 11377864, 11377865, 11377866, 11377867,
11377868, 11377869, 11377870, 11377871, 11377872, 11377873, 11377874,
11377875, 11377876, 11377877, 11377878, 11377879,
> SM> 11377880, 11377881, 11377882, 11377883, 11377884, 11377885, 11377886,
11377887, 11377888, 11377889, 11377890, 11377891, 11377892, 11377893,
11377894, 11377895, 11377896, 11377897, 11377898,
> SM> 11377899, 11377900, 11377901, 11377902, 11377903, 11377904, 11377905]
readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=1000,
eagerLoadGroup=*]
> SM> 2003-03-20 15:07:25,997 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSVector] Removing
dereferenced results: [11377836, 11377837, 11377838, 11377839, 11377840,
11377841, 11377842,
> SM> 11377843, 11377844, 11377845, 11377846, 11377847, 11377848, 11377849,
11377850, 11377851, 11377852, 11377853, 11377854, 11377855, 11377856,
11377857, 11377858, 11377859, 11377860, 11377861,
> SM> 11377862, 11377863, 11377864, 11377865, 11377866, 11377867, 11377868,
11377869, 11377870, 11377871, 11377872, 11377873, 11377874, 11377875,
11377876, 11377877, 11377878, 11377879, 11377880,
> SM> 11377881, 11377882, 11377883, 11377884, 11377885, 11377886, 11377887,
11377888, 11377889, 11377890, 11377891, 11377892, 11377893, 11377894,
11377895, 11377896, 11377897, 11377898, 11377899,
> SM> 11377900, 11377901, 11377902, 11377903, 11377904, 11377905]
> SM> 2003-03-20 15:07:26,012 TRACE
[org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor] invokerBInding is null
in ProxyFactoryFinder
> SM> 2003-03-20 15:07:26,012 TRACE [org.jboss.ejb.plugins.LogInterceptor]
Start method=
> SM> 2003-03-20 15:07:26,012 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Current transaction in MI is TransactionImpl:XidImpl [FormatId=257,
GlobalId=dblon34056//10, BranchQual=]
> SM> 2003-03-20 15:07:26,012 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TX_SUPPORTS for 
> SM> 2003-03-20 15:07:26,012 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Thread came in with tx TransactionImpl:XidImpl [FormatId=257,
GlobalId=dblon34056//10, BranchQual=]
> SM> 2003-03-20 15:07:26,012 TRACE
[org.jboss.ejb.plugins.EntityLockInterceptor] Begin invoke, key=11377836
> SM> 2003-03-20 15:07:26,012 TRACE
[org.jboss.ejb.plugins.EntityInstancePool] Get instance
[EMAIL PROTECTED]
com.db.jbozz.ejb.entity.mds.MDSVectorCMP
> SM> 2003-03-20 15:07:26,012 TRACE
[org.jboss.ejb.plugins.EntityLockInterceptor] End invoke, key=11377836
> SM> 2003-03-20 15:07:26,012 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException, causedBy:
> SM> java.lang.NullPointerException
> SM>  at
org.jboss.ejb.plugins.lock.JDBCOptimisticLock.schedule(JDBCOptimisticLock.ja
va:643)
> SM>  at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
a:103)
> SM>  at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce
ptor.java:69)
> SM>  at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:108)
> SM>  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:273)
> SM>  at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
> SM>  at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:13
0)
> SM>  at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
> SM>  at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
rInterceptor.java:154)
> SM>  at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
> SM>  at org.jboss.ejb.Container.invoke(Co

[JBoss-user] Cascade Delete Logic

2003-03-20 Thread Simone Milani



Hi,
 
    I found this strange behaviour 
on cascade delete:  Say you have ParentBean and ChildBean where ParentBean 
has many ChildBeans.  When removing ParentBean on cascade delete JBoss 
first tries to set the FK on ChildBean to NULL and then do the removals.  
All this anyway fails if your FK is NonNullable.  Any idea on how to have 
the ChildBean removed first and then the ParentBean removed?
 
Thanks
 
Simone


[JBoss-user] Optimistic Locking error

2003-03-20 Thread Simone Milani



Hi,
 
    I am using 3.2.0 RC3 and have a 
an entity bean with a one to many relation with another entity bean.  Both 
uses Optimistic Locking with modified startegy.  They are tagged for 
cascade delete and when I do a remove I get the following error:
 
2003-03-20 15:07:25,997 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSVector] Add finder results: 
entity=MDSVector results=[11377836, 11377837, 11377838, 11377839, 11377840, 
11377841, 11377842, 11377843, 11377844, 11377845, 11377846, 11377847, 11377848, 
11377849, 11377850, 11377851, 11377852, 11377853, 11377854, 11377855, 11377856, 
11377857, 11377858, 11377859, 11377860, 11377861, 11377862, 11377863, 11377864, 
11377865, 11377866, 11377867, 11377868, 11377869, 11377870, 11377871, 11377872, 
11377873, 11377874, 11377875, 11377876, 11377877, 11377878, 11377879, 11377880, 
11377881, 11377882, 11377883, 11377884, 11377885, 11377886, 11377887, 11377888, 
11377889, 11377890, 11377891, 11377892, 11377893, 11377894, 11377895, 11377896, 
11377897, 11377898, 11377899, 11377900, 11377901, 11377902, 11377903, 11377904, 
11377905] readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=1000, 
eagerLoadGroup=*]2003-03-20 15:07:25,997 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSVector] Removing dereferenced 
results: [11377836, 11377837, 11377838, 11377839, 11377840, 11377841, 11377842, 
11377843, 11377844, 11377845, 11377846, 11377847, 11377848, 11377849, 11377850, 
11377851, 11377852, 11377853, 11377854, 11377855, 11377856, 11377857, 11377858, 
11377859, 11377860, 11377861, 11377862, 11377863, 11377864, 11377865, 11377866, 
11377867, 11377868, 11377869, 11377870, 11377871, 11377872, 11377873, 11377874, 
11377875, 11377876, 11377877, 11377878, 11377879, 11377880, 11377881, 11377882, 
11377883, 11377884, 11377885, 11377886, 11377887, 11377888, 11377889, 11377890, 
11377891, 11377892, 11377893, 11377894, 11377895, 11377896, 11377897, 11377898, 
11377899, 11377900, 11377901, 11377902, 11377903, 11377904, 
11377905]2003-03-20 15:07:26,012 TRACE 
[org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor] invokerBInding is null in 
ProxyFactoryFinder2003-03-20 15:07:26,012 TRACE 
[org.jboss.ejb.plugins.LogInterceptor] Start method=2003-03-20 15:07:26,012 TRACE 
[org.jboss.ejb.plugins.TxInterceptorCMT] Current transaction in MI is 
TransactionImpl:XidImpl [FormatId=257, GlobalId=dblon34056//10, 
BranchQual=]2003-03-20 15:07:26,012 TRACE 
[org.jboss.ejb.plugins.TxInterceptorCMT] TX_SUPPORTS for 2003-03-20 15:07:26,012 TRACE 
[org.jboss.ejb.plugins.TxInterceptorCMT] Thread came in with tx 
TransactionImpl:XidImpl [FormatId=257, GlobalId=dblon34056//10, 
BranchQual=]2003-03-20 15:07:26,012 TRACE 
[org.jboss.ejb.plugins.EntityLockInterceptor] Begin invoke, 
key=113778362003-03-20 15:07:26,012 TRACE 
[org.jboss.ejb.plugins.EntityInstancePool] Get instance [EMAIL PROTECTED] 
com.db.jbozz.ejb.entity.mds.MDSVectorCMP2003-03-20 15:07:26,012 TRACE 
[org.jboss.ejb.plugins.EntityLockInterceptor] End invoke, 
key=113778362003-03-20 15:07:26,012 ERROR 
[org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, 
causedBy:java.lang.NullPointerException at 
org.jboss.ejb.plugins.lock.JDBCOptimisticLock.schedule(JDBCOptimisticLock.java:643) at 
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:103) at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:108) at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:273) at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208) at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154) at 
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483) at 
org.jboss.ejb.Container.invoke(Container.java:652) at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeRemoveRelation(JDBCCMRFieldBridge.java:866) at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLinks(JDBCCMRFieldBridge.java:761) at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLinks(JDBCCMRFieldBridge.java:739) at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:653) at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.removeFromRelations(JDBCRemoveEntityCommand.java:134) at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.execute(JDBCRemoveEntityCommand.java:69) at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.removeEntity(JDBCStoreManager.java:757) at 
org.jboss.ejb.plugins.CMPPersistenceManager.removeEntity(CMPPersistenceManager.java:518) at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.rem

Re: [JBoss-user] Optimistic locking Strategy

2003-03-20 Thread Simone Milani
Hi Alex,

I am dealing with a legacy app and the database is designed so that it
has a timestamp as TIMESTAMP sybase type which is autoupdated on insert.
There are no benefits on using TIMESTAMP instead of DATETIME, I just HAVE to
use it.

Simone
- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 12:08 PM
Subject: Re: [JBoss-user] Optimistic locking Strategy


> How will this differ or what benefits will it have comparing to
> timestamp version column strategy already implemented?
>
> alex
>
> Thursday, March 20, 2003, 1:31:33 PM, Simone Milani wrote:
>
> SM> Hi,
>
> SM> The sybase database includes a type called TIMESTAMP which is
effectively a  VARBINARY(8) and is automatically updated on every insert by
the database itself.  Now this field is not a date
> SM> and does works with the TimestampColumnLockingStrategy.  I would like
to implement a new Strategy for this SQL type.  Any help would be really
appreciated!
>
> SM> Thanks
>
> SM> Simone
>
>
>
>
> ---
> This SF.net email is sponsored by: Tablet PC.
> Does your code think in ink? You could win a Tablet PC.
> Get a free Tablet PC hat just for playing. What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Optimistic locking Strategy

2003-03-20 Thread Simone Milani



Hi,
 
    The sybase database includes a 
type called TIMESTAMP which is effectively a  VARBINARY(8) and is 
automatically updated on every insert by the database itself.  Now this 
field is not a date and does works with the 
TimestampColumnLockingStrategy.  I would like to implement a new Strategy 
for this SQL type.  Any help would be really appreciated!
 
Thanks
 
Simone


[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


Re: [JBoss-user] HiLo key generator

2003-03-06 Thread Simone Milani
This paper should give you the answer
http://www.ambysoft.com/persistenceLayer.pdf

Simone
- Original Message -
From: 
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 12:45 PM
Subject: Re: [JBoss-user] HiLo key generator


> Pardon my ignorance, but what is a HiLo key generator? Many years ago, we
> used an incrementing number, but reversed the bits, so that the keys were
> well distributed. Is this the same thing? Should I have patented the idea
> :-) ? Too late I suppose!
> Ciao,
> Jonathan O'Connor
> Development Manager
> XCOM Dublin
> Phone: +353 1 872 3305
> Mobile: +353 86 824 0736
>
>
>
>
> Alex Loubyansky <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
> 05.03.2003 19:36
> Please respond to jboss-user
>
>
> To: JBoss-User <[EMAIL PROTECTED]>
> cc:
> Subject:[JBoss-user] HiLo key generator
>
>
> I just added HiLo key generator to HEAD.
> Now, using entity-command configuration, it's possible to create
> entities with either "known" or unknown primary keys using UUID or
> HiLo key generators.
>
> Key generator is deployed with *-service.xml. Here is an excerpt from
> hilo-service.xml:
>
>  code="org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory"
>   name="jboss:service=KeyGeneratorFactory,type=HiLo">
>
>name="FactoryName">java:/HiLoKeyGeneratorFactory
>   java:/DefaultDS
>name="TransactionManager">java:/TransactionManager
>   JBOSS_SEQUENCE
>   ID
>   INTEGER
>   100
>
>
> If the table does not exist at deployment, it is created.
> Is there a need to backport it to 3.2 and/or 3.0 versions?
>
> Thanks,
> alex
>
>
>
>
> ---
> 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] Re: update on automatic login

2003-03-06 Thread Simone Milani
I think what Tomcat does after a post to j_security_check is look inside the
user session (private to the container - org.apache.catalina.Session) for an
attribute containing the original page that the user was trying to access.
If it cannot find it throws an error 400.  What you can do is have a custom
400 error page that redirects to somewhere.  For details see
org.apache.catalina.authenticator.FormAuthenticator where
Constants.FORM_ACTION = " j_security_check ".

// Redirect the user to the original request URI (which will cause
// the original request to be restored)
requestURI = savedRequestURL(session);
if (debug >= 1)
log("Redirecting to original '" + requestURI + "'");
if (requestURI == null)
hres.sendError(HttpServletResponse.SC_BAD_REQUEST,
   sm.getString("authenticator.formlogin"));
else
hres.sendRedirect(hres.encodeRedirectURL(requestURI));
return (false);

And HttpServletResponse.SC_BAD_REQUEST=400

Hope it helps

Simone
- Original Message -
From: "Ken Yee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 5:43 PM
Subject: [JBoss-user] Re: update on automatic login


>
> FYI, if you access your form based login page (mine is called login.jsp)
> directly from a browser, you can submit it and Tomcat/JBoss complains
> that "Invalid direct reference to form login page" but the user is
> still logged in (I can access a restricted URL w/o a login prompt),
> so it looks like that "post to login page from automatic login" servlet
> workaround will work, but it may be depending on a bug in
> Tomcat/JBoss...
>
>
>  ken
>
>
> ___
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
> ---
> 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] JMNS version in 3.2.0

2003-03-04 Thread Simone Milani



Hi,
 
What JMS version is supported in 3.2.0 RC1, 1.1 or 
1.0.2b?
 
Thanks!
 
Simone


[JBoss-user] JDBCOptimisticLock

2003-03-04 Thread Simone Milani



Hi,
 
    Is anyone using the 
JDBCOptimisticLock?  It looks like it fails under heavy load... I made a 
bug report http://sourceforge.net/tracker/index.php?func=detail&aid=692817&group_id=22866&atid=376685 and 
wonder if anyone had a look.
 
Thanks
 
 
Simone