Guys,
This problem is not new :/
http://sourceforge.net/tracker/index.php?func=detailaid=576913group_id=2286
6atid=376685
Regards,
Stephane
-Original Message-
From: Matthew Van Horn [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:48 AM
To: [EMAIL PROTECTED]
Subject: RE:
Typical case is as follows:
you start a JTA transaction, then pool an important number of entity bean
(let's say a findAll() or something). The entity bean pool is then full so it
starts putting entity bean in the passivate state but it can't because those
are still enlisted in the JTA
If you have an EJB-JAR associated with your web service, put the WSR in the
JAR. That's what we do and it works fine.
Regards,
Stephane
-Original Message-
From: Peter Ondruska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 7:48 AM
To: [EMAIL PROTECTED]
Subject: Re:
Hello list,
Just a curious question, hope someone could answer me. Let's say i have a
session bean creating a JTA transaction, then invoking a POJO. This POJO
performs a lookup on another session bean and invoke it. Will this new
session bean use the same JTA transaction or will it use a new one.
Hello,
I've seen people complaining about this but not a message saying whether it's
a bug or not.
We use JBoss 3.2.3 with a mySQL database 4.0.16 and the latest JDBC driver.
We noticed that IS EMPTY or IS NOT EMPTY ejb ql are badly translated by
JBoss. Here's an example:
* @ejb.finder
*
Hello list,
I sent a mail a while ago regarding tx lock and got no response so far.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg32131.html
As a quick recall, we are creating entities X. For this we need to test that
an instance of entity A,B,C,D and E exist (that is X could be crated only
Hello,
We have an ear application with multiple ejb-jar modules. Module A contains a
session bean that write stuff on a queue X. This module A also declares the
queue X in a SAR. Module B contains an MDB which is mapped on queue X.
The problem we have is that module B is deploying, queue X does
Aaaarggg
As I understand it, the only way to force re-delivery of the JMS message
is to throw an EJBException to force JBoss to rollback
the transaction.
No. You cannot throw an EJBException from onMessage, see the spec. If you
want to rollback the message, use
Well your MDB does not run in a transaction context. Here is an example of
Xdoclet tags that enable JTA transactions in an MDB:
/**
* ... other xdoclet stuff here
*
* @jboss.destination-jndi-name name=queue/parcelInstruction
*
* @ejb.transaction type=Required
*
* @author Stephane
Why not having your wsr as a separate module (and thus define this module in
your application.xml)
That's what we are doing and it runs ok.
Regards,
Stephane
-Original Message-
From: Chad Brandon [mailto:[EMAIL PROTECTED]
Sent: Fri 1/9/2004 19:36
To: [EMAIL PROTECTED]
Cc:
:
Subject:RE: [JBoss-user] EAR with jboss-app.xml and wsr?
Do you mean you don't put it in your ear file...but
you just deploy it as a standalone wsr?
--- Stephane Nicoll [EMAIL PROTECTED] wrote:
Why not having your wsr as a separate module (and
thus define this module in
your application.xml
Hello list,
This is not related to JBoss but I hope I could find an answer to my
question. I am searching a tool that could generate a O/R schema based on
entity beans sources. I found a lot of tools that are able to generate entity
beans from a DB schema (middlegen for instance).
The problem is
Yes, it is.
Check the jboss forum on www.jboss.org there is a complete thread about this.
Regards,
Stephane
-Original Message-
From: Ionel GARDAIS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 3:10 PM
To: jboss-user
Subject: [JBoss-user] use JBossMQ standalone
Hi,
Is it
Dear all,
Part of our application has the following pattern: during the day, messages
are put in the a queue for specific client. The clientID is set in a JMS
Message header (clientId = 'Something'). One or two times per day, the client
synch from a remote location and pick up its messages. For
Adrian,
Why don't you use durable topic subscriptions?
This will effectively create multiple queues, one for each clientId.
The selector is run during the publish() for each subscription.
When you come to do the receive, the subscriber's queue will only
have messages relevent to them.
You
, Adrian Brock wrote:
On Fri, 2003-12-05 at 12:41, Stephane Nicoll wrote:
Adrian,
Why don't you use durable topic subscriptions?
This will effectively create multiple queues, one for each clientId.
The selector is run during the publish() for each subscription.
When you come to do
Hello list,
We have a strange issue when starting a QueueReceiver from a SFSB. We go
this stacktrace
org.jboss.mq.SpyJMSException: Cannot create a ConnectionReceiver; -
nested throwable: (java.lang.NullPointerException)
at org.jboss.mq.Connection.receive(Connection.java:1178)
at
Hello list,
Environment:
OS : Redhat AS 2.1
Jboss 3.2.1
Postgresql 7.3.2
We found a very strange problem when some of our messages are rollbacked too
many times. Let's say we have an MDB that consume an instruction and send JMS
messages to topic/queues. If the instruction is wrong in some
Hello list,
I have two questions regarding deployment:
1/ Could someone explain me how I can put dependencies on the deployment of
an ejb-jar file. Let's say I want to deploy the myapp.jar if and only if
- the queue/something/MyQueue is deployed in the environment
- the unit myapp2.jar
-27 at 19:04, Adrian Brock wrote:
On Thu, 2003-11-27 at 17:11, Stephane Nicoll wrote:
Thanks Adrian. Let me explain a little bit because I am pretty sure my
question was badly asked :p
We have remote clients accessing our server through SOAP (we use
JbossNET). The SOAP interface provides
I see a few problems your going to need to find a solution to.
What happens if jboss wants to passivate the stateful session?
The JMS Connection cannot be passivated. (No passivation policy?)
Rollback of everything. It's already the case now. If passivation
occurs, we rollback and we kill
Hello list,
A quick question regarding JBossMQ performence.
I am talking about JBoss 3.2.X series.
Is there a limitation of the number of concurrent users?
Most of our JMS traffic uses the IN VM connection factory.
Could you please provide as much detail as possible regarding this?
Thanks,
Hello list,
Just to remind you that message. Does anybody has a suggestion to this
problem?
Regards,
Stephane
-Forwarded Message-
From: Stephane Nicoll [EMAIL PROTECTED]
To: JBoss user (E-mail) [EMAIL PROTECTED]
Subject: [JBoss-user] java.io.StreamCorruptedException / locale
Hello list,
Following the deployment of our EAR to a french production environment, we
start getting strange errors with JBossMQ
2003-11-17 17:38:52,903 [lThread-9] FATAL cannersynch.SyncherSessionBean -
Could not use syncher bean: Could not load message : 28 msg=6 soft STORED
PERSISTENT
This is a known issue. Axis has made some bug fixing and I know they
have been backported in 3.2.3RC1 (if you use JBossNET)
Regards,
Stephane
On Fri, 2003-11-14 at 16:17, Pedro Salazar wrote:
Greetings,
I'm working on a web service built-in with AXIS jars (I mean, it's not
using the
Perhaps you should consider NotSupported which will suspend the Axis
transaction whilst inside your bean. Not sure what happens if you bean
then tries to call other beans which are marked Required.
If the bean is 'never' it won't work anyway (because the calls to the SB
with 'Required' TX
This is not really an answer to your question but get a close look to
Middlegen. It allows you to generate Entity beans with Xdoclet tags based on
a DB schema
This could be a good example to understand how to do it manually
Regards,
Stphane
-Original Message-
From: Steven Nakhla
I am not sure ORDER BY is allowed (what about caching then?)
I know EJB QL does not allow that. Maybe JBoss QL.
Regards,
Stephane
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 9:24 AM
To: [EMAIL PROTECTED]
Subject: Re:
Your code seems ok. Have you updated the mail-service.xml to your environment
(meaning host of the SMTP server if you want to send email)?
Post the definition of your mail-service.xml
Regards,
Stephane
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
Yup, I got the same. Actually the problem is diffrent. If you enable log4j on
axis, you'll see the problem: it's a ClassCastException.
When you redeploy, the RMI narrow at Axis crashes for some weird reason. I
already opened a bug at Axis Bugzilla, no response so far (Seems that the
home
Check the definition of your DS (the one that the PM of JbossMQ uses)
Regards,
Stephane
-Original Message-
From: FUHRER Patrik [mailto:[EMAIL PROTECTED]
Sent: Mon 11/3/2003 8:12
To: FUHRER Patrik; [EMAIL PROTECTED]
Cc:
Subject:[JBoss-user] Exception staring
Right the way, sir!
Please read the doc
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/jboss-user
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
Regards,
Stephane
On Thu, 2003-10-30 at
middlegen.
Regards,
Stephane
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of Eric J
KaplanSent: Wednesday, October 29, 2003 3:06 PMTo:
[EMAIL PROTECTED]Subject: [JBoss-user] a to
cmp
All
Anyone know of a good product (or
Statefull session bean are attached to a client instance. In NO case should
it be shared.
Regards,
Stephane
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Alban
Soupper
Sent: Wednesday, October 29, 2003 3:18 PM
To: JBoss User (E-mail)
Subject:
Greetings,
The update message should have some header saying it's an update (some string
property: action = update). Then you can map an MDB with the following JMS
Selector : action = 'update'
For this MDB you can extend the default container and specify that only one
MDB can be instantiated at
now,
but still it does not work anymore till I redeploy.
Any idea?
Regards,
Stephane
On Thu, 2003-10-09 at 15:23, Adrian Brock wrote:
On Thu, 2003-10-09 at 13:31, Stephane Nicoll wrote:
Thanks Adrian,
No, we used the standard axis distribution before and hot deployment
went
fine. It's
Adrian,
Thanks for the fast reply. I updated the code this way:
// Lookup
InitialContext context = new InitialContext(); // Will work only for
use as the context is available directly
Object obj = context.lookup(ejb/kiala/nodesynch/NodeSyncherLocal);
Class clazz =
As far as I know, SUN VM supports up to 2Gb of memory, not more.
Regards,
Stephane
-Original Message-
From: Mateus Gonçalves dos Santos [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 4:55 PM
To: [EMAIL PROTECTED]
Cc: Domingos Antonio Pereira Creado Júnior
Subject:
If RC2 worked fine, you better not watch @t axis side.
It has been updated to 1.1 final in RC2.
Please post the application.xml of your ear and your web-service.xml file
Regards,
Stephane
-Original Message-
From: Bernd Koecke [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003
and J2EE 1.3.1.
j2ee.jar is in the classpath, which is appended to the jboss_classpath.
In any case you should do that. Those lib are already present. You have
a classcast exception because the classpath contain more than one
instance of the same class.
Why the hell are you adding j2ee.jar to
no
-Original Message-
From: Alwyn Schoeman [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] scheduler service
Hi,
Must your MBean also implement Schedulable in this case?
On Fri, Oct 03, 2003 at 09:03:35PM +0800, Scott M
Guys,
Please READ the info properly. You should send a mail to:
[EMAIL PROTECTED]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/jboss-user
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
Hello,
We used both 3.2.1 and 3.2.2RC4 and we got the same problem. We have an ear
containing EJBs, WAR, and a WSR defining our web service.
Attached the web-service.xml we use
If we deploy the ear, eveything went fine, jboss-net found the web service
and deploys it. We can access it throug our
webservices are present. It fails
only
with a redeploy where the JNDI-Paths are identical.
Bernd
Stephane Nicoll wrote:
Hello,
We used both 3.2.1 and 3.2.2RC4 and we got the same problem. We have an ear
containing EJBs, WAR, and a WSR defining our web service.
Attached the web-service.xml
, Stephane Nicoll wrote:
Hello,
We used both 3.2.1 and 3.2.2RC4 and we got the same problem. We have an ear
containing EJBs, WAR, and a WSR defining our web service.
Attached the web-service.xml we use
If we deploy the ear, eveything went fine, jboss-net found the web service
and deploys
Yes the order of the module in your application.xml is the deployment order.
Just put the sar before the war in your application.xml
Regards,
Stephane
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 1:01 PM
To: [EMAIL PROTECTED]
:45, Stephane Nicoll wrote:
Hello,
We used both 3.2.1 and 3.2.2RC4 and we got the same problem. We have an
ear
containing EJBs, WAR, and a WSR defining our web service.
Attached the web-service.xml we use
If we deploy the ear, eveything went fine, jboss-net found the web
service
-app.xml, and that is what is preventing
me from making the deployment of the .sar happening before the deployment
of the .war
any workarounds?
thanx and regards
marco
-Original Message-
From: ext Stephane Nicoll [mailto:[EMAIL PROTECTED]
Sent: 09 October, 2003 16:16
To: [EMAIL
hot
deploymentproblem(ClassCastException)
On Thu, 2003-10-09 at 15:14, Stephane Nicoll wrote:
When you get the class that fails, before passing it to narrow()
run it through something like the following code (not tested or
compiled):
I don't get anything. Axis does! It's the session bean
Stephane Nicoll [mailto:[EMAIL PROTECTED]
Sent: 09 October, 2003 17:25
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] WAR has dependencies on SAR deployed in the
same EAR
Marco,
If your WAR is inside the EAR it should be defined in the
application.xml
What I am missing? Put the SAR
, the object that invoke the operation and the date at which it was
scheduled could be pass, provided you change the signature of your method.
See scheduler-service.xml in your JBoss deploy director
Regards,
Stephane Nicoll
Kiala
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
instruction from another part of the
application.
*
*
* @jmx:mbean name=Connector Service
* description=An MBean that dispatches pending instructions
* extends=org.jboss.system.ServiceMBean
*
* @author Stephane Nicoll
* @author $Author: pch $ (last edit
Yes you can add an MBean that do that for you (even backuping old log to
another partition for instance)
For the startup condition, you can simply do this check before running JBoss
(that is hack the run.sh script for instance). But I can't imagine that a
disk space problem would prevent you to
We decided to use MBean for such purposes and it proved to work quite
well. MBeans have not restrictions regarding the spec, the can
read/write the filesystem and use any native librarie you want.
The MDB can be changed by a MBean fetching a queue and doing some stuff,
coupled to a scheduler that
The spec prohibits the use of files / native libraries for a reason.
I understand that the usage of a native library can bring down the entire
application server.
Isn't this the same for MBeans?
No, see my previous mail. MBean are not running inside the 'J2EE container',
that's why.
We did
BTW, if JBoss devs now are participating to JCP, can you please try to
include the obvious api that permits to know the current depth of a queue?
It's already done, check the JMX object attached to the queue you defined
(jboss.mq.destinations domain)
Regards,
Stephane
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
-jndi-name=ejb/kiala/NodeSyncherLocal
* view-type=local
*
* @ejb.transaction type=Required
*
* @jboss-net.web-service urn=NodeSynchService
*
* @author Stephane Nicoll
* @author $Author: snicoll $ (last edit)
* @version$Revision: 1.1.2.1 $
*/
public class
I am worried about the test.jms_messages thing
in deploy/jms/jbossmq-service.xml you have the definition of the persistence
manager which points to a MySQL DB. Do you have a test DB? Normally the user
provided in the datasource should be able to create tables. If not that might
me be the problem
- rename this file to mysql-jdbc2-service.xml
There is such a file in the doc/examples directory of the distribution
Regards,
Stephane
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Could you please at least READ the stacktrace, which says:
Failed to register driver for: interbase.interclient.Driver; -
nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders
found for:
interbase.interclient.Driver);
Meaning, the driver for the interbase DB was
Hello,
I am very sorry but I forgot to include my LoginRequst.java and the
LoginResponse.java inside my ejbdoclet task (that's why the complex type were
not generated)
Now it works!
Cheers,
Stephane
-Original Message-
From: Stephane Nicoll
Sent: Friday, September 26
Don't use thread inside MBean for periodic tasks. Write your MBean with your
business method and use the MBean Scheduler provided by JBoss to invoke it
when you need to (every 60 secs for instance)
In your method you can specify a way to interrupt it if needed (if you are
looping on some files
Hello,
We have an application using MBean and the varia scheduler. Everything worked
fine. For some reasons, we had to externalize the definition of our JMS
queues, MBean and schedulers in -service.xml file.
What we have now is a directory kpserver under the deploy containing
the .ear of the
Why do you need to externalize the definitions?
To change the value with repackaging everything. Does that sounds so strange?
You can use an unpacked sar (a directory structure)
That was also my conclusion. I have an EAR with all my code. How can I
include that in the sare? Do I need an
No,
Each and every ear file has a file called application.xml. This file contains
the modules to deploy
The order in which you specify the modules is the order in which they will be
deployed
Regards,
Stephane
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Yes, it is. There is only one log4j configuration available in JBoss as it is
a singleton (and thus global to the whole JVM that hosts JBoss).
This is a problem which is quite annoying, I don't know if there is a clear
solution to this
check $JBOSS_HOME/server/default/conf/log4j.xml and the
Hello list,
apparently LIMIT and OFFSET clauses in JBossQL only accepter parameters (?x)
and not fixed values. Can you confirm?
If not could you provide me an example where fixed values are used (Xdoclet
would be great)
Regards,
Stephane
winmail.dat
James,
So if the test works fine remotely then it is guaranteed, basically,
to work the same way locally?
Indeed. You are testing business logic, not the way your are accessing
that logic (JBoss should take care that the result is the same, not you
;-)
As a reminder, while Uncatched
If you are trying to access your bean from a test running outside JBoss it's
normal. Local SB can be accessed inside JBoss only.
Regards,
Stephane
-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 12:59 PM
To: [EMAIL PROTECTED]
Subject:
-Original Message-
From: James Black [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 2:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] local session beans
Stephane Nicoll wrote:
If you are trying to access your bean from a test running outside JBoss it's
normal. Local SB can
Hello list,
We have an application that creates, namely, 'Parcel's. For this, it
needs access to :
- KP
- DSP
- Process
- ParcelPlace
- BarcodeType
- ParcelState
- Country
I tried to rollout this application to JBoss 3.2.2RC3 and got deadlock
while creating a lot of parcels at the same time
A missing ejb-ref or ejb-external-ref?
Regards,
Stephane
On Mon, 2003-09-15 at 09:51, Jon Haugsand wrote:
* Jon Haugsand
The following stack trace shows a strange situation. Can anyone hint
to me where to look for the error?
Actually, the problem happens to take place during
I assume this enity bean is included into a JAR file, right?
Put the dependency on the JAR file in a package level rather than EJB. I assume the dependency you have currently is the availablity of the bean in the JNDI tree, which is not enough.
If you put package (yourapp.jar) I think it
I kindly remind you that one, in plain/text format this time, as
suggested by Adrian.
Regards,
Stéphane
Hi,
Got maybe a weird question but I am currently busy investigatin why we
have so much Tx deadlock; What is the behavior when manipulating the
value object of an entity bean.
Let's
Hi to all,
I have a question regarding JMS and MDBs. Is it possible somehow to 'disable' an MDB. Clearly, I would like a feature accessbile through the JMX console or by invoking some session bean I would have made that allows me to disable a queue.
Meaning queue is still available (we can
reponses if you don't post in html
Regards,
Adrian
At 10:00 AM +0200 9/9/03, Stephane Nicoll wrote:
Hi to all,
I have a question regarding JMS and MDBs. Is it possible somehow to
'disable' an MDB. Clearly, I would like a feature accessbile
through the JMX console or by invoking some
Hi,
Got maybe a weird question but I am currently busy investigatin why we have so much Tx deadlock; What is the behavior when manipulating the value object of an entity bean.
Let's say I call findByPrimaryKey on an entity bean's facade and this method returns me a VO of an entity bean. I
Regards,
Stphane
On Wed, 2003-09-03 at 18:53, Eric J Kaplan wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephane Nicoll
Sent: Wednesday, September 03, 2003 12:17 PM
To: JBoss user
Subject: Re: [JBoss-user
Hi,
We have a problem while passivating a statefull session bean. We are running JBoss 3.2.1 on Redhat 9. This bean aims at providing JMS messages to a particular client. If the client timeouts for some reasons, the bean is not used anymore. At the time the ejbPassivate method is called, we
I am surprised, cause the log file gives you the answer
javax.management.InstanceNotFoundException: abp:service=Hello is
What is this abp/HelloService .. You don't need to specify this ...
notregistered.)
On Wed, 2003-09-03 at 17:02, Eric J Kaplan wrote:
Hi
Im trying
Simplest way is to remove the DTD declaration in your XML file (the line with doctype etc). Otherwise, there is an option in conf/jboss-service.xml about validation. Just disabled it
Regards,
Stphane Nicoll
On Thu, 2003-08-28 at 12:18, Sasidharan, Manoj wrote:
Hello Adrian,
Thanks for
If you want to use Axis 1.1 RC2 in any release of JBoss, then just download the RC2 from the official website, find the axis directory contained in the webapp dir of the distribution and then copy this directory in the deploy directory of your server
(rename axis to axis.war to allow
Hello,
You can, for instance create a directory lib in your ear and put your jar files there. Then in the META-INF of your jar (MyApp-ejb.jar) you can add a classpath ref that points to
lib/MyApp-lib.jar)
will be loaded by the JAR deployer
Regards,
Stphane
On Wed, 2003-08-27 at 11:03,
Hello,
We had exactly the same problem!
Using Jboss 3.2.1 with the pg73jdbc3 driver solves our problem.
Regards,
Stphane Nicoll
On Wed, 2003-08-27 at 17:14, Tim McAuley wrote:
Thanks for the reply. I have at last managed to track down the problem.
Just after sending the first email I
Hi,
Our application runs 'fine' on JBoss 3.2.1 using intensively JMS and Entity beans in CMP mode. I tried to rollout this application on both 3.2.2 RC2 and RC3 but we have deadlocks very quickly.
I don't know exactly what kind of information is relevant. Could you please, in a first stage,
First of all, I will put those JAR and WAR into an EAR file, not a SAR.
Then apart from that, sorry I don't know the answer :/
On Thu, 2003-08-21 at 11:52, Davide Pozza wrote:
Hi all
I've packager my application's jar and war into a sar archive and at the
first startup of jboss I receive
Have a look to middlegen. It allows you to create 2.0 entity beans based on a
DB mdodel
-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Thu 8/21/2003 20:41
To: [EMAIL PROTECTED]
Cc:
Subject:[JBoss-user] many to many CMR xdoclet example?
I'm
88 matches
Mail list logo