[JBoss-user] Maximum queue depth on JBoss

2003-09-30 Thread Horia Muntean
Hello,

Is there any way that one can configure maximum queue depth on JBoss 
2.4.x or any other version for that matter?

Regards,
Horia


---
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] EJB inserts do not show up in subsequent queries:

2003-09-30 Thread Bill Burke
So what's the behavior here?  You do inserts within a transaction and 
commit, but you DO NOT see the inserts in DB?  Or you do not see them 
within JBoss?

Rod Macpherson wrote:
More information:

Updates have the same problem: update an entity bean and resulting
update does NOT show up in subsequent JDBC query. Now, if we view the
updated value through an entity bean then it shows up, no problemo. The
guilty party seems to be JDBC but yet it's not the driver because a)
it's the same driver we use in 3.0.7, b) it happens on SQL Server or
Oracle 9i. 

Is there anything else we can do to help narrow this down for you guys?

Thanks,

Rod

-Original Message-
From: Rod Macpherson 
Sent: Tuesday, September 30, 2003 5:37 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent
queries:

New Info: the SQL is the same except that we get this message on 3.0.7
but NOT on 3.2.2:
13:33:20,468 DEBUG [Region] Rows affected = 1

There is no "Rows affected" message on 3.2.2 but then the logging has
changed so who knows if it's significant. We definitely had debugging on
for SQL in both cases. I tried taking out the new
insert-after-ejb-post-create container configuration but the result was
the same: inserts on 3.2.2 RC4 do not show up until you restart JBoss. 

Rod

-Original Message-
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 9:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
queries:

Can you see the SQL executed? Any differences?
What does "we must bounce JBoss..." mean?
Thanks,
alex
Rod Macpherson wrote:


3.2.2 RC4 is NFG:

Ran the same EAR against the same database on 3.0.7 without incident.
On 3.2.2 RC4 we must bounce JBoss to see inserted records.
-Original Message-
From: Rod Macpherson
Sent: Tuesday, September 30, 2003 5:13 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent 
queries

TX commits (we can see the data with, say, toad or enterprise manager)


and subsequent session bean call initiated query does not show the
data. The insert is initiated with an HTTP request and the view is 
initiated in a separate HTTP request so the TX either succeeded or 
silently failed but we can see the data outside of JBoss.

This is our first use of 3.2.2 and we are using the x-ds.xml examples
as the basis of our sqlserver and oracle ds configurations. Point 
being this is not a sudden breakage but rather a new migration from 
3.0. so it could be pilot error on our part. Drivers are the same, 
code is the same, database is the same, new JBoss 3.2.2 RC4. Also 
tried local build RC4 source with jetty as the web container: same 
problem.

This morning I will personally verify that we ran the same app against


JBoss 3.0 without incident. AFAIK that test was done and everything
was fine in 3.0. Maybe there is something obvious in the oracle-ds.xml


and mssql-ds.xml we did not do?




 
   OracleDSX
   jdbc:oracle:thin:@foo:1521:bar
   oracle.jdbc.driver.OracleDriver
   austin
   shaggadelic
org.jboss.resource.adapter.jdbc.vendor.Or
ac
leExceptionSorter
 

-Original Message-
From: Bill Burke [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent 
queries

version?  Same tx?  Did tx commit?

Bill

Rod Macpherson wrote:



New records created using entity beans are not showing up in
subsequent queries. Problem is manifest using both SQL Server and 
Oracle in 3.2.2


RCX - no problem on 3.0.X.






---
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
---
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

--

Bill Burke
Chief Architect
JBoss Group LLC.



---
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] EJB inserts do not show up in subsequent queries:

2003-09-30 Thread Adrian Brock
Enable TRACE logging in conf/log4j.xml for
org.jboss.ejb (ejbs)
org.jboss.resource (jca)
org.jboss.tm (transaction manager)

Post the log/server.log *snippets* from your tests.

Some explanation about what they do would be useful
if it is not obvious from the logs.

Regards,
Adrian

On Wed, 2003-10-01 at 02:12, Rod Macpherson wrote:
> More information:
> 
> Updates have the same problem: update an entity bean and resulting
> update does NOT show up in subsequent JDBC query. Now, if we view the
> updated value through an entity bean then it shows up, no problemo. The
> guilty party seems to be JDBC but yet it's not the driver because a)
> it's the same driver we use in 3.0.7, b) it happens on SQL Server or
> Oracle 9i. 
> 
> Is there anything else we can do to help narrow this down for you guys?
> 
> Thanks,
> 
> Rod
> 
> -Original Message-
> From: Rod Macpherson 
> Sent: Tuesday, September 30, 2003 5:37 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent
> queries:
> 
> 
> New Info: the SQL is the same except that we get this message on 3.0.7
> but NOT on 3.2.2:
> 
> 13:33:20,468 DEBUG [Region] Rows affected = 1
> 
> There is no "Rows affected" message on 3.2.2 but then the logging has
> changed so who knows if it's significant. We definitely had debugging on
> for SQL in both cases. I tried taking out the new
> insert-after-ejb-post-create container configuration but the result was
> the same: inserts on 3.2.2 RC4 do not show up until you restart JBoss. 
> 
> Rod
> 
> -Original Message-
> From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 30, 2003 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
> queries:
> 
> 
> Can you see the SQL executed? Any differences?
> What does "we must bounce JBoss..." mean?
> 
> Thanks,
> alex
> 
> Rod Macpherson wrote:
> 
> > 3.2.2 RC4 is NFG:
> > 
> > Ran the same EAR against the same database on 3.0.7 without incident.
> > On 3.2.2 RC4 we must bounce JBoss to see inserted records.
> > 
> > 
> > -Original Message-
> > From: Rod Macpherson
> > Sent: Tuesday, September 30, 2003 5:13 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent 
> > queries
> > 
> > 
> > TX commits (we can see the data with, say, toad or enterprise manager)
> 
> > and subsequent session bean call initiated query does not show the
> > data. The insert is initiated with an HTTP request and the view is 
> > initiated in a separate HTTP request so the TX either succeeded or 
> > silently failed but we can see the data outside of JBoss.
> > 
> > This is our first use of 3.2.2 and we are using the x-ds.xml examples
> > as the basis of our sqlserver and oracle ds configurations. Point 
> > being this is not a sudden breakage but rather a new migration from 
> > 3.0. so it could be pilot error on our part. Drivers are the same, 
> > code is the same, database is the same, new JBoss 3.2.2 RC4. Also 
> > tried local build RC4 source with jetty as the web container: same 
> > problem.
> > 
> > This morning I will personally verify that we ran the same app against
> 
> > JBoss 3.0 without incident. AFAIK that test was done and everything
> > was fine in 3.0. Maybe there is something obvious in the oracle-ds.xml
> 
> > and mssql-ds.xml we did not do?
> > 
> > 
> > 
> > 
> >   
> > OracleDSX
> > jdbc:oracle:thin:@foo:1521:bar
> > oracle.jdbc.driver.OracleDriver
> > austin
> > shaggadelic
> >  
> > org.jboss.resource.adapter.jdbc.vendor.Or
> > ac
> > leExceptionSorter
> >   
> > 
> > 
> > 
> > -Original Message-
> > From: Bill Burke [mailto:[EMAIL PROTECTED]
> > Sent: Monday, September 29, 2003 5:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent 
> > queries
> > 
> > 
> > version?  Same tx?  Did tx commit?
> > 
> > Bill
> > 
> > Rod Macpherson wrote:
> > 
> > 
> >>New records created using entity beans are not showing up in
> >>subsequent queries. Problem is manifest using both SQL Server and 
> >>Oracle in 3.2.2
> > 
> > 
> >>RCX - no problem on 3.0.X.
> > 
> > 
> 
> 
> 
> 
> ---
> 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
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _

RE: [JBoss-user] EJB inserts do not show up in subsequent queries:

2003-09-30 Thread Rod Macpherson
More information:

Updates have the same problem: update an entity bean and resulting
update does NOT show up in subsequent JDBC query. Now, if we view the
updated value through an entity bean then it shows up, no problemo. The
guilty party seems to be JDBC but yet it's not the driver because a)
it's the same driver we use in 3.0.7, b) it happens on SQL Server or
Oracle 9i. 

Is there anything else we can do to help narrow this down for you guys?

Thanks,

Rod

-Original Message-
From: Rod Macpherson 
Sent: Tuesday, September 30, 2003 5:37 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent
queries:


New Info: the SQL is the same except that we get this message on 3.0.7
but NOT on 3.2.2:

13:33:20,468 DEBUG [Region] Rows affected = 1

There is no "Rows affected" message on 3.2.2 but then the logging has
changed so who knows if it's significant. We definitely had debugging on
for SQL in both cases. I tried taking out the new
insert-after-ejb-post-create container configuration but the result was
the same: inserts on 3.2.2 RC4 do not show up until you restart JBoss. 

Rod

-Original Message-
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 9:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
queries:


Can you see the SQL executed? Any differences?
What does "we must bounce JBoss..." mean?

Thanks,
alex

Rod Macpherson wrote:

> 3.2.2 RC4 is NFG:
> 
> Ran the same EAR against the same database on 3.0.7 without incident.
> On 3.2.2 RC4 we must bounce JBoss to see inserted records.
> 
> 
> -Original Message-
> From: Rod Macpherson
> Sent: Tuesday, September 30, 2003 5:13 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent 
> queries
> 
> 
> TX commits (we can see the data with, say, toad or enterprise manager)

> and subsequent session bean call initiated query does not show the
> data. The insert is initiated with an HTTP request and the view is 
> initiated in a separate HTTP request so the TX either succeeded or 
> silently failed but we can see the data outside of JBoss.
> 
> This is our first use of 3.2.2 and we are using the x-ds.xml examples
> as the basis of our sqlserver and oracle ds configurations. Point 
> being this is not a sudden breakage but rather a new migration from 
> 3.0. so it could be pilot error on our part. Drivers are the same, 
> code is the same, database is the same, new JBoss 3.2.2 RC4. Also 
> tried local build RC4 source with jetty as the web container: same 
> problem.
> 
> This morning I will personally verify that we ran the same app against

> JBoss 3.0 without incident. AFAIK that test was done and everything
> was fine in 3.0. Maybe there is something obvious in the oracle-ds.xml

> and mssql-ds.xml we did not do?
> 
> 
> 
> 
>   
> OracleDSX
> jdbc:oracle:thin:@foo:1521:bar
> oracle.jdbc.driver.OracleDriver
> austin
> shaggadelic
>  
> org.jboss.resource.adapter.jdbc.vendor.Or
> ac
> leExceptionSorter
>   
> 
> 
> 
> -Original Message-
> From: Bill Burke [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 29, 2003 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent 
> queries
> 
> 
> version?  Same tx?  Did tx commit?
> 
> Bill
> 
> Rod Macpherson wrote:
> 
> 
>>New records created using entity beans are not showing up in
>>subsequent queries. Problem is manifest using both SQL Server and 
>>Oracle in 3.2.2
> 
> 
>>RCX - no problem on 3.0.X.
> 
> 




---
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


---
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] EJB inserts do not show up in subsequent queries:

2003-09-30 Thread Rod Macpherson
New Info: the SQL is the same except that we get this message on 3.0.7
but NOT on 3.2.2:

13:33:20,468 DEBUG [Region] Rows affected = 1

There is no "Rows affected" message on 3.2.2 but then the logging has
changed so who knows if it's significant. We definitely had debugging on
for SQL in both cases. I tried taking out the new
insert-after-ejb-post-create container configuration but the result was
the same: inserts on 3.2.2 RC4 do not show up until you restart JBoss. 

Rod

-Original Message-
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 9:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
queries:


Can you see the SQL executed? Any differences?
What does "we must bounce JBoss..." mean?

Thanks,
alex

Rod Macpherson wrote:

> 3.2.2 RC4 is NFG:
> 
> Ran the same EAR against the same database on 3.0.7 without incident. 
> On 3.2.2 RC4 we must bounce JBoss to see inserted records.
> 
> 
> -Original Message-
> From: Rod Macpherson
> Sent: Tuesday, September 30, 2003 5:13 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent
> queries
> 
> 
> TX commits (we can see the data with, say, toad or enterprise manager)

> and subsequent session bean call initiated query does not show the 
> data. The insert is initiated with an HTTP request and the view is 
> initiated in a separate HTTP request so the TX either succeeded or 
> silently failed but we can see the data outside of JBoss.
> 
> This is our first use of 3.2.2 and we are using the x-ds.xml examples 
> as the basis of our sqlserver and oracle ds configurations. Point 
> being this is not a sudden breakage but rather a new migration from 
> 3.0. so it could be pilot error on our part. Drivers are the same, 
> code is the same, database is the same, new JBoss 3.2.2 RC4. Also 
> tried local build RC4 source with jetty as the web container: same 
> problem.
> 
> This morning I will personally verify that we ran the same app against

> JBoss 3.0 without incident. AFAIK that test was done and everything 
> was fine in 3.0. Maybe there is something obvious in the oracle-ds.xml

> and mssql-ds.xml we did not do?
> 
> 
> 
> 
>   
> OracleDSX
> jdbc:oracle:thin:@foo:1521:bar
> oracle.jdbc.driver.OracleDriver
> austin
> shaggadelic
>  
> org.jboss.resource.adapter.jdbc.vendor.Or
> ac
> leExceptionSorter
>   
> 
> 
> 
> -Original Message-
> From: Bill Burke [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 29, 2003 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
> queries
> 
> 
> version?  Same tx?  Did tx commit?
> 
> Bill
> 
> Rod Macpherson wrote:
> 
> 
>>New records created using entity beans are not showing up in 
>>subsequent queries. Problem is manifest using both SQL Server and 
>>Oracle in 3.2.2
> 
> 
>>RCX - no problem on 3.0.X.
> 
> 




---
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: [JBoss-user] 3.2.1 classloading questions

2003-09-30 Thread Guy Rouillier
Scott, I managed to put together a sample demonstrating this issue.  See 
bug 815493.

Guy Rouillier wrote:

I'll try to work on a small sample this week.  Stack trace below.

Scott M Stark wrote:

Show the full stack trace into the JBoss codebase.

2003-09-29 13:04:29,514 INFO  [org.jboss.deployment.MainDeployer] 
Starting deployment of package: 
file:/C:/jboss-3.2.1/server/default/deploy/nems_activation_mbean.sar
2003-09-29 13:04:29,655 INFO  [org.jboss.deployment.SARDeployer] nested 
deployment: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/NEMS.jar 

2003-09-29 13:04:29,701 INFO  [org.jboss.deployment.SARDeployer] nested 
deployment: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/nems_activation_mbean.jar 

2003-09-29 13:04:30,092 INFO  [org.jboss.ejb.EjbModule] Creating
2003-09-29 13:04:30,108 INFO  [org.jboss.ejb.EjbModule] Deploying 
com.masergy.ejb.NEMS.NEMS
2003-09-29 13:04:30,123 INFO  [org.jboss.ejb.StatelessSessionContainer] 
Creating
2003-09-29 13:04:30,123 WARN  [org.jboss.system.ServiceController] 
Problem creating service 
jboss.j2ee:jndiName=com/masergy/ejb/NEMS/NEMS,service=EJB
java.lang.NoClassDefFoundError: 
com/masergy/exception/MsInvalidDataException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
at java.lang.Class.privateGetPublicMethods(Class.java:1770)
at java.lang.Class.getMethods(Class.java:824)
at 
org.jboss.ejb.StatelessSessionContainer.setupBeanMapping(StatelessSessionContainer.java:535) 

at 
org.jboss.ejb.StatelessSessionContainer.createService(StatelessSessionContainer.java:135) 

at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
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(ReflectedMBeanDispatcher.java:284) 

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) 

at $Proxy11.create(Unknown Source)
at 
org.jboss.system.ServiceController.create(ServiceController.java:310)
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(ReflectedMBeanDispatcher.java:284) 

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy34.create(Unknown Source)
at org.jboss.ejb.EjbModule.createService(EjbModule.java:299)
at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
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(ReflectedMBeanDispatcher.java:284) 

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) 

at $Proxy11.create(Unknown Source)
at 
org.jboss.system.ServiceController.create(ServiceController.java:310)
at 
org.jboss.system.ServiceController.create(ServiceController.java:243)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) 

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy20.create(Unknown Source)
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:519)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
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.GeneratedMethodAccessor16.invoke(U

Re: [JBoss-user] MDB stopping and starting

2003-09-30 Thread Adrian Brock
Hello Bruce,

I couldn't understands the details of your test, so I've created
my own. I think it reproduces what you are asking for?

I have posted it to the forums, you can choose to respond there
or here.
http://www.jboss.org/thread.jsp?forum=48&thread=39974

Regards,
Adrian

On Tue, 2003-09-30 at 20:57, Bruce Slawson wrote:
> No, that doesn't appear to be that problem.  When the message 
> disappears, all the DLQs are empty.  Which release has that fix?  I am 
> using 3.2.2RC4.  
> 
> When I redeploy the ear or restart JBoss the lost message sometimes 
> reappears in the DLQ.  Not always though.
> 
> Bruce
> 
> 
> Adrian Brock wrote:
> 
> >On Tue, 2003-09-30 at 18:04, Bruce Slawson wrote:
> >  
> >
> >>Adrian,
> >>
> >>I did see that message too.  Any idea why it doesn't work reliably?
> >>
> >>
> >>
> >
> >Is this the bug I fixed where the Redelivered flag/count wasn't 
> >reset when it was sent to the dlq? So another mdb pulling from the dlq
> >would send it to its dlq straight away.
> >
> >This was also on this list last month.
> >
> >Regards,
> >Adrian
> >
> >  
> >
> >>Bruce
> >>
> >>
> >>
> >>Adrian Brock wrote:
> >>
> >>
> >>
> >>>deja-vu :-)
> >>>
> >>>http://www.mail-archive.com/[EMAIL PROTECTED]/msg31889.html
> >>>
> >>>Regards,
> >>>Adrian
> >>>
> >>>On Tue, 2003-09-30 at 01:32, Bruce Slawson wrote:
> >>> 
> >>>
> >>>  
> >>>
> I know this question has been asked a few times before but I have not 
> found a way to stop and start MDBs that works reliably.  Might be a bug 
> in the JMSContainerInvoker code.
> 
> Adrian Brock responded a while back:
> 
> 
> 
> 
> >1. Is it possible to disable/enable an MDB from receiving messages
> >from a queue via JMX?
> >  
> >
> There is an outstanding bug report (670068) where it
> doesn't setup ENC correctly if you manually stop()/start()
> the MDB container.
> 
> A simpler approach would be to register the JMSContainerInvoker
> as an MBean, exposing the JMS connection stop()/start()
> 
> 
> I used this as my starting point.  The JMSContainerInvoker in 3.2.2 has 
> stopDelivery() and startDelivery() methods in addition to the stop() and 
> start() methods Adrian mentioned.
> 
> What I want to do is create a DLQ monitor MDB that will pull messages 
> off the DLQ and put them back on the originating queue.  I wanted the 
> monitor start the MDB, sleep for a few seconds, and then stop the MDB.  
> The monitor is to run periodically using a timer.
> 
> What I did first was register the invoker proxy bindings, container 
> configuration, and assign the configuration name to the MDB in 
> jboss.xml.  I also set DeliveryActive to false so the MDB would not be 
> active a startup.
> 
> Next I wrote a timer that called startDelivery(), slept for a few 
> seconds, and then called stopDelivery().
> 
> All seemed to work okay at first.  When I did some minor queue thrash 
> testing the problems started.  The test involved a message that went to 
> the DLQ, was taken out by the started MDB, and put back in the 
> originating queue.  The originating queue MDB would roll back its 
> transaction and go back into the DLQ.  The cycle of moving a message 
> 
> 
> from the DLQ to original queue and back to DLQ might occur several times 
> >>>  
> >>>
> in the few seconds the monitor MDB is turned on.
> 
> The results for the the first few times the monitor ran were as expected 
> (thrashing between queues).  After some number (varies) of monitor 
> stop/starts the message disappeared.  Sometimes after redeploying the 
> ear containing the MDBs and monitor the message would reappear on the 
> DLQ and the cycle would start again.  Sometimes it was gone for good.
> 
> Am I using stopDelivery()/startDelivery() correctly?  I also tried using 
> start()/stop() with the same results.  Is there something else I need to 
> be doing?  Is this a bug?
> 
> TIA,
> Bruce
> 
> 
> 
> 
> ---
> 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
> >>
> >>
> 
> 
> 
> 
> ---
> This sf.net email is sponsor

RE: [JBoss-user] question about ejb restrictions

2003-09-30 Thread JD Brennan
One approach would be to use MBeans (Management beans - JMX).
Easy to do in JBoss.  MBeans can use native code, read/write
files.  Your EJBs can call into MBeans, which is not expensive
when they are all in the same JVM.

JD

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:28 PM
To: jboss mailing list 
Subject: [JBoss-user] question about ejb restrictions


Hi all,

I have two problems. I would like to create a Message Driven Bean which 
does some image processing for me. 
I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
the usage of native libraries. And ofcourse JMagick is a native library.
Can you guys give me some pointers on how to come up with a sollution for 
this problem?

Second of all, I have to handle with files on the filesystem in my 
application.
This is also a restricting in the EJB-spec. Unfortunatly I have to store 
files to get my application to work.
Should it be good practice to store files in a database as blobs?

Thanks for all suggestions,

Harm de Laat
Informatiefabriek
The Netherlands



---
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: [JBoss-user] question about ejb restrictions

2003-09-30 Thread Scott M Stark
Just do it. Unless you running with a security manager nothing
will prevent this. Its up to you to determine if using a database
as a file system makes sense.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

[EMAIL PROTECTED] wrote:

Hi all,

I have two problems. I would like to create a Message Driven Bean which 
does some image processing for me. 
I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
the usage of native libraries. And ofcourse JMagick is a native library.
Can you guys give me some pointers on how to come up with a sollution for 
this problem?

Second of all, I have to handle with files on the filesystem in my 
application.
This is also a restricting in the EJB-spec. Unfortunatly I have to store 
files to get my application to work.
Should it be good practice to store files in a database as blobs?

Thanks for all suggestions,

Harm de Laat
Informatiefabriek
The Netherlands


---
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] Authenticated user timeout

2003-09-30 Thread Scott M Stark
In conf/jboss-service.xml add a DefaultCacheTimeout to JaasSecurityManagerService:

  
  

  org.jboss.security.plugins.JaasSecurityManager

TimeoutInSeconds
  
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Matthew Oatham wrote:

Hi,

I have been told that there is a possible configuration attribut that 
sets the timeout value for authenticated users. This is independant for 
example to the users web session timeout. Does this attribute exist if 
so where can i find it ?

Thanks


---
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] question about ejb restrictions

2003-09-30 Thread harm
Hi all,

I have two problems. I would like to create a Message Driven Bean which 
does some image processing for me. 
I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
the usage of native libraries. And ofcourse JMagick is a native library.
Can you guys give me some pointers on how to come up with a sollution for 
this problem?

Second of all, I have to handle with files on the filesystem in my 
application.
This is also a restricting in the EJB-spec. Unfortunatly I have to store 
files to get my application to work.
Should it be good practice to store files in a database as blobs?

Thanks for all suggestions,

Harm de Laat
Informatiefabriek
The Netherlands



---
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] MDB stopping and starting

2003-09-30 Thread Bruce Slawson
No, that doesn't appear to be that problem.  When the message 
disappears, all the DLQs are empty.  Which release has that fix?  I am 
using 3.2.2RC4.  

When I redeploy the ear or restart JBoss the lost message sometimes 
reappears in the DLQ.  Not always though.

Bruce

Adrian Brock wrote:

On Tue, 2003-09-30 at 18:04, Bruce Slawson wrote:
 

Adrian,

I did see that message too.  Any idea why it doesn't work reliably?

   

Is this the bug I fixed where the Redelivered flag/count wasn't 
reset when it was sent to the dlq? So another mdb pulling from the dlq
would send it to its dlq straight away.

This was also on this list last month.

Regards,
Adrian
 

Bruce



Adrian Brock wrote:

   

deja-vu :-)

http://www.mail-archive.com/[EMAIL PROTECTED]/msg31889.html

Regards,
Adrian
On Tue, 2003-09-30 at 01:32, Bruce Slawson wrote:

 

I know this question has been asked a few times before but I have not 
found a way to stop and start MDBs that works reliably.  Might be a bug 
in the JMSContainerInvoker code.

Adrian Brock responded a while back:


   

1. Is it possible to disable/enable an MDB from receiving messages
from a queue via JMX?
 

There is an outstanding bug report (670068) where it
doesn't setup ENC correctly if you manually stop()/start()
the MDB container.
A simpler approach would be to register the JMSContainerInvoker
as an MBean, exposing the JMS connection stop()/start()

I used this as my starting point.  The JMSContainerInvoker in 3.2.2 has 
stopDelivery() and startDelivery() methods in addition to the stop() and 
start() methods Adrian mentioned.

What I want to do is create a DLQ monitor MDB that will pull messages 
off the DLQ and put them back on the originating queue.  I wanted the 
monitor start the MDB, sleep for a few seconds, and then stop the MDB.  
The monitor is to run periodically using a timer.

What I did first was register the invoker proxy bindings, container 
configuration, and assign the configuration name to the MDB in 
jboss.xml.  I also set DeliveryActive to false so the MDB would not be 
active a startup.

Next I wrote a timer that called startDelivery(), slept for a few 
seconds, and then called stopDelivery().

All seemed to work okay at first.  When I did some minor queue thrash 
testing the problems started.  The test involved a message that went to 
the DLQ, was taken out by the started MDB, and put back in the 
originating queue.  The originating queue MDB would roll back its 
transaction and go back into the DLQ.  The cycle of moving a message 
   

from the DLQ to original queue and back to DLQ might occur several times 
 

in the few seconds the monitor MDB is turned on.

The results for the the first few times the monitor ran were as expected 
(thrashing between queues).  After some number (varies) of monitor 
stop/starts the message disappeared.  Sometimes after redeploying the 
ear containing the MDBs and monitor the message would reappear on the 
DLQ and the cycle would start again.  Sometimes it was gone for good.

Am I using stopDelivery()/startDelivery() correctly?  I also tried using 
start()/stop() with the same results.  Is there something else I need to 
be doing?  Is this a bug?

TIA,
Bruce


---
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
   





---
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] Authenticated user timeout

2003-09-30 Thread Matthew Oatham
Hi,

I have been told that there is a possible configuration attribut that sets 
the timeout value for authenticated users. This is independant for example 
to the users web session timeout. Does this attribute exist if so where can 
i find it ?

Thanks

_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger



---
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] MDB stopping and starting

2003-09-30 Thread Adrian Brock
On Tue, 2003-09-30 at 18:04, Bruce Slawson wrote:
> Adrian,
> 
> I did see that message too.  Any idea why it doesn't work reliably?
> 

Is this the bug I fixed where the Redelivered flag/count wasn't 
reset when it was sent to the dlq? So another mdb pulling from the dlq
would send it to its dlq straight away.

This was also on this list last month.

Regards,
Adrian

> Bruce
> 
> 
> 
> Adrian Brock wrote:
> 
> >deja-vu :-)
> >
> >http://www.mail-archive.com/[EMAIL PROTECTED]/msg31889.html
> >
> >Regards,
> >Adrian
> >
> >On Tue, 2003-09-30 at 01:32, Bruce Slawson wrote:
> >  
> >
> >>I know this question has been asked a few times before but I have not 
> >>found a way to stop and start MDBs that works reliably.  Might be a bug 
> >>in the JMSContainerInvoker code.
> >>
> >>Adrian Brock responded a while back:
> >>
> >>
> >> >
> >> > 1. Is it possible to disable/enable an MDB from receiving messages
> >> > from a queue via JMX?
> >>
> >>There is an outstanding bug report (670068) where it
> >>doesn't setup ENC correctly if you manually stop()/start()
> >>the MDB container.
> >>
> >>A simpler approach would be to register the JMSContainerInvoker
> >>as an MBean, exposing the JMS connection stop()/start()
> >>
> >>
> >>I used this as my starting point.  The JMSContainerInvoker in 3.2.2 has 
> >>stopDelivery() and startDelivery() methods in addition to the stop() and 
> >>start() methods Adrian mentioned.
> >>
> >>What I want to do is create a DLQ monitor MDB that will pull messages 
> >>off the DLQ and put them back on the originating queue.  I wanted the 
> >>monitor start the MDB, sleep for a few seconds, and then stop the MDB.  
> >>The monitor is to run periodically using a timer.
> >>
> >>What I did first was register the invoker proxy bindings, container 
> >>configuration, and assign the configuration name to the MDB in 
> >>jboss.xml.  I also set DeliveryActive to false so the MDB would not be 
> >>active a startup.
> >>
> >>Next I wrote a timer that called startDelivery(), slept for a few 
> >>seconds, and then called stopDelivery().
> >>
> >>All seemed to work okay at first.  When I did some minor queue thrash 
> >>testing the problems started.  The test involved a message that went to 
> >>the DLQ, was taken out by the started MDB, and put back in the 
> >>originating queue.  The originating queue MDB would roll back its 
> >>transaction and go back into the DLQ.  The cycle of moving a message 
> >>from the DLQ to original queue and back to DLQ might occur several times 
> >>in the few seconds the monitor MDB is turned on.
> >>
> >>The results for the the first few times the monitor ran were as expected 
> >>(thrashing between queues).  After some number (varies) of monitor 
> >>stop/starts the message disappeared.  Sometimes after redeploying the 
> >>ear containing the MDBs and monitor the message would reappear on the 
> >>DLQ and the cycle would start again.  Sometimes it was gone for good.
> >>
> >>Am I using stopDelivery()/startDelivery() correctly?  I also tried using 
> >>start()/stop() with the same results.  Is there something else I need to 
> >>be doing?  Is this a bug?
> >>
> >>TIA,
> >>Bruce
> >> 
> >>
> >>
> >>
> >>---
> >>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
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
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] findByHighestValue

2003-09-30 Thread Matthew Hixson
On Tuesday, September 30, 2003, at 12:30  AM, Milen Dyankov wrote:

Matthew Hixson wrote:
Could you do something like this for findLastDelivery:
select ddate from foo where bar=?1 order by ddate desc limit 1
You could do pretty much the same thing for finding the biggest order 
too.
  -M@


Yes I can do that.
But that is still SQL query that can not be rewritten in EJB-QL.
My point was that one can not make use of CMPs for doing this.
I think a EJB-QL finder like this will work with JBoss.

select object(o) from table_name o order by o.ddate desc limit 1

Have you tried it?
  -M@


---
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] log4j JMSAppender and dependencies on JMS

2003-09-30 Thread Stephane Nicoll
log4J is one of the first service deployed in JBoss on startup. If you make
dependencies on the naming service and on connection factory, it will work
(but logging will be available at the end of the deployment). This is quite
unusual, but check the JBoss forum (Messaging / JMS): the same question was
asked a couple of weeks ago

Regards,

Stephane

-Original Message-
From: Bob Cotton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 5:33 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] log4j JMSAppender and dependencies on JMS



Jboss 3.2.1

I'm trying to setup a JMS appender to log to a queue, but there is a
dependency problem, the ConnectionFactory is not bound when the
Appender is initialized.

Is there another/better way to handle this?

Also, If I'm subclassing from JMSAppender, and I need a custom param,
do I need to do anything more then provide a setter/getter for that
param?


  
  
  
  
  


Thanks
- Bob

log4j:ERROR Could not find name [java:/ConnectionFactory].
log4j:ERROR Error while activating options for appender named [JMS].
javax.naming.NameNotFoundException: ConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.apache.log4j.net.JMSAppender.lookup(Unknown Source)
at org.apache.log4j.net.JMSAppender.activateOptions(Unknown Source)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at
org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:
140)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.
java:153)
at
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigur
ator.java:415)
at
org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335)
at
org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:781)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
at
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:697)
at
org.jboss.logging.Log4jService$URLWatchTimerTask.reconfigure(Log4jService.jav
a:622)


-- 
SynXis Corporation  | [EMAIL PROTECTED]| no .sig today.
1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | 
Denver, CO  80202   | Fax:(303)534-4257 | 



---
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: [JBoss-user] MDB stopping and starting

2003-09-30 Thread Bruce Slawson
Adrian,

I did see that message too.  Any idea why it doesn't work reliably?

Bruce



Adrian Brock wrote:

deja-vu :-)

http://www.mail-archive.com/[EMAIL PROTECTED]/msg31889.html

Regards,
Adrian
On Tue, 2003-09-30 at 01:32, Bruce Slawson wrote:
 

I know this question has been asked a few times before but I have not 
found a way to stop and start MDBs that works reliably.  Might be a bug 
in the JMSContainerInvoker code.

Adrian Brock responded a while back:


>
> 1. Is it possible to disable/enable an MDB from receiving messages
> from a queue via JMX?
There is an outstanding bug report (670068) where it
doesn't setup ENC correctly if you manually stop()/start()
the MDB container.
A simpler approach would be to register the JMSContainerInvoker
as an MBean, exposing the JMS connection stop()/start()

I used this as my starting point.  The JMSContainerInvoker in 3.2.2 has 
stopDelivery() and startDelivery() methods in addition to the stop() and 
start() methods Adrian mentioned.

What I want to do is create a DLQ monitor MDB that will pull messages 
off the DLQ and put them back on the originating queue.  I wanted the 
monitor start the MDB, sleep for a few seconds, and then stop the MDB.  
The monitor is to run periodically using a timer.

What I did first was register the invoker proxy bindings, container 
configuration, and assign the configuration name to the MDB in 
jboss.xml.  I also set DeliveryActive to false so the MDB would not be 
active a startup.

Next I wrote a timer that called startDelivery(), slept for a few 
seconds, and then called stopDelivery().

All seemed to work okay at first.  When I did some minor queue thrash 
testing the problems started.  The test involved a message that went to 
the DLQ, was taken out by the started MDB, and put back in the 
originating queue.  The originating queue MDB would roll back its 
transaction and go back into the DLQ.  The cycle of moving a message 
from the DLQ to original queue and back to DLQ might occur several times 
in the few seconds the monitor MDB is turned on.

The results for the the first few times the monitor ran were as expected 
(thrashing between queues).  After some number (varies) of monitor 
stop/starts the message disappeared.  Sometimes after redeploying the 
ear containing the MDBs and monitor the message would reappear on the 
DLQ and the cycle would start again.  Sometimes it was gone for good.

Am I using stopDelivery()/startDelivery() correctly?  I also tried using 
start()/stop() with the same results.  Is there something else I need to 
be doing?  Is this a bug?

TIA,
Bruce


---
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: [JBoss-user] log4j JMSAppender and dependencies on JMS

2003-09-30 Thread Adrian Brock
Hi Bob,

Logging is one of the first service configured, well before
JMS.

If you want to log to local jms, a better approach
would be to make your appender delegate to an MBean.
The MBean can then store the logging events until
its start[Service] method has initialised the connection
(with suitable dependencies so it isn't started until
the queue and connection factory are available).

A bigger issue with JBossMQ is that it uses log4j.
Log4j does not like Logger -> Appender -> Logger
it can deadlock in this scenario.
Recursive death can be avoided with a suitable
log4j configuration.

Regards,
Adrian

On Tue, 2003-09-30 at 17:33, Bob Cotton wrote:
> Jboss 3.2.1
> 
> I'm trying to setup a JMS appender to log to a queue, but there is a
> dependency problem, the ConnectionFactory is not bound when the
> Appender is initialized.
> 
> Is there another/better way to handle this?
> 
> Also, If I'm subclassing from JMSAppender, and I need a custom param,
> do I need to do anything more then provide a setter/getter for that
> param?
> 
> 
>   
>value="java:/ConnectionFactory"/>
>   
>   
>   
> 
> 
> Thanks
> - Bob
> 
> log4j:ERROR Could not find name [java:/ConnectionFactory].
> log4j:ERROR Error while activating options for appender named [JMS].
> javax.naming.NameNotFoundException: ConnectionFactory not bound
> at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
> at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
> at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
> at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
> at javax.naming.InitialContext.lookup(InitialContext.java:347)
> at org.apache.log4j.net.JMSAppender.lookup(Unknown Source)
> at org.apache.log4j.net.JMSAppender.activateOptions(Unknown Source)
> at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
> at 
> org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
> at 
> org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
> at 
> org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
> at 
> org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
> at 
> org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335)
> at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:781)
> at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
> at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
> at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
> at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:697)
> at 
> org.jboss.logging.Log4jService$URLWatchTimerTask.reconfigure(Log4jService.java:622)
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
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] EJB inserts do not show up in subsequent queries:

2003-09-30 Thread Alexey Loubyansky
Can you see the SQL executed? Any differences?
What does "we must bounce JBoss..." mean?
Thanks,
alex
Rod Macpherson wrote:

3.2.2 RC4 is NFG:

Ran the same EAR against the same database on 3.0.7 without incident. On
3.2.2 RC4 we must bounce JBoss to see inserted records. 

-Original Message-
From: Rod Macpherson 
Sent: Tuesday, September 30, 2003 5:13 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent
queries

TX commits (we can see the data with, say, toad or enterprise manager)
and subsequent session bean call initiated query does not show the data.
The insert is initiated with an HTTP request and the view is initiated
in a separate HTTP request so the TX either succeeded or silently failed
but we can see the data outside of JBoss. 

This is our first use of 3.2.2 and we are using the x-ds.xml examples as
the basis of our sqlserver and oracle ds configurations. Point being
this is not a sudden breakage but rather a new migration from 3.0. so it
could be pilot error on our part. Drivers are the same, code is the
same, database is the same, new JBoss 3.2.2 RC4. Also tried local build
RC4 source with jetty as the web container: same problem. 

This morning I will personally verify that we ran the same app against
JBoss 3.0 without incident. AFAIK that test was done and everything was
fine in 3.0. Maybe there is something obvious in the oracle-ds.xml and
mssql-ds.xml we did not do? 




  
OracleDSX
jdbc:oracle:thin:@foo:1521:bar
oracle.jdbc.driver.OracleDriver
austin
shaggadelic
 
org.jboss.resource.adapter.jdbc.vendor.Orac
leExceptionSorter
  


-Original Message-
From: Bill Burke [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 29, 2003 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
queries

version?  Same tx?  Did tx commit?

Bill

Rod Macpherson wrote:


New records created using entity beans are not showing up in
subsequent
queries. Problem is manifest using both SQL Server and Oracle in 3.2.2


RCX - no problem on 3.0.X.






---
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] log4j JMSAppender and dependencies on JMS

2003-09-30 Thread Bob Cotton

Jboss 3.2.1

I'm trying to setup a JMS appender to log to a queue, but there is a
dependency problem, the ConnectionFactory is not bound when the
Appender is initialized.

Is there another/better way to handle this?

Also, If I'm subclassing from JMSAppender, and I need a custom param,
do I need to do anything more then provide a setter/getter for that
param?


  
  
  
  
  


Thanks
- Bob

log4j:ERROR Could not find name [java:/ConnectionFactory].
log4j:ERROR Error while activating options for appender named [JMS].
javax.naming.NameNotFoundException: ConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.apache.log4j.net.JMSAppender.lookup(Unknown Source)
at org.apache.log4j.net.JMSAppender.activateOptions(Unknown Source)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
at 
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
at 
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
at 
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:781)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:697)
at 
org.jboss.logging.Log4jService$URLWatchTimerTask.reconfigure(Log4jService.java:622)


-- 
SynXis Corporation  | [EMAIL PROTECTED]| no .sig today.
1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | 
Denver, CO  80202   | Fax:(303)534-4257 | 



---
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] EJB inserts do not show up in subsequent queries:

2003-09-30 Thread Rod Macpherson
3.2.2 RC4 is NFG:

Ran the same EAR against the same database on 3.0.7 without incident. On
3.2.2 RC4 we must bounce JBoss to see inserted records. 


-Original Message-
From: Rod Macpherson 
Sent: Tuesday, September 30, 2003 5:13 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] EJB inserts do not show up in subsequent
queries


TX commits (we can see the data with, say, toad or enterprise manager)
and subsequent session bean call initiated query does not show the data.
The insert is initiated with an HTTP request and the view is initiated
in a separate HTTP request so the TX either succeeded or silently failed
but we can see the data outside of JBoss. 

This is our first use of 3.2.2 and we are using the x-ds.xml examples as
the basis of our sqlserver and oracle ds configurations. Point being
this is not a sudden breakage but rather a new migration from 3.0. so it
could be pilot error on our part. Drivers are the same, code is the
same, database is the same, new JBoss 3.2.2 RC4. Also tried local build
RC4 source with jetty as the web container: same problem. 

This morning I will personally verify that we ran the same app against
JBoss 3.0 without incident. AFAIK that test was done and everything was
fine in 3.0. Maybe there is something obvious in the oracle-ds.xml and
mssql-ds.xml we did not do? 




  
OracleDSX
jdbc:oracle:thin:@foo:1521:bar
oracle.jdbc.driver.OracleDriver
austin
shaggadelic
 
org.jboss.resource.adapter.jdbc.vendor.Orac
leExceptionSorter
  



-Original Message-
From: Bill Burke [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 29, 2003 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
queries


version?  Same tx?  Did tx commit?

Bill

Rod Macpherson wrote:

> New records created using entity beans are not showing up in
> subsequent
> queries. Problem is manifest using both SQL Server and Oracle in 3.2.2

> RCX - no problem on 3.0.X.

-- 

Bill Burke
Chief Architect
JBoss Group LLC.




---
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


---
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] JBoss-net with complex type (no serializer found)

2003-09-30 Thread Scott M Stark
Its deprecated because you cannot determine the same quality of information
via pure reflection currently as you can by generating stubs from a wsdl
file. However, this is just an implementation detail that can be overcome
using JavaBean BeanInfos for example, or JSR175 metadata in the future.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Heinz-Dieter Conradi wrote:

As you may observe from my response, i am myself not really sure what i am
doing here. however, at least in my case it seems to work ;-)
for e.g. i am not sure how to configure a axis, since i am using the
(deprecated) AxisInvocationHandler. i do not know why it is deprecated,
but it allows me to work with the remote EJBObject's in almost the same
way as directly calling EJB.
good look, heinz-dieter conradi


---
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] JbossMQ error: 'User: null is NOT authenticated'

2003-09-30 Thread Adrian Brock
Do you see anything in log/server.log when it fails,
just before the exception you posted.

If not, try enabling TRACE logging in conf/log4j.xml for the
following categories to see whether it shows something
useful at the failure.

org.jboss.security
org.jboss.mq.security
org.jboss.mq.sm

Regards,
Adrian

On Tue, 2003-09-30 at 16:23, Panagiotis Korros wrote:
> This is the section in conf/login-config.xml regarding jbossmq. I didn't
> change this file at all.
> 
>
> 
>
> flag = "required">
>   "unauthenticatedIdentity">guest
>   "sm.objectname">jboss.mq:service=StateManager
>   
>
> 
> 
> It seems to me that the server sometimes looses the login module
> configuration.
> 
> Regards,
> Panagiotis
> 
> -Original Message-
> From: Adrian Brock [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 30, 2003 4:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JbossMQ error: 'User: null is NOT
> authenticated'
> 
> 
> The topic security config is irrelevent at this stage,
> you haven't got to the authorization step.
> You are still trying to authenticate the user.
> 
> First, post the conf/login-config.xml snippet for jbossmq,
> it should have an unauthenticated identity,
> the default setting is "guest".
> 
> Regards,
> Adrian
> 
> On Tue, 2003-09-30 at 13:52, Panagiotis Korros wrote:
> > I am using JBoss 3.2.2RC4 / 3.2.1 with JDK 1.4.2 and i get the 
> > following
> > error:
> > 
> > javax.jms.JMSSecurityException: User: null is NOT authenticated at
> > org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.jav
> > a:
> > 215)
> > at
> >
> org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecur
> > ityInterceptor.java:51)
> > at
> >
> org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.j
> > ava:650)
> > At
> >
> org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:
> > 288)
> > at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:302)
> > at org.jboss.mq.Connection.authenticate(Connection.java:876)
> > at org.jboss.mq.Connection.(Connection.java:238)
> > at org.jboss.mq.Connection.(Connection.java:315)
> > at org.jboss.mq.SpyConnection.(SpyConnection.java:60)
> > at
> >
> org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFac
> > tory.java:78)
> > at ...
> > 
> > I can't predict when the problem appears, but when it appears a server
> 
> > restart is required for the jms topic to function correctly.
> > 
> > My config file is:
> > 
> >>  name="jboss.mq:service=ReactorInvocationLayer,type=JVM">
> >  > optional-attribute-name="Invoker">jboss.mq:service=Invoker
> >  > name="ConnectionFactoryJNDIRef">TopicConnectionFactory
> >  > name="XAConnectionFactoryJNDIRef">XATopicConnectionFactory
> > 0
> >   
> > 
> >>  name="jboss.mq.destination:service=Topic,name=PolicyExecution">
> >  > optional-attribute-name="DestinationManager">jboss.mq:service=Destinat
> > io
> > nManager
> >  >
> optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManag
> > er
> > 
> >   
> >  
> >   
> > 
> >   
> > 
> > 
> > Does anyone knows what is going on?
> > 
> > 
> > 
> > 
> > ---
> > 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
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
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] JbossMQ error: 'User: null is NOT authenticated'

2003-09-30 Thread Panagiotis Korros
This is the section in conf/login-config.xml regarding jbossmq. I didn't
change this file at all.

   

   
  
 guest
 jboss.mq:service=StateManager
  
   


It seems to me that the server sometimes looses the login module
configuration.

Regards,
Panagiotis

-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 4:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JbossMQ error: 'User: null is NOT
authenticated'


The topic security config is irrelevent at this stage,
you haven't got to the authorization step.
You are still trying to authenticate the user.

First, post the conf/login-config.xml snippet for jbossmq,
it should have an unauthenticated identity,
the default setting is "guest".

Regards,
Adrian

On Tue, 2003-09-30 at 13:52, Panagiotis Korros wrote:
> I am using JBoss 3.2.2RC4 / 3.2.1 with JDK 1.4.2 and i get the 
> following
> error:
> 
> javax.jms.JMSSecurityException: User: null is NOT authenticated at
> org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.jav
> a:
> 215)
> at
>
org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecur
> ityInterceptor.java:51)
> at
>
org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.j
> ava:650)
> At
>
org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:
> 288)
> at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:302)
> at org.jboss.mq.Connection.authenticate(Connection.java:876)
> at org.jboss.mq.Connection.(Connection.java:238)
> at org.jboss.mq.Connection.(Connection.java:315)
> at org.jboss.mq.SpyConnection.(SpyConnection.java:60)
> at
>
org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFac
> tory.java:78)
> at ...
> 
> I can't predict when the problem appears, but when it appears a server

> restart is required for the jms topic to function correctly.
> 
> My config file is:
> 
>   name="jboss.mq:service=ReactorInvocationLayer,type=JVM">
>  optional-attribute-name="Invoker">jboss.mq:service=Invoker
>  name="ConnectionFactoryJNDIRef">TopicConnectionFactory
>  name="XAConnectionFactoryJNDIRef">XATopicConnectionFactory
> 0
>   
> 
>   name="jboss.mq.destination:service=Topic,name=PolicyExecution">
>  optional-attribute-name="DestinationManager">jboss.mq:service=Destinat
> io
> nManager
> 
optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManag
> er
> 
>   
>  
>   
> 
>   
> 
> 
> Does anyone knows what is going on?
> 
> 
> 
> 
> ---
> 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
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
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] JBossQL: MAX, MIN, SUM, AVG

2003-09-30 Thread Alexey Loubyansky
These are available in current CVS Branch_3_2.
Examples:
SELECT MAX(a.intField) FROM A AS a
SELECT MIN(a.intField) FROM A AS a
SELECT SUM(a.intField) FROM A AS a
SELECT AVG(a.intField) FROM A AS a
Change note is here:
https://sourceforge.net/tracker/?func=detail&aid=815115&group_id=22866&atid=381174
alex



---
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] JbossMQ error: 'User: null is NOT authenticated'

2003-09-30 Thread Adrian Brock
The topic security config is irrelevent at this stage,
you haven't got to the authorization step.
You are still trying to authenticate the user.

First, post the conf/login-config.xml snippet for jbossmq,
it should have an unauthenticated identity,
the default setting is "guest".

Regards,
Adrian

On Tue, 2003-09-30 at 13:52, Panagiotis Korros wrote:
> I am using JBoss 3.2.2RC4 / 3.2.1 with JDK 1.4.2 and i get the following
> error:
> 
> javax.jms.JMSSecurityException: User: null is NOT authenticated at
> org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:
> 215)
> at
> org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecur
> ityInterceptor.java:51)
> at
> org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.j
> ava:650)
> At
> org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:
> 288)
> at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:302)
> at org.jboss.mq.Connection.authenticate(Connection.java:876)
> at org.jboss.mq.Connection.(Connection.java:238)
> at org.jboss.mq.Connection.(Connection.java:315)
> at org.jboss.mq.SpyConnection.(SpyConnection.java:60)
> at
> org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFac
> tory.java:78)
> at ...
> 
> I can't predict when the problem appears, but when it appears a server
> restart is required for the jms topic to function correctly.
> 
> My config file is:
> 
>   name="jboss.mq:service=ReactorInvocationLayer,type=JVM">
>  optional-attribute-name="Invoker">jboss.mq:service=Invoker
>  name="ConnectionFactoryJNDIRef">TopicConnectionFactory
>  name="XAConnectionFactoryJNDIRef">XATopicConnectionFactory
> 0
>   
> 
>   name="jboss.mq.destination:service=Topic,name=PolicyExecution">
>  optional-attribute-name="DestinationManager">jboss.mq:service=Destinatio
> nManager
>  optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManag
> er
> 
>   
>  
>   
> 
>   
> 
> 
> Does anyone knows what is going on? 
> 
> 
> 
> 
> ---
> 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
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
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] JbossMQ error: 'User: null is NOT authenticated'

2003-09-30 Thread Panagiotis Korros
I am using JBoss 3.2.2RC4 / 3.2.1 with JDK 1.4.2 and i get the following
error:

javax.jms.JMSSecurityException: User: null is NOT authenticated at
org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:
215)
at
org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecur
ityInterceptor.java:51)
at
org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.j
ava:650)
At
org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:
288)
at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:302)
at org.jboss.mq.Connection.authenticate(Connection.java:876)
at org.jboss.mq.Connection.(Connection.java:238)
at org.jboss.mq.Connection.(Connection.java:315)
at org.jboss.mq.SpyConnection.(SpyConnection.java:60)
at
org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFac
tory.java:78)
at ...

I can't predict when the problem appears, but when it appears a server
restart is required for the jms topic to function correctly.

My config file is:

  
jboss.mq:service=Invoker
TopicConnectionFactory
XATopicConnectionFactory
0
  

  
jboss.mq:service=Destinatio
nManager
jboss.mq:service=SecurityManag
er

  
 
  

  


Does anyone knows what is going on? 




---
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] EJB mass deletion

2003-09-30 Thread Alexey Loubyansky
You have to use commit option B or C in this case at the moment.

alex

Richard Hosking wrote:

Hello all, we need to delete about 20K+ records in one go 
according to an int field.  This is currently rather slow.  The 
following adaptation of real code is called from within a session 
bean:-

  Collection batches = myEJBLocalHome.findByBatch(batch);
  for(Iterator i = batches.iterator(); i.hasNext(); ) {
 MyEJBLocal item = (MyEJBLocal)i.next();
 item.remove();
  }
where 'batch' is a simple int.

What I would really like to do is issue an SQL statement,
something like:-
  DELETE FROM MyEJB WHERE batch=

Which I believe will be hundreds of times faster than the
existing code.  I don't like bypassing the CMP engine and 
going direct to the database, but I think this is my only option.  
Is this safe to do so?  What is the best way of achieving this?
I have noticed in the past that the CMP engine can cache data, 
hence not being happy with going direct (my understanding
in this area ain't at all good!)

The java code can take so long, we have had to beef up the
default transaction timeout for beans which I didn't really want
to have to do.
We are using CMP2, jboss-3.0.5_tomcat-4.1.18, on win2000, 
MS Sql Server 2000 or Hypersonic.

Regards,
Richard.


---
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: [JBoss-user] EJB inserts do not show up in subsequent queries

2003-09-30 Thread Rod Macpherson
TX commits (we can see the data with, say, toad or enterprise manager)
and subsequent session bean call initiated query does not show the data.
The insert is initiated with an HTTP request and the view is initiated
in a separate HTTP request so the TX either succeeded or silently failed
but we can see the data outside of JBoss. 

This is our first use of 3.2.2 and we are using the x-ds.xml examples as
the basis of our sqlserver and oracle ds configurations. Point being
this is not a sudden breakage but rather a new migration from 3.0. so it
could be pilot error on our part. Drivers are the same, code is the
same, database is the same, new JBoss 3.2.2 RC4. Also tried local build
RC4 source with jetty as the web container: same problem. 

This morning I will personally verify that we ran the same app against
JBoss 3.0 without incident. AFAIK that test was done and everything was
fine in 3.0. Maybe there is something obvious in the oracle-ds.xml and
mssql-ds.xml we did not do? 




  
OracleDSX
jdbc:oracle:thin:@foo:1521:bar
oracle.jdbc.driver.OracleDriver
austin
shaggadelic
 
org.jboss.resource.adapter.jdbc.vendor.Orac
leExceptionSorter
  



-Original Message-
From: Bill Burke [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 29, 2003 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJB inserts do not show up in subsequent
queries


version?  Same tx?  Did tx commit?

Bill

Rod Macpherson wrote:

> New records created using entity beans are not showing up in 
> subsequent
> queries. Problem is manifest using both SQL Server and Oracle in 3.2.2

> RCX - no problem on 3.0.X.

-- 

Bill Burke
Chief Architect
JBoss Group LLC.




---
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] EJB mass deletion

2003-09-30 Thread Richard Hosking
Hello all, we need to delete about 20K+ records in one go 
according to an int field.  This is currently rather slow.  The 
following adaptation of real code is called from within a session 
bean:-

  Collection batches = myEJBLocalHome.findByBatch(batch);
  for(Iterator i = batches.iterator(); i.hasNext(); ) {
 MyEJBLocal item = (MyEJBLocal)i.next();
 item.remove();
  }

where 'batch' is a simple int.

What I would really like to do is issue an SQL statement,
something like:-

  DELETE FROM MyEJB WHERE batch=

Which I believe will be hundreds of times faster than the
existing code.  I don't like bypassing the CMP engine and 
going direct to the database, but I think this is my only option.  
Is this safe to do so?  What is the best way of achieving this?
I have noticed in the past that the CMP engine can cache data, 
hence not being happy with going direct (my understanding
in this area ain't at all good!)

The java code can take so long, we have had to beef up the
default transaction timeout for beans which I didn't really want
to have to do.

We are using CMP2, jboss-3.0.5_tomcat-4.1.18, on win2000, 
MS Sql Server 2000 or Hypersonic.

Regards,
Richard.



---
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] jboss and log4j

2003-09-30 Thread Jiri Chaloupka
Thanks
I was looked for this on log4j web but not found all I need.
so now I have 2 section in log4j.xml:







...


and









Now, there is no debub messages in log, but INFO and ERROR are in the 
same log, called server.out.log

Where is the waz to write it separatelly?

Thanks, Jiri

Ricardo Coutinho wrote:

Add  to the appenders in the 
log4j.xml file

> Ricardo Coutinho
> Software Engineer
> 
> Odyssey Asset Management Systems S.A.
Espace Kirchberg-Eolis
> 26-28, rue Edward Steichen
L-2540 Luxembourg-Kirchberg
> Direct Line:+352 42 60 80 4425
> fax: +352 42 91 92
> http://www.odyssey-group.com
-Original Message-
From: Jiri Chaloupka [mailto:[EMAIL PROTECTED]
Sent: 30 September 2003 09:55
To: [EMAIL PROTECTED]
Subject: [JBoss-user] jboss and log4j
Hallo,
how I can dissable debug log output in log4j on jboss?
in log4j I have:
http://jakarta.apache.org/log4j/";
debug="false">
...
but in log I have:
2003-09-30 09:31:38,640 DEBUG [org.jboss.logging.Log4jService] Installed
System.out adapter
2003-09-30 09:31:38,640 DEBUG [org.jboss.logging.Log4jService] Installed
System.err adapter
2003-09-30 09:35:55,640 DEBUG
[org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover
notifying pools, interval: 45
2003-09-30 09:39:04,421 DEBUG [org.apache.struts.util.RequestUtils] Get
module name for path /Index.do
2003-09-30 09:39:04,453 DEBUG [org.apache.struts.util.RequestUtils]
Module name found: default
2003-09-30 09:39:04,453 INFO
[org.apache.struts.tiles.TilesRequestProcessor] Tiles definition factory
found for request processor ''.
2003-09-30 09:39:04,468 DEBUG
[org.apache.struts.action.RequestProcessor] Processing a 'GET' for path
'/Index'
...
What is the way to disable debug output?

And next, how I can log into diferent files? for example,
System.out into out.log, System.err into err.log, or better, for
application on server.cz/app1 into out.app1.log and err.app1.log etc.?
Thanks for help,
Jiri


---
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 email and any files transmitted with it are CONFIDENTIAL and 
intended
solely for the use of the individual or entity to which they are 
addressed.
? Any unauthorized copying, disclosure, or distribution of the 
material within
this email is strictly forbidden.
? Any views or opinions presented within this e-mail are solely those 
of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.
? An electronic message is not binding on its sender. Any message 
referring to
a binding engagement must be confirmed in writing and duly signed.
? If you have received this email in error, please notify the sender 
immediately
and delete the original.





---
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] 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


Re: [JBoss-user] cmr question

2003-09-30 Thread Alexey Loubyansky
If you are going to use foreign key on entityA, then entityB can have 
many entityA (and you need to use @jboss.relation).
If you really want entityA to have many entityB (according to CMR 
get/set), foreign key should be on the entityB side.

alex

Ed Storm wrote:

Sorry if this question seems a bit silly.   I am having trouble setting
a cmr between two entities in the way I would like.  This is what I am
looking at:
 

EntityA

Pk-field:  entityAID, an int.

And other data fields
 

EntityB:ata

Pk-field:  entityBId an int

Pk-field:  sequence an int

Other data fields

I would like to set a 1:n relation between A and B using entityBId as a
fk in entityA.   I have tried to set this relation up using xdoclet:
 

In entityA:

 

/**
*  @ejb.interface-method view-type=”local”
*   @ejb.relation name = “entityA-entityB”
*   role-name=”1 entityA many entityB”
*   target-ejb=”EntityB”
*   target-role-name = “many entityB 1 entity A”
*  @jboss:target-relation related-pk-field = “entityBId”  fk-column =
“entityBId_fk”
**/
 

public abstract java.util.Set getEntityBs()

 

and of couse a setter to go along with it.  When I try to deploy this I
get an error concerning the ‘many entityB 1 entity A’ relation:
 

17:31:12,471 WARN  [ServiceController] Problem starting service
jboss.j2ee:jndiName=EntityA,service=EJB
org.jboss.deployment.DeploymentException: Role: many entityB 1 entity A
with multiplicity many using foreign-key mapping is not allowed to have
key-fields
 

 

Does anyone know how I could go about doing this?  I can provide a more
concrete example if necessary. I am currently running jboss 3.2.2 rc4 

 

Thanks,

Ed



---
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: [JBoss-user] jboss and log4j

2003-09-30 Thread Ricardo Coutinho
Title: RE: [JBoss-user] jboss and log4j





Add  to the appenders in the log4j.xml file
    


> Ricardo Coutinho
> Software Engineer
> 
> Odyssey Asset Management Systems S.A.
Espace Kirchberg-Eolis 
> 26-28, rue Edward Steichen
L-2540  Luxembourg-Kirchberg
> Direct Line:+352 42 60 80 4425
> fax: +352 42 91 92
> http://www.odyssey-group.com



-Original Message-
From: Jiri Chaloupka [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2003 09:55
To: [EMAIL PROTECTED]
Subject: [JBoss-user] jboss and log4j



Hallo,
how I can dissable debug log output in log4j on jboss?


in log4j I have:
http://jakarta.apache.org/log4j/" 
debug="false">
...
 but in log I have:
2003-09-30 09:31:38,640 DEBUG [org.jboss.logging.Log4jService] Installed 
System.out adapter
2003-09-30 09:31:38,640 DEBUG [org.jboss.logging.Log4jService] Installed 
System.err adapter
2003-09-30 09:35:55,640 DEBUG 
[org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover 
notifying pools, interval: 45
2003-09-30 09:39:04,421 DEBUG [org.apache.struts.util.RequestUtils] Get 
module name for path /Index.do
2003-09-30 09:39:04,453 DEBUG [org.apache.struts.util.RequestUtils] 
Module name found: default
2003-09-30 09:39:04,453 INFO  
[org.apache.struts.tiles.TilesRequestProcessor] Tiles definition factory 
found for request processor ''.
2003-09-30 09:39:04,468 DEBUG 
[org.apache.struts.action.RequestProcessor] Processing a 'GET' for path 
'/Index'
...


What is the way to disable debug output?


And next, how I can log into diferent files? for example,
System.out into out.log, System.err into err.log, or better, for 
application on server.cz/app1 into out.app1.log and err.app1.log etc.?


Thanks for help,
Jiri




---
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 email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
· Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.
· Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.
· An electronic message is not binding on its sender.  Any message referring to
a binding engagement must be confirmed in writing and duly signed.
· If you have received this email in error, please notify the sender immediately
and delete the original.





RE: [JBoss-user] jboss and log4j

2003-09-30 Thread Bruce Ashton
I think you probably want to change the priority values in the category
elements or the threshold params in the appender elements.  But the place to
go to answer this question is the log4j website
http://jakarta.apache.org/log4j/docs/

> -Original Message-
> From: Jiri Chaloupka [mailto:[EMAIL PROTECTED]
> Sent: 30 September 2003 08:55
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] jboss and log4j
> 
> 
> Hallo,
> how I can dissable debug log output in log4j on jboss?
> 
> in log4j I have:
> http://jakarta.apache.org/log4j/"; 
> debug="false">
> ...
>  but in log I have:
> 2003-09-30 09:31:38,640 DEBUG 
> [org.jboss.logging.Log4jService] Installed 
> System.out adapter
> 2003-09-30 09:31:38,640 DEBUG 
> [org.jboss.logging.Log4jService] Installed 
> System.err adapter
> 2003-09-30 09:35:55,640 DEBUG 
> [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover 
> notifying pools, interval: 45
> 2003-09-30 09:39:04,421 DEBUG 
> [org.apache.struts.util.RequestUtils] Get 
> module name for path /Index.do
> 2003-09-30 09:39:04,453 DEBUG [org.apache.struts.util.RequestUtils] 
> Module name found: default
> 2003-09-30 09:39:04,453 INFO  
> [org.apache.struts.tiles.TilesRequestProcessor] Tiles 
> definition factory 
> found for request processor ''.
> 2003-09-30 09:39:04,468 DEBUG 
> [org.apache.struts.action.RequestProcessor] Processing a 
> 'GET' for path 
> '/Index'
> ...
> 
> What is the way to disable debug output?
> 
> And next, how I can log into diferent files? for example,
> System.out into out.log, System.err into err.log, or better, for 
> application on server.cz/app1 into out.app1.log and err.app1.log etc.?
> 
> Thanks for help,
> Jiri
> 
> 
> 
> ---
> 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
> 
>  
> 


Please note that:
 
1. This e-mail may constitute privileged information. If you are not the intended 
recipient, you have received this confidential email and any attachments transmitted 
with it in error and you must not disclose, copy, circulate or in any other way use or 
rely on this information.
2. E-mails to and from the company are monitored for operational reasons and in 
accordance with lawful business practices.
3. The contents of this email are those of the individual and do not necessarily 
represent the views of the company.
4. The company does not conclude contracts by email and all negotiations are subject 
to contract.
5. The company accepts no responsibility once an e-mail and any attachments is sent.

http://www.activis.com


This annotation was added by the e-scan service.
http://www.activis.com
--
This message has been checked for all known viruses by e:)scan.
For further information please contact [EMAIL PROTECTED]


---
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] jboss and log4j

2003-09-30 Thread Jiri Chaloupka
Hallo,
how I can dissable debug log output in log4j on jboss?
in log4j I have:
http://jakarta.apache.org/log4j/"; 
debug="false">
...
but in log I have:
2003-09-30 09:31:38,640 DEBUG [org.jboss.logging.Log4jService] Installed 
System.out adapter
2003-09-30 09:31:38,640 DEBUG [org.jboss.logging.Log4jService] Installed 
System.err adapter
2003-09-30 09:35:55,640 DEBUG 
[org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover 
notifying pools, interval: 45
2003-09-30 09:39:04,421 DEBUG [org.apache.struts.util.RequestUtils] Get 
module name for path /Index.do
2003-09-30 09:39:04,453 DEBUG [org.apache.struts.util.RequestUtils] 
Module name found: default
2003-09-30 09:39:04,453 INFO  
[org.apache.struts.tiles.TilesRequestProcessor] Tiles definition factory 
found for request processor ''.
2003-09-30 09:39:04,468 DEBUG 
[org.apache.struts.action.RequestProcessor] Processing a 'GET' for path 
'/Index'
...

What is the way to disable debug output?

And next, how I can log into diferent files? for example,
System.out into out.log, System.err into err.log, or better, for 
application on server.cz/app1 into out.app1.log and err.app1.log etc.?

Thanks for help,
Jiri


---
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] findByHighestValue

2003-09-30 Thread Milen Dyankov
Matthew Hixson wrote:
Could you do something like this for findLastDelivery:

select ddate from foo where bar=?1 order by ddate desc limit 1

You could do pretty much the same thing for finding the biggest order too.
  -M@


Yes I can do that.
But that is still SQL query that can not be rewritten in EJB-QL.
My point was that one can not make use of CMPs for doing this.
Milen Dyankov



---
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] JBoss-net with complex type (no serializer found)

2003-09-30 Thread Heinz-Dieter Conradi
hi stephan,

>
> I am trying to rollout our application to JBoss.NET instead of a separate
> Axis.war
> I am running xdoclet 1.2b2, JBoss 3.2.2RC4 under redhat 9
>

some days ago, i had the same problem. i solved it by looking into the
jboss-net testsuite which is distributed with the sources.

>
> My session bean (the one exposed as web service is):
>
>  * @ejb.bean   type="Stateless"
>  * name="NodeSyncher"
>  *
>  * @ejb.transaction type="Required"
>  *
>  * @jboss-net.web-service urn="NodeSynchService"
>  */
> public class NodeSyncherBean implements javax.ejb.SessionBean {
>
>
> My LoginResponse is:
>
>  *
>  * @jboss-net.xml-schema urn="kserver:LoginResponse"
>  *
> public class LoginResponse implements java.io.Serializable {
>
>
> My ant task do :
>
>  prefix="kserver"
> destdir="${build.wsr.dir}/META-INF"/>
>

the answer is, that you have to configure your client, i.e. your client's
axis configuration and tell it which serializer to use for which class.
the configuration file could look something like this:



http://net.jboss.org/";
  xmlns="http://xml.apache.org/axis/wsdd/";
  xmlns:jbnet="http://net.jboss.org/server";
  xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
  xmlns:kserver=   you have to put something here. the exact content
   is not important, it's just a namespace definition.
   e.g. "http://xml.kiala.com/kserver";
  >

  
  

  http://schemas.xmlsoap.org/soap/encoding/";
>
  



As you may observe from my response, i am myself not really sure what i am
doing here. however, at least in my case it seems to work ;-)

for e.g. i am not sure how to configure a axis, since i am using the
(deprecated) AxisInvocationHandler. i do not know why it is deprecated,
but it allows me to work with the remote EJBObject's in almost the same
way as directly calling EJB.

good look, heinz-dieter conradi



---
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