[JBoss-user] [Persistence & CMP/JBoss] - Re: Exception: CMR field value is already loaded

2005-04-27 Thread cvandyck
Hi Smeier I've tried out 3.2.7, and haven't seem the problem reoccur since then. So while I can't say for sure whether or not it was fixed, it certainly seems that way. HTH Collin View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875610#3875610 Reply to th

[JBoss-user] [Persistence & CMP/JBoss] - Re: Am I able to relocate ?

2005-04-06 Thread cvandyck
>From what I've read, in the 4.x series there is a way to abstract this >information out. Unfortunately, I can't expect some of our customers to accept >a major app server version change for this. :( Any ideas anyone? Could I write an MBean that set some property somehow? View the original

[JBoss-user] [Persistence & CMP/JBoss] - Am I able to relocate ?

2005-04-04 Thread cvandyck
This is under JBoss 3.2.3. We deploy our application to clients with various datasources. To date we've kept the datasource-mapping for the CMP layer in ejb.jar/META-INF/jbosscmp-jdbc.xml But that means we have to package two different versions of our product to use the different kinds of da

[JBoss-user] [Persistence & CMP/JBoss] - Re: Commit option A causing issues with cache not updating

2005-03-10 Thread cvandyck
You're right alex. Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869541#3869541 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869541 --- SF email is sponso

[JBoss-user] [Persistence & CMP/JBoss] - Re: Commit option A causing issues with cache not updating

2005-03-09 Thread cvandyck
Alex, The problem ended up being my own fault (of course), as it usually does :) The problem was that we had created our MSSQLServer tables manually, as our application is already deployed to multiple clients and we can't depend on the container to re-create tables from scratch every time. Our

[JBoss-user] [Persistence & CMP/JBoss] - Re: Commit option A causing issues with cache not updating

2005-03-08 Thread cvandyck
Update: I tried running the application on JBoss 3.2.6, but the same problem persists. Any ideas? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869283#3869283 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869283 -

[JBoss-user] [Persistence & CMP/JBoss] - Commit option A causing issues with cache not updating

2005-03-07 Thread cvandyck
Hello For the purpose of this example, assume I have two entities, X and Y, where Y has a fk mapping to X such that: Entity X: public abstract Y getY(); public abstract void setY(Y y); and Entity Y: public abstract java.util.Collection getXs(); public abstract void setXx(java.util.Collection x

[JBoss-user] [Installation & Configuration] - Re: using jdom1.0 with jboss 3.2.x

2004-11-19 Thread cvandyck
Thanks for the reply Scott. I updated the jdom.jar in server/lib and the server booted fine. I'm working with a webapp deployed inside of a .ear. This webapp uses Cocoon/Avalon which has its own JDOM nested in a couple levels deep. This JDOM version is rather old, and at runtime I'm getting

[JBoss-user] [Installation & Configuration] - Re: using jdom1.0 with jboss 3.2.x

2004-11-19 Thread cvandyck
I would also like to do the exact same thing, but JBoss is loading the older version instead :( View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855738#3855738 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855738

[JBoss-user] [EJB/JBoss] - Re: A CMR collection may only be used within the transction

2004-09-02 Thread cvandyck
Sure, just use the getTransactionInformation() method right before you obtain your CMR collection to determine whether or not you are in a transaction. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847060#3847060 Reply to the post : http://www.jboss.org/in

[JBoss-user] [EJB/JBoss] - Re: A CMR collection may only be used within the transction

2004-08-26 Thread cvandyck
This is caused by, well, usually, executing some method that obtains a collection of entities within the context of a transaction, and then another method (possibly the calling method) using that collection within * a transaction (if the collection was obtained without a transaction) * no trans

[JBoss-user] [EJB/JBoss] - Re: Inconsistencies of CMR collections

2004-08-26 Thread cvandyck
How are you deleting the associations? If your entity container configuration specifies commit option A, then deleting the associations from outside the container (using an SQL query) would cause this behavior. However, if you are iterating through each person entity and setting the association

[JBoss-user] [EJB/JBoss] - Re: Transaction timeout configuration for a specific Statele

2004-08-09 Thread cvandyck
You will only be able to do this if you use bean managed transactions. In your session bean, here's some starter methods that you can use to start and end your transactions: protected int beginTransactionIfRequired(int timeoutInSeconds) { | UserTransaction tran = this.sessi

[JBoss-user] [Persistence & CMP/JBoss] - Re: Exception: CMR field value is already loaded

2004-07-15 Thread cvandyck
Hey Guys Any updates on this issue? thanks, Collin View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842322#3842322 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842322

[JBoss-user] [Persistence & CMP/JBoss] - Re: Milliseconds and MySQL

2004-06-24 Thread cvandyck
If you are going to need to be able to access these values through CMP, you MUST change your code. Unless there's something I'm missing here, all you will need to do will be to just add another CMP field to your entity bean and then set your long value in your ejbCreate() method for that entity

[JBoss-user] [Persistence & CMP/JBoss] - Re: Can't fetch CMP Oracle CLOB fields

2004-06-23 Thread cvandyck
jae77 -- thanks, that worked, well, perfectly :-) I need to make sure it's going to work with my mysql text and sqlserver ntext column types, too, but I'm just really glad to see it working so far in Oracle. Thanks to all... Collin View the original post : http://www.jboss.org/index.html?mo

[JBoss-user] [Persistence & CMP/JBoss] - Re: JBOSS & Windows 2003 (Server)

2004-06-23 Thread cvandyck
It might be something wrong with your datasource config. Try posting your mssql-ds.xml file in between [ code ] ... [ / code ] tags. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839703#3839703 Reply to the post : http://www.jboss.org/index.html?module=b

[JBoss-user] [Persistence & CMP/JBoss] - Re: JBOSS & Windows 2003 (Server)

2004-06-23 Thread cvandyck
We've definitely seen this on some of our deployments, but it's rather going from machine to machine (yours is self contained..). I'd recommend going into the network config under 2003 server (or whatever the software firewall equivalent is under 2k3 server) and making sure that localhost acces

[JBoss-user] [Persistence & CMP/JBoss] - Re: Can't fetch CMP Oracle CLOB fields

2004-06-23 Thread cvandyck
Thanks for the info. Is there a recommended workaround for this? I need potentially large storage capacity for an entity field, but would like it returned as a java.lang.String. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839700#3839700 Reply to the post

[JBoss-user] [Persistence & CMP/JBoss] - Re: JBOSS & Windows 2003 (Server)

2004-06-23 Thread cvandyck
You should probably give some more information about your environment, such as a stacktrace, DDs, etc relevant to the problem. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839677#3839677 Reply to the post : http://www.jboss.org/index.html?module=bb&op=post

[JBoss-user] [Persistence & CMP/JBoss] - Re: Problem with CMR and transaction, need help

2004-06-23 Thread cvandyck
Try putting some transactional debugging in your code, especially in the deleteQueue(String queueName) method. Use this class to help determine if there is a transaction in your deleteQueue method when you are deleting multiple queues. | import javax.naming.InitialContext; | import javax.t

[JBoss-user] [Persistence & CMP/JBoss] - Can't fetch CMP Oracle CLOB fields

2004-06-23 Thread cvandyck
Hi, I'm almost done porting over our application to Oracle9i from mysql/sqlserver and have run into a bit of a problem. Columns that were stored as text before are now stored as CLOB in Oracle9i and for some reason I can't get the CMP engine to fetch these fields -- they always return null for

[JBoss-user] [EJB/JBoss] - Re: releasing a bean lock

2004-06-08 Thread cvandyck
If you need to temporarily modify an entity outside of the context of a current transaction, I believe you'd need to do it using a method invocation tagged as "RequiresNew". Of course, make sure your existing transaction would not have already enrolled the bean lest you achieve deadlock. Vie

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?

2004-06-08 Thread cvandyck
In my jboss.xml: | | | | | PublishMessage | queue/CXMLPublishQueue | Singleton Message Driven Bean | | | | And in my ejb-jar.xml: | | [CDATA[]] | | PublishMessage | |

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?

2004-06-07 Thread cvandyck
"genman" wrote : | Let's suppose you had 10 messages queued before your MDB started. | | As soon as your MDB starts, you will have one less present, even before onMessage() is called. As soon as this message is accepted, another one is dequeued. This is the same for any other client. T

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?

2004-06-07 Thread cvandyck
"[EMAIL PROTECTED]" wrote : The QueueBrowser lists messages that have not yet been received by any client. I guess I'm missing something here, then. Because my MDB is a singleton and it can only accept one message at a time, wouldn't that mean that if I had 10 messages queued up that I'd be ab

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?

2004-06-07 Thread cvandyck
I was able to use the QueueBrowser, but each time the Enumeration I asked of it would have no more elements. I read in another post that it would only list items that had been acknowledged -- does this mean that my MDB has to have the onMessage() invoked, or is there something I need to specify

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?

2004-06-07 Thread cvandyck
Just found the QueueBrowser... will take a look at that. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837838#3837838 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837838

[JBoss-user] [Messaging, JMS & JBossMQ] - How to retrieve yet-to-be-processed messages from Queue?

2004-06-07 Thread cvandyck
I'm using JBoss 3.2.3. I've got a queue that I've defined as such: | | jboss.mq:service=DestinationManager | | And a Singleton MDB that consumes those messages with container configuration: | | Singleton Message Driven Bean | false

[JBoss-user] [EJB/JBoss] - Re: How to find out if there is an active CMT

2004-06-04 Thread cvandyck
Adrian, Thanks for your help -- I've been wondering for some time how to do this :) Collin View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837554#3837554 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837554 --

[JBoss-user] [Persistence & CMP/JBoss] - Re: Exception: CMR field value is already loaded

2004-06-04 Thread cvandyck
Well, our application essentially renders pages, which are constructed using many different kinds of entities, so a page render might involve 20-30 different entities. I replicate it by bookmarking about 15 different page render URLs and then loading them all simultaneously. I also see a java

[JBoss-user] [EJB/JBoss] - How to find out if there is an active CMT

2004-06-03 Thread cvandyck
This is probably pretty simple.. . but I can't figure it out. I've got multiple SLSB methods that specify "Supports" for their container managed transactions. I'd like to be able to determine in those methods whether or not a transactional context has been created prior to that method invocatio

[JBoss-user] [Persistence & CMP/JBoss] - Re: Exception: CMR field value is already loaded

2004-06-03 Thread cvandyck
I've just started getting this bug too. javax.ejb.EJBException: CMR field value is already loaded at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge$FieldState.loadRelations(JDBCCMRFieldBridge.java:1722 at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.load(JDB

[JBoss-user] [The Lizzard's corner] - Re: Posts missing?

2004-06-03 Thread cvandyck
Thanks Juha View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837361#3837361 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837361 --- This SF.Net email is sponsored by

[JBoss-user] [The Lizzard's corner] - Posts missing?

2004-06-03 Thread cvandyck
Hey Guys I made a couple of posts yesterday and now they are gone (also from my watched topics page).. Was there some forums pruning yesterday or today? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837359#3837359 Reply to the post : http://www.jboss.org

[JBoss-user] [Beginners Corner] - Let's talk about MBeans

2004-06-02 Thread cvandyck
Since this is a JMX newbie question, I thought I'd post it here instead of the JMX forum. I understand at a basic level what MBeans are. I've written a framework in my application for timed services that use MBeans and the JMX Timer service. I have also played around with the web-console and

[JBoss-user] [Persistence & CMP/JBoss] - javax.ejb.EJBException: CMR field value is already loaded (J

2004-06-02 Thread cvandyck
Hi All, I'm running JBoss 3.2.3 on XP, and getting this error: 14:22:16,250 ERROR [LogInterceptor] EJBException: javax.ejb.EJBException: CMR field value is already loaded at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge$FieldState.loadRelations(JDBCCMRFieldBridge.java:1722)

[JBoss-user] [Beginners Corner] - Re: DOMSource Transformation

2004-05-10 Thread cvandyck
try using the [ code ] ... [/ code ] tags It makes your code look like: | | two | | Also, the "preview" button :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834318#3834318 Reply to the post : http://www.jboss.org/index.html?module=bb&op

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: How to Configure the # of instances of an MDB

2004-05-05 Thread cvandyck
"[EMAIL PROTECTED]" wrote : | Here is something I added for 3.2.4 that provides a singleton MDB | http://cvs.sourceforge.net/viewcvs.py/jboss/jboss/src/etc/conf/default/standardjboss.xml?r1=1.47.2.15&r2=1.47.2.16 | Adrian This is insanely useful and you have shaved hours off of the devel

[JBoss-user] [Installation & Configuration] - Re: how do I enable JMX monitoring entity bean locking?

2004-04-06 Thread cvandyck
If you are invoking printLockMonitor and the values for Total Lock Time, Num Contentions, and Time Outs are 0, then I would not think that to be a problem necessarily. What exactly is it you are trying to see? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3

[JBoss-user] [Installation & Configuration] - Weird classloading issue with 3.2.3 & WSDP

2004-04-06 Thread cvandyck
Hi, I've got a web services bundle deployed as a .WAR within my main EAR. The web services servlet needs to use Xerces to parse the WSDL file. When I deploy the application, the web services application can successfully load this class and parse the file. However, whenever I log into the mai

[JBoss-user] [EJB/JBoss] - Re: Actual number of bean instances in the pool

2004-04-06 Thread cvandyck
Hi Cari, No problem, you will be able to find this information not only for entity beans, but also stateless session beans. I'm sorry if my post was misleading in that regard. Collin ps. HTH == Hope This Helps :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopi

[JBoss-user] [EJB/JBoss] - Re: newbie question: transaction (CMT)

2004-04-05 Thread cvandyck
* I have declared my finder methods in an entity bean to have transaction type "NotSupported". But I read in the ejb 2.0 spec that they strongly advise us to use only the "Required", "RequiresNew" and "Mandatory" in entity beans. Why would I want to create transactions for methods that only find

[JBoss-user] [EJB/JBoss] - Re: Actual number of bean instances in the pool

2004-04-05 Thread cvandyck
What Juha is saying is that there is an MBean for each of your entity beans that supports the reporting that you are needing. MBean is short for Management Bean, and is part of the JMX (Java Management Extensions) specification. You can read more about JMX here: http://java.sun.com/products/jm

[JBoss-user] [EJB/JBoss] - Re: Does transactional context apply in this secenario?

2004-03-31 Thread cvandyck
Great, thanks for the reply. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828369#3828369 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828369 --- This SF.Net ema

[JBoss-user] [Beginners Corner] - Re: Deploying EJB's that use classes in web-inf\classes

2004-03-29 Thread cvandyck
I'm not sure if this is the correct way to do this, but our solution to this was to deploy those needed classes in the ejb.jar deployment as well. Our build script handles the copying of those classes. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827926#3827926";>View the origin

[JBoss-user] [Persistence & CMP/JBoss] - ReadyCount vs PooledCount

2004-03-24 Thread cvandyck
I'm a little bit confused about the difference between these two values that are being reported back from the web-console webapp. I've got a Page entity, that, after loading up quite a few of them through normal use in my application, are having these values reported: ReadyCount = 180 PooledCou

[JBoss-user] [Performance Tuning] - Re: Jboss cache is always empty - why?

2004-03-22 Thread cvandyck
I see what you are saying. It's my understanding that regardless of the cache, a findByPrimaryKey() will always hit the database. I think that the reason for this is that a findByPrimaryKey() will return a handle, but not necessarily load the object; that happens when a method is invoked upon t

[JBoss-user] [Installation & Configuration] - Re: Duplicates in web-console webapp object list.

2004-03-21 Thread cvandyck
Thanks Adrian! http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826756#3826756";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826756>Reply to the post --- This SF.Net email is sponsored b

[JBoss-user] [Performance Tuning] - Re: Jboss cache is always empty - why?

2004-03-21 Thread cvandyck
How are you getting the FK ids? When you get your entity X, say through: EntityLocal x = xHome.findByPrimaryKey(xId); Do you then get your FKs through x.getId2() x.getId3() ? If so, I don't understand then. The CMR I am familiar with makes that unecessary, unpossible. The container will ma

[JBoss-user] [Installation & Configuration] - Re: Duplicates in web-console webapp object list.

2004-03-20 Thread cvandyck
Last "bump of hope" :) Anyone? http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826685#3826685";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826685>Reply to the post --- This SF.Net emai

[JBoss-user] [Performance Tuning] - Re: Jboss cache is always empty - why?

2004-03-20 Thread cvandyck
I don't think that simply finding the bean (i.e. findByPrimaryKey or otherwise) will enlist the entity in the cache. You must call some member method of that bean for this to happen (i.e. myEntity.getId()). http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826684#3826684";>View the ori

[JBoss-user] [EJB/JBoss] - Re: unable to use ORDER BY clause

2004-03-17 Thread cvandyck
>From what I read in a different thread, it is supported in JBoss4.0 but not JBoss3.x http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826236#3826236";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826236>Reply to the post -

[JBoss-user] [EJB/JBoss] - Re: long lived transaction problem

2004-03-17 Thread cvandyck
I have two session beans in the app I am developing that need hour or two hour long transaction times, so I code those with bean managed transaction stateless session beans. The other stateless session beans, that have container managed transactions, use the global default of 300 seconds. http

[JBoss-user] [EJB/JBoss] - Re: unable to use ORDER BY clause

2004-03-17 Thread cvandyck
>From what I have read, this is not supported yet (ORDER BY). That is what the JBoss >error message is telling you, anyways. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826144#3826144";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38261

[JBoss-user] [Installation & Configuration] - Re: Duplicates in web-console webapp object list.

2004-03-16 Thread cvandyck
Bump in hoping that someone might have a suggestion on this. Thanks. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825972#3825972";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825972>Reply to the post --

[JBoss-user] [Installation & Configuration] - Re: Duplicates in web-console webapp object list.

2004-03-15 Thread cvandyck
Sorry, formatting was borked. Let me try again: I've got an application installed as an exploded .ear deployment. When I go to the web-console webapp (3.2.2), I get my program.ear group as expected. Expanding it, I see my ejb.jar deployed as well as my two webapps. This corresponds exactly to

[JBoss-user] [Installation & Configuration] - Duplicates in web-console webapp object list.

2004-03-15 Thread cvandyck
I've got an application installed as an exploded .ear deployment. When I go to the web-console webapp (3.2.2), I get my program.ear group as expected. Expanding it, I see my ejb.jar deployed as well as my two webapps. This corresponds exactly to my application.ear: http://java.sun.com/dtd/a