Re: [JBoss-user] Removing items from a CMR collection

2003-09-09 Thread Matthew Hixson
Thanks, Scott. I got this working. public boolean emptyCart(CartLocal cart) { Collection cartContentList = cart.getCartContentList(); Iterator i = cartContentList.iterator(); while(i.hasNext()) { i.next(); // advance the pointer down the list i.remove(); } retu

[JBoss-user] JbossMQ error: 'User: null is NOT authenticated'

2003-09-09 Thread Panagiotis Korros
I am using JBoss 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 ityI

[JBoss-user] JbossMQ error: 'User: null is NOT authenticated'

2003-09-09 Thread Panagiotis Korros
Title: Message    I am using JBoss 3.2.1 with JDK 1.4.2 and i get the following error:javax.jms.JMSSecurityException: User: null is NOT authenticatedat org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:215)at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(

Re: [JBoss-user] session bean overwriting other session bean values

2003-09-09 Thread Scott M Stark
Session beans don't have values so you have to be talking about the database/entity bean values I presume in which case the behavior you describe is expected. -- Scott Stark Chief Technology Officer JBoss Group, LLC Butt, Dudley wrote: Hi, Ok,

Re: [JBoss-user] Possible to dynamically change datasource information?

2003-09-09 Thread Scott M Stark
No, but you can redeploy the datasource with the new configuration. This will not gracefully suspend ongoing or new transactions that start. To do that you would need to implement your own JCA adaptor. -- Scott Stark Chief Technology Officer JBoss Group, LLC

Re: [JBoss-user] Re: JBoss-user digest, Vol 1 #5010 - 10 msgs

2003-09-09 Thread Scott M Stark
This has nothing to do with authentication and cannot be addressed from the client. The error says that the abc.com stmp server will not relay mail to @yahoo.com. You need to use another smtp gateway or configure it to allow relaying from the local network. -- Scott Sta

Re: [JBoss-user] Removing items from a CMR collection

2003-09-09 Thread Scott M Stark
This is basic java.util.Collection behavior. From the java.util.Iterator.remove javadoc: public void remove() Removes from the underlying collection the last element returned by the iterator (optional operation). This method can be called only once per call to next. The behavior of an iter

Re: [JBoss-user] Selecting large datasets using CMP

2003-09-09 Thread Scott M Stark
Use the jboss-ql limit offset feature if your db supports it. ejb-jar.xml: findWithLimitOffset int int jbosscmp-jdbc.xml: findWithLimitOffset

[JBoss-user] Re: JBoss-user digest, Vol 1 #5010 - 10 msgs

2003-09-09 Thread rjh
Hi, My SMTP server requires authentication for outbound message sends. I have the usual mail-service.xml filled in and it can send messages locally and even login to POP3. But sends outside the local domain fail, giving the below error. Below that is the xml template I use, which is the default

[JBoss-user] Removing items from a CMR collection

2003-09-09 Thread Matthew Hixson
I have the following method while takes as an argument a reference to a CartBean (a shopping cart). This method's jobs is to remove everything (CartContentBeans) from the shopping cart. public boolean emptyCart(CartLocal cart) { Collection cartContentList = cart.getCartContentList();

RE: [JBoss-user] How "reliable" JBossMQ is

2003-09-09 Thread thomas . cherel
Thanks for the details. I appreciate. You mentioned that this is a well worn explanation. Where can I find more details? In the archive of this mailing list? In the archive of the JBoss forum in jboss.org? Before sending the email, I checked the JBoss documentation itself and I did not find too ma

[JBoss-user] Out of Memory error

2003-09-09 Thread Development Mailing Lists
After redeploying several times in Jboss (3.0.7) Jboss gives an OutOFMemory error. Seems to only happen during development when redeploying several times. Does this happen to anyone else? -John --- This sf.net email is sponsored by:ThinkGeek

[JBoss-user] problems setting a not null CMR field

2003-09-09 Thread Matthew Hixson
I have a bean with a field whose database column has a 'not null' constraint. This field is a CMR. Since we're not supposed to set CMR fields in the ejbCreate() method I moved the call to that setter to ejbPostCreate(). However, since JBoss does the INSERT at the end of ejbCreate() this viol

Re: [JBoss-user] Looking for some literature/examples on XDoclet/JBoss usage

2003-09-09 Thread harm
I recommend that you look at the xpetstore example project. I can be found at: http://xpetstore.sourceforge.net "Sasidharan, Manoj" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/08/2003 09:59 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] Looking fo

RE: [JBoss-user] Selecting large datasets using CMP

2003-09-09 Thread Eric J Kaplan
Russ I don't know exactly what you need to do in this app (just reading, updating as well) but there's nothing wrong with straight jdbc from the session bean for very large queries. This has been a J2EE design principal for a while. Especially if it's read only. On the other hand, if you get CM

[JBoss-user] [update] wierd - cmr w/vo first time null?

2003-09-09 Thread Darren Hartford
correction: This issue with the first-time null exception seems related to JDBCOptimistic lock - once I went back to QueuedPessimisticEJBLock the first-time nulls no longer happen (but performance drops). --__--__-- Hey all, Optimizing my program and testing as I go through, and came across an

Re: [JBoss-user] problems with 3.2.2RC3 on MacOS X

2003-09-09 Thread Matthew Hixson
Thanks, Scott. That was exactly the problem. I did not even know about gnutar. Ya learn something new every day... Cheers, -M@ On Tuesday, September 9, 2003, at 05:37 AM, Scott M Stark wrote: I would say you extracted the contents of the download with the inadequate default tar rath

[JBoss-user] Re: Possible to dynamically change datasource information?

2003-09-09 Thread Russell Chan
Oops... I forgot to mention versions: We're using jboss 3.2.1 under linux, sun jdk 1.4.1 Russell Chan wrote: Hi, Is it possible to manipulate a datasource programmatically, to change the characteristics of a datasource on the fly? Here's what we'd like to do: There are occasions, where we nee

[JBoss-user] Selecting large datasets using CMP

2003-09-09 Thread Russell Chan
Hi, In our application we currently have a need (don't ask) to periodically go through a very large dataset. We are using jboss 3.2.1, with an oracle 9i back-end, using CMP2. On my first attempts to do this, with a read-ahead strategy of "on-load", with a page size of 10, (in a transaction), the

Re: [JBoss-user] Looking for some literature/examples on XDoclet/JBoss usage

2003-09-09 Thread Paul Kavanagh
Hi Manoj, for lots of XDoclet examples, check out XPetstore: http://xpetstore.sourceforge.net or the resources section of the XDoclet website: http://xdoclet.sourceforge.net/resources.html HTH, -Paul --- "Sasidharan, Manoj" <[EMAIL PROTECTED]> wrote: > Hello All, > > I am looking for a some

Re: [JBoss-user] How "reliable" JBossMQ is

2003-09-09 Thread Adrian Brock
The main thing to configure for JBossMQ is the MessageCache so you don't run out of memory. Excuse me if I don't repeat the well worn explanation. JBossMQ already implements a transaction log for its local branch of an XA transaction. There is also a jdbc2 pm that stores messages/transaction log i

[JBoss-user] How "reliable" JBossMQ is

2003-09-09 Thread thomas . cherel
If I use JBossMQ to send and receive JMS messages and if I use the XA capabilities of JBossMQ to have guaranteed/only-once delivery capabilities across multiple read/write to multiple queues as well as external databases (also using XA), is there anything I need to change to the JBossMQ configurati

RE: [JBoss-user] Designating CMP Fields as Read-only

2003-09-09 Thread Rod Macpherson
Yes, thanks. I had @read-only but the xdoclet tag is @readonly and then it is translated to in the DD. -Original Message- From: Ingo Bruell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 1:45 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Designating CMP Fields as Read-

RE: [JBoss-user] cannot find class org.jboss.logging.Logger /2

2003-09-09 Thread Marco.Mistroni
Hi all, beside the proxy (maybe i have some jars missing in classpath), the 'logger' problem has another 'problem'. while compiling CastorJDOMBeanImpl class, the compiler returns me the following error: C:\jmx-dev\src\com\marco\config\CastorJDOImpl.java:335: cannot resolve symbol symbol

RE: [JBoss-user] MDB - stop service

2003-09-09 Thread Stephane Nicoll
Thanks Adrian. I will post text/plain message in the future Regards, Stéphane -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: Tue 9/9/2003 17:43 To: [EMAIL PROTECTED] Cc: Subject:Re: [JBoss-user] MDB - stop service On Tue, 2003-09-09 at 15:30,

[JBoss-user] cannot find class org.jboss.logging.Logger

2003-09-09 Thread Marco.Mistroni
Hi all, i am trying to compile CastorMBean class, but while compiling it complaints that it cannot find following classes org.jboss.logging.Logger import org.jboss.proxy.Proxy import org.jboss.proxy.Proxies; i am using all teh jars included in the jboss 3.2.1 lib is the package na

Re: [JBoss-user] MDB - stop service

2003-09-09 Thread Adrian Brock
On Tue, 2003-09-09 at 15:30, Michael Klem wrote: > I asked a similar question before and got this response: > > > 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

[JBoss-user] wierd - cmr w/vo first time null?

2003-09-09 Thread Darren Hartford
Hey all, Optimizing my program and testing as I go through, and came across an unusual scenario. I have an Organization bean with a 1-N relationship to a Member bean. There is an Organization.getMembers() method that is an aggregate value-object. When I call the Organization value-object with

[JBoss-user] session bean overwriting other session bean values

2003-09-09 Thread Butt, Dudley
Hi, Ok, somewhere in my implementation I've screwed up... I have a session bean (stateless) that gets created then starts a process of database writes via some business logic and entity beans. When I start another process, the new session bean is created, but it doesnt start writing to database

Re: [JBoss-user] MDB - stop service

2003-09-09 Thread Michael Klem
Title: Re: [JBoss-user] MDB - stop service I asked a similar question before and got this response: > 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(

[JBoss-user] Possible to dynamically change datasource information?

2003-09-09 Thread Russell Chan
Hi, Is it possible to manipulate a datasource programmatically, to change the characteristics of a datasource on the fly? Here's what we'd like to do: There are occasions, where we need to swap out our normal database to a replicated database, and we'd like to do this as smoothly, and in as c

Re: [JBoss-user] 3.2.1 classloading questions

2003-09-09 Thread Scott M Stark
The EJB is going to have to be in the sar, or use the same scoped repository or it won't be able to see the sar deployment classes. Scoped means visibility is limited to deployments within the scoped loader repository. Run the attached ListJar program against the sar in question so I can see the ex

Re: [JBoss-user] jndi first access in a Cluster environment question

2003-09-09 Thread Scott M Stark
Joao Clemente wrote: I was writing my thesis chapter about ejb clustering and, when describing the replicated jndi tree I had this question: I have a client. He wants to access a "well-known" EJB. The jndi tree is all over the cluster, so I can use whatever node to do the jndi initial request. But

Re: [JBoss-user] problems with 3.2.2RC3 on MacOS X

2003-09-09 Thread Scott M Stark
I would say you extracted the contents of the download with the inadequate default tar rathe than gnutar and the following path does not exist: jboss-3.2.2RC3/server/default/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/ReadOnlyAccessFilter.class --

[JBoss-user] Transaction ...

2003-09-09 Thread Rafal Kedziorski
hi, a short question about transactions. Is's good idea to set transactions for all get*() methods to Never i.e.: /** * Gets the permission_id attribute of the Acl_EntryBean object * * @return The permission_id value * * @ejb.persistence * column-name="per

Re: [JBoss-user] Designating CMP Fields as Read-only

2003-09-09 Thread Ingo Bruell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Rod, doesn't the tag work in jbosscmp-jdbc.xml ? best regards Ingo Bruell - - --- <[EMAIL PROTECTED]> OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.

[JBoss-user] javax.resource.ResourceException: Wrong credentials passed to get Connection!

2003-09-09 Thread Meyer-Willner, Bernhard
Hi, our app always ran smoothly on JBoss 3.0.5 and Oracle 8 till at one point we received the stacktrace you can find at the end of the email. I tried finding something about this on the web and found a thread from the jboss-dev list dated April 30, 2002 (http://www.geocrawler.com/mail/thread.php

[JBoss-user] MDB - stop service

2003-09-09 Thread Stephane Nicoll
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 p

[JBoss-user] Looking for some literature/examples on XDoclet/JBoss usage

2003-09-09 Thread Sasidharan, Manoj
Hello All, I am looking for a some write up (preferrably with examples) on how to use XDoclets for generating deployment descriptor. Has anybody used Chocolate? Would you recommend it for long term product development? Thanks for your help and comments. rgds MS -