[JBoss-user] [Persistence CMP/JBoss] - Re: Exception: CMR field value is already loaded
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=bbop=viewtopicp=3875610#3875610 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3875610 --- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Am I able to relocate datasource-mapping/ ?
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 post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3872896#3872896 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872896 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Am I able to relocate datasource-mapping/ ?
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 datasources, the only difference being the datasource-mapping/ element (mySQL, MS SQLSERVER, etc). Is there a way I can supply this value programmatically instead of having it in jbosscmp-jdbc.xml so that we can just supply one version of our product? many thanks, Collin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3872566#3872566 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872566 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Commit option A causing issues with cache not updating
You're right alex. Thanks. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3869541#3869541 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869541 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Commit option A causing issues with cache not updating
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 entity primary keys are all character string based, usually 32 characters. In this one instance we had manually inserted a row into the database with primary key 'ROOT'. However, we had defined the column as char(32), which mean that SQLServer padded the rest of that particular record with whitespace. That whitespace was what ultimately was causing our problems. The strange thing is that xHome.findByPrimaryKey(ROOT) found the entity successfully when actually its primary key was ROOT (+ 28 space characters). Is that part of the specification that I had not understood previously? I would think that it should throw a FinderException in this case. Collin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3869397#3869397 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869397 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Commit option A causing issues with cache not updating
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=bbop=viewtopicp=3869283#3869283 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869283 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Commit option A causing issues with cache not updating
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 xs); I have management routines with session facades (Required transaction type) for both types of entities, which appear to be working fine. I can make updates to both types X and Y and upon re-editing the entities I see the changes reflected. However, using Commit option A with MS SQLServer as my data store, I am seeing an odd behavior: 1) I edit entity Y1, changing all of the CMP fields using a session facade with Required transaction attribute. I check the database to verify that the data has been updated on the database and it has. 2) In a future thread I obtain a reference to an instance of X which has a non-null rerference to Y1 using xHome.findByPrimaryKey(id). 3) calling xEntity.getY() results in an instance of Y for which all of the CMP fields are old and out of date (before step 1). There is only one instance of Y in the database, and looking at the primary key of Y verifies that I'm not looking at a different entity. Now, if I change my commit option to type B, then this oddness goes away. This leads me to believe it's an issue with caching at the CMP/EJB level. Strangely, though, I've been using jboss3.2.3 for quite some time now and have not seen this behavior before. Any ideas on what I might be doing wrong? I don't want to use commit option B because it's just too slow. Any help appreciated. Collin env: MSSQLServer 2000 Commit option A JBoss 3.2.3, Windows XP View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3869119#3869119 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869119 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: using jdom1.0 with jboss 3.2.x
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=bbop=viewtopicp=3855738#3855738 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855738 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: using jdom1.0 with jboss 3.2.x
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 method invocation errors because I believe it is trying to use the version of JDOM in server/lib. I've seen a couple posts about using class loader repositories for different WARs and what have you. If I wanted to isolate parts of a WAR and/or EAR to use different version of JDOM, is this the way to go? Many thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855754#3855754 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855754 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: A CMR collection may only be used within the transction
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=bbop=viewtopicp=3847060#3847060 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3847060 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Inconsistencies of CMR collections
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 associations that way... | for (Iterator persons = personHome.findAll().iterator(); persons.hasNext();) | { | Person p = (Person)persons.next(); | p.setHouses(new ArrayList()); | } | Then the container should reflect the disassociation. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846321#3846321 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846321 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: A CMR collection may only be used within the transction
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 transaction (if the collection was obtained with a transaction) * a transaction (if the collection was obtained with a different transaction) What you need to do is first to figure out where exactly in your code that this is happening. Then, you need to figure out, right before your error, what your transactional status is. You can use this helper class to aid you: | import javax.naming.InitialContext; | import javax.transaction.Status; | import javax.transaction.TransactionManager; | | | /** | * @author Collin VanDyck | * | */ | public class TransactionInfo { | | public static final boolean inActiveTransaction() | { | try | { | TransactionManager tm = (TransactionManager) new InitialContext().lookup(java:/TransactionManager); | int status = tm.getStatus(); | if (status == Status.STATUS_ACTIVE) | { | return true; | } | } | catch (Exception e) | { | e.printStackTrace(); | } | return false; | } | | public static final int getTransactionStatus() | { | try | { | TransactionManager tm = (TransactionManager) new InitialContext().lookup(java:/TransactionManager); | int status = tm.getStatus(); | return status; | } | catch (Exception e) | { | e.printStackTrace(); | return -1; | } | } | | public static final String getTransactionInformation() | { | String result = ; | | try | { | TransactionManager tm = (TransactionManager) new InitialContext().lookup(java:/TransactionManager); | int status = tm.getStatus(); | | switch (status) | { | case Status.STATUS_ACTIVE: | result = ACTIVE; | break; | case Status.STATUS_COMMITTED: | result = COMMITTED; | break; | case Status.STATUS_COMMITTING: | result = COMMITTING; | break; | case Status.STATUS_MARKED_ROLLBACK: | result = MARKED_ROLLBACK; | break; | case Status.STATUS_NO_TRANSACTION: | result = NO_TRANSACTION; | break; | case Status.STATUS_PREPARED: | result = PREPARED; | break; | case Status.STATUS_PREPARING: | result = PREPARING; | break; | case Status.STATUS_ROLLEDBACK: | result = ROLLEDBACK; | break; | case Status.STATUS_ROLLING_BACK: | result = ROLLING_BACK; | break; | case Status.STATUS_UNKNOWN: | result = UNKNOWN; | break; | default: | result = UNDEFINED; | } | } | catch (Exception e) | { | result = ERROR: could not get tx status: + e.getMessage(); | } | | return result; | } | | } | Using this class, you should be able to figure out more about what's going on.l View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846323#3846323 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846323 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Transaction timeout configuration for a specific Statele
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.sessionContext.getUserTransaction(); | int initialTranStatus; | try { | initialTranStatus = tran.getStatus(); | switch (initialTranStatus) { | case Status.STATUS_ACTIVE: | // we are ok just using the current transaction. | break; | case Status.STATUS_NO_TRANSACTION: | // create a new transaction. | try { | this.sessionContext.getUserTransaction().setTransactionTimeout(timeoutInSeconds); | tran.begin(); | } catch (NotSupportedException e) { | throw new EJBException(Unable to start transaction: + e.getMessage()); | } | break; | default: | throw new EJBException(Transaction status invalid, status is: + initialTranStatus); | } | } catch (SystemException e) { | throw new EJBException(Unable to begin transaction,e); | } | return initialTranStatus; | } | | protected void completeTransactionIfRequired(int initialTransactionStatus) { | UserTransaction tran = this.sessionContext.getUserTransaction(); | | if (initialTransactionStatus == Status.STATUS_NO_TRANSACTION) { | try { | if (tran.getStatus() == Status.STATUS_MARKED_ROLLBACK) { | tran.rollback(); | } else { | tran.commit(); | } | } catch(Exception e) { | throw new EJBException(Unable to complete transaction,e); | } | } | } | | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844576#3844576 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844576 --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Exception: CMR field value is already loaded
Hey Guys Any updates on this issue? thanks, Collin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3842322#3842322 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3842322 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Milliseconds and MySQL
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. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839819#3839819 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839819 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Can't fetch CMP Oracle CLOB fields
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 some reason. If I change the column type in Oracle9i to VARCHAR2, it works as expected. I've changed the data source type in the jbosscmp-jdbc.xml to Oracle9i. Any ideas? I'm using JBoss 3.2.3. on Windows XP Pro. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839643#3839643 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839643 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Problem with CMR and transaction, need help
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.transaction.Status; | import javax.transaction.TransactionManager; | | | /** | * @author Collin VanDyck | * | */ | public class TransactionInfo { | | public static final String getTransactionInformation() | { | String result = ; | | try | { | TransactionManager tm = (TransactionManager) new InitialContext().lookup(java:/TransactionManager); | int status = tm.getStatus(); | | switch (status) | { | case Status.STATUS_ACTIVE: | result = ACTIVE; | break; | case Status.STATUS_COMMITTED: | result = COMMITTED; | break; | case Status.STATUS_COMMITTING: | result = COMMITTING; | break; | case Status.STATUS_MARKED_ROLLBACK: | result = MARKED_ROLLBACK; | break; | case Status.STATUS_NO_TRANSACTION: | result = NO_TRANSACTION; | break; | case Status.STATUS_PREPARED: | result = PREPARED; | break; | case Status.STATUS_PREPARING: | result = PREPARING; | break; | case Status.STATUS_ROLLEDBACK: | result = ROLLEDBACK; | break; | case Status.STATUS_ROLLING_BACK: | result = ROLLING_BACK; | break; | case Status.STATUS_UNKNOWN: | result = UNKNOWN; | break; | default: | result = UNDEFINED; | } | } | catch (Exception e) | { | result = ERROR: could not get tx status: + e.getMessage(); | } | | return result; | } | | } | Use that class and let us know the transactional status when you are deleting a specific queue, as called by your deleteQueues() method. My guess is that, as lou mentioned, there is not a transactional context. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839676#3839676 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839676 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: JBOSS Windows 2003 (Server)
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=bbop=viewtopicp=3839677#3839677 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839677 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Can't fetch CMP Oracle CLOB fields
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=bbop=viewtopicp=3839700#3839700 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839700 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: JBOSS Windows 2003 (Server)
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 access on your sql server port is allowed. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839701#3839701 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839701 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: JBOSS Windows 2003 (Server)
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=bbop=viewtopicp=3839703#3839703 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839703 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Can't fetch CMP Oracle CLOB fields
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?module=bbop=viewtopicp=3839715#3839715 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839715 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?
In my jboss.xml: | enterprise-beans | | | message-driven | ejb-namePublishMessage/ejb-name | destination-jndi-namequeue/CXMLPublishQueue/destination-jndi-name | configuration-nameSingleton Message Driven Bean/configuration-name | /message-driven | |/enterprise-beans | And in my ejb-jar.xml: | message-driven | description[CDATA[]]/description | | ejb-namePublishMessage/ejb-name | | ejb-classcom.company.PublishMessageBean/ejb-class | | transaction-typeContainer/transaction-type | | /message-driven | So I'd think that because I do specify this queue and container for my MDB that I should be able to see messages in the queue not yet processed. Adrian, what other kind of logging could I do to help figure out why I can't see what is in the queue? Here's the code I'm using to inspect the queue: | QueueBrowser browser = queueSession.createBrowser(queue/CXMLPublishQueue); | Enumeration enum = browser.getEnumeration(); | while (enum.hasMoreElements()) | { | Object object = enum.nextElement(); | log.info(inspectPublishQueue: + object); | } | Which produces no output. thanks, Collin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837949#3837949 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837949 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: releasing a bean lock
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. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837975#3837975 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837975 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - How to retrieve yet-to-be-processed messages from Queue?
I'm using JBoss 3.2.3. I've got a queue that I've defined as such: | mbean code=org.jboss.mq.server.jmx.Queue name=jboss.mq.destination:service=Queue,name=CXMLPublishQueue | depends optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends | /mbean | And a Singleton MDB that consumes those messages with container configuration: |container-configuration | container-nameSingleton Message Driven Bean/container-name | call-loggingfalse/call-logging | invoker-proxy-binding-namesingleton-message-driven-bean/invoker-proxy-binding-name | container-interceptors | interceptororg.jboss.ejb.plugins.ProxyFactoryFinderInterceptor/interceptor | interceptororg.jboss.ejb.plugins.LogInterceptor/interceptor | interceptororg.jboss.ejb.plugins.RunAsSecurityInterceptor/interceptor | !-- CMT -- | interceptor transaction=Containerorg.jboss.ejb.plugins.TxInterceptorCMT/interceptor | interceptor transaction=Container metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/interceptor | interceptor transaction=Containerorg.jboss.ejb.plugins.MessageDrivenInstanceInterceptor/interceptor | !-- BMT -- | interceptor transaction=Beanorg.jboss.ejb.plugins.MessageDrivenInstanceInterceptor/interceptor | interceptor transaction=Beanorg.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT/interceptor | interceptor transaction=Bean metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/interceptor | interceptororg.jboss.resource.connectionmanager.CachedConnectionInterceptor/interceptor | /container-interceptors | instance-poolorg.jboss.ejb.plugins.MessageDrivenInstancePool/instance-pool | instance-cache/instance-cache | persistence-manager/persistence-manager | container-pool-conf | MaximumSize1/MaximumSize | strictMaximumSize/ | /container-pool-conf |/container-configuration | | ... | | invoker-proxy-bindings | invoker-proxy-binding | namesingleton-message-driven-bean/name | invoker-mbeandefault/invoker-mbean | proxy-factoryorg.jboss.ejb.plugins.jms.JMSContainerInvoker/proxy-factory | proxy-factory-config | JMSProviderAdapterJNDIDefaultJMSProvider/JMSProviderAdapterJNDI | ServerSessionPoolFactoryJNDIStdJMSPool/ServerSessionPoolFactoryJNDI | MaximumSize1/MaximumSize | MaxMessages1/MaxMessages | MDBConfig | ReconnectIntervalSec10/ReconnectIntervalSec | DLQConfig |DestinationQueuequeue/CXMLPublishQueue/DestinationQueue |MaxTimesRedelivered10/MaxTimesRedelivered |TimeToLive0/TimeToLive | /DLQConfig | /MDBConfig | /proxy-factory-config |/invoker-proxy-binding | /invoker-proxy-bindings | I've been trying to find a way to query my Queue and retrieve information about each of the Messages that have yet to be processed. I basically want to retrieve each actual message and query it. If anyone would be willing to point me in the right direction, I'd appreciate it greatly. thanks, Collin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837825#3837825 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837825 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?
Just found the QueueBrowser... will take a look at that. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837838#3837838 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837838 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?
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 in my Queue deployment? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837847#3837847 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837847 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?
[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 able to see them using the QueueBrowser? Or, is the client not the MDB? Sorry if this is a simple answer; I'm relatively new to JMS. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837854#3837854 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837854 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: How to retrieve yet-to-be-processed messages from Queue?
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. Thanks for the info. That's strange, though, because I'm using my queue to manage the publishing of assets in my system. A publish may take a minute or more to complete. I basically put 10 publish messages into the queue, and over the course of 10 minutes, the MDB consumes each message, and moves to the next one. Should I not, then, be able to see 9 messages in the queue during the first minute? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837860#3837860 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837860 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Exception: CMR field value is already loaded
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 javax.management.RuntimeMBeanException: RuntimeException in MBean operat ion 'invoke(org.jboss.invocation.Invocation)' error from time to time. I can catch these errors, though, and let my client (servlet) retry the render, which always works. I try and run these renders outside of a transactional context because doing so results in a lot of deadlock. thanks- View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837553#3837553 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837553 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: How to find out if there is an active CMT
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=bbop=viewtopicp=3837554#3837554 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837554 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [The Lizzard's corner] - Posts missing?
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=bbop=viewtopicp=3837359#3837359 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837359 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [The Lizzard's corner] - Re: Posts missing?
Thanks Juha View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837361#3837361 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837361 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Exception: CMR field value is already loaded
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(JDBCCMRFieldBridge.java:1263) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.load(JDBCCMRFieldBridge.java:1252) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.getInstanceValue(JDBCCMRFieldBridge.java:633) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.getValue(JDBCCMRFieldBridge.java:589) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:119) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) It's only reproducible, though, under heavy load. The relationship is a 1-many CMR, and read-only and transactional context doesn't seem to affect it. I can reproduce it by spawning five different simultaneous requests to the same SLSB method that (eventually) invokes the CMR. JBoss will throw this exception, though, usually just on one of the threads. The other threads execute successfully. Further low-load invocations of the SLSB method do not produce this problem ever. Any ideas? I'm using JBoss 3.2.3. Thank you. Collin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837434#3837434 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837434 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - javax.ejb.EJBException: CMR field value is already loaded (J
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) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.load(JDBCCMRFieldBridge.java:1263) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.load(JDBCCMRFieldBridge.java:1252) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.getInstanceValue(JDBCCMRFieldBridge.java:633) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.getValue(JDBCCMRFieldBridge.java:589) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:119) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at com.hannonhill.system.ejb.PageConfigurationSetCMP$Proxy.getPageConfigurations() When I try to fetch the many side of a 1-many CMR under heavy load. The getPageConfigurations() is the entity bean method to fetch the many side of the relationship. I did a search on the forums but didn't see a resolution to this in the three or four threads that were posted previously about this. Is this a bug with 3.2.3 or an application design issue? thanks! Collin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837302#3837302 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837302 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Let's talk about MBeans
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 jmx-console to get real-time statistics on my deployed EJBs and what not. I think I am missing something, though, with MBeans. What is the major advantage in using an MBean? I ask this because in my application I have a couple of different queues that handle different types of requests. I'd like to be able to create an MBean that handled the reporting of those statistics (and possibly provided other system information), but I'm not sure why I want to create an MBean for this purpose. I think I understand that because JMX is a standard other tools and adaptors may be written to interface with the JMX layer -- is that the primary advantage? Thanks for any information Collin View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837306#3837306 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837306 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: DOMSource Transformation
try using the [ code ] ... [/ code ] tags It makes your code look like: | xml | onetwo/one | /xml | Also, the preview button :) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3834318#3834318 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3834318 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Actual number of bean instances in the pool
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=bbop=viewtopicp=3829457#3829457 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829457 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Weird classloading issue with 3.2.3 WSDP
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 main application (that uses Cocoon, Xerces/Xalan etc), any further attempts to retrieve the WSDL file from my webservices servlet results in: java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser Now, I have tried a couple of different things: 1. Have placed the xercesImpl-2.0.0.jar in the WEB-INF/lib of my webservices.war. 2. Have placed the xercesImpl-2.0.0.jar in the root of my .EAR and added to my application.xml | module | javaxercesImpl-2.0.0.jar/java | /module | But in each of these scenarios, I get the same results. It is fine until I use the main application bundled with the .war (which consists of two other war's and an ejb.jar). I am confused as to why the class would be visible at first to my webservices war, and then not. Can anyone give me pointers as to what I may be doing wrong? thanks! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3829497#3829497 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829497 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: how do I enable JMX monitoring entity bean locking?
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=bbop=viewtopicp=3829518#3829518 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829518 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Actual number of bean instances in the pool
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/jmx/overview.html And in the JBoss documentation. You can access these beans at runtime, although I don't have the code handy to show you. Also, once you have JBoss up and running, go to http://localhost:8080/jmx-console (assuming you are running on port 8080), and you'll see links like the one Juha posted. There's an MBean for each entity you deploy for which the MBean will report the ReadyCount, PooledCount, etc. You can access that information through this web interface as well as in your code. HTH View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3829316#3829316 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829316 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: newbie question: transaction (CMT)
* 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 data in the database. And again, If I dont' put any transaction type in an entity bean method, how JBoss treats them by default?. If your finder methods use on-find read-ahead, then the read-ahead cache is only valid for the lifetime of the transaction in which the finder was invoked. By not having a transactional context in which you use the beans you get back from the finder method, you will incur extra db time overhead. * Are private methods inside session beans considered part of a transaction. In other words, Does JBoss creates a transaction when a private method is use in a session bean. If the business method of your session bean is marked to use a transaction, then any private methods that that method calls will execute under the current transactional context. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3829321#3829321 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3829321 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Does transactional context apply in this secenario?
Great, thanks for the reply. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3828369#3828369 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828369 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Deploying EJB's that use classes in web-inf\classes
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. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827926#3827926;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827926Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Performance Tuning] - Re: Jboss cache is always empty - why?
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 that object. If you wanted to do a test to see if you could populate the entity cache with the Author and Editor entities, just try invoking one of their CMP accessor methods. I think that would do it. However, I don't think that will help you in preventing db accesses in your entity findByPrimaryKey() methods. I'd be interested in learning how to avoid this as well. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826860#3826860;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826860Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Performance Tuning] - Re: Jboss cache is always empty - why?
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 make sure that ID exists, correct? CMRs would allow you to say EntityYLocal y = x.getY(); EntityZLocal z = x.getZ(); Either way, I'd think if you were using x.getId2() and x.getId3() as above that would enlist X in the cache. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826755#3826755;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826755Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Duplicates in web-console webapp object list.
Thanks Adrian! a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826756#3826756;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826756Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Performance Tuning] - Re: Jboss cache is always empty - why?
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()). a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826684#3826684;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826684Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Duplicates in web-console webapp object list.
Last bump of hope :) Anyone? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826685#3826685;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826685Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: unable to use ORDER BY clause
From what I have read, this is not supported yet (ORDER BY). That is what the JBoss error message is telling you, anyways. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826144#3826144;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826144Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: long lived transaction problem
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. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826233#3826233;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826233Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: unable to use ORDER BY clause
From what I read in a different thread, it is supported in JBoss4.0 but not JBoss3.x a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826236#3826236;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826236Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Duplicates in web-console webapp object list.
Bump in hoping that someone might have a suggestion on this. Thanks. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825972#3825972;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825972Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Duplicates in web-console webapp object list.
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: ?xml version=1.0 encoding=UTF-8? !DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd' display-nameProgram/display-name A J2EE CMS web-uriRootRedirect-0.1.war/web-uri context-root//context-root web-uriprogram_admin.war/web-uri context-root/admin/context-root program_ejb.jar startup.sar However, on the same level in the web-console left hand side object tree, I also see duplicates for the items within my .ear, deployed on the same level as my .ear. For example: +JBoss + program.ear + program_ejb.jar + program_admin.war + RootRedirect-0.1.war + program_ejb.jar + program_ejb.jar + program_admin.war + program_admin.war + RootRedirect-0.1.war + RootRedirect-0.1.war Any ideas on why this would be happening? Is this normal? thanks! a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825763#3825763;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825763Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Duplicates in web-console webapp object list.
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 my application.ear: | ?xml version=1.0 encoding=UTF-8? | !DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd' | application | display-nameProgram/display-name | descriptionA J2EE CMS/description | module | web | web-uriRootRedirect-0.1.war/web-uri | context-root//context-root | /web | /module | module | web | web-uriprogram_admin.war/web-uri | context-root/admin/context-root | /web | /module | module | ejbprogram_ejb.jar/ejb | /module | module | ejbstartup.sar/ejb | /module | /application | However, on the same level in the web-console left hand side object tree, I also see duplicates for the items within my .ear, deployed on the same level as my .ear. For example: | +JBoss | + program.ear | + program_ejb.jar | + program_admin.war | + RootRedirect-0.1.war | | + program_ejb.jar | + program_ejb.jar | + program_admin.war | + program_admin.war | + RootRedirect-0.1.war | + RootRedirect-0.1.war | Any ideas on why this would be happening? Is this normal? thanks! a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825764#3825764;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825764Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user