[JBoss-user] WrappedConnection problem

2003-11-14 Thread mark pope
Hi, I'm passing a JDBC Connection between two stateless beans. The called bean uses it and closes its Statement and ResultSet. When the method returns to the caller I get a WrappedConnection msg on the console. Both EJBs have local interfaces. I don't believe that I am violating the EJB Spec and

[JBoss-user] WrappedConnection problem

2003-11-14 Thread mark pope
Hi, I'm passing a JDBC Connection between two stateless beans. The called bean uses it and closes its Statement and ResultSet. When the method returns to the caller I get a WrappedConnection msg on the console. Both EJBs have local interfaces. I don't believe that I am violating the EJB Spec and

[JBoss-user] WrappedConnection problem

2003-11-14 Thread mark pope
Hi, I'm passing a JDBC Connection between two stateless beans. The called bean uses it and closes its Statement and ResultSet. When the method returns to the caller I get a WrappedConnection msg on the console. Both EJBs have local interfaces. I don't believe that I am violating the EJB Spec and

[JBoss-user] WrappedConnection problem

2003-11-14 Thread mark pope
Hi, I'm passing a JDBC Connection between two stateless beans. The called bean uses it and closes its Statement and ResultSet. When the method returns to the caller I get a WrappedConnection msg on the console. Both EJBs have local interfaces. I don't believe that I am violating the EJB Spec and

[JBoss-user] transactions in MDB - Error: A CMR collection may only be used wi thin the transction in which it was created

2003-11-14 Thread Balakrishnan, Vijay
http://www.mail-archive.com/[EMAIL PROTECTED]/msg22637.html Hi, I am getting a very similar error to the thread above: java.lang.IllegalStateException: A CMR collection may only be used within the transction in which it was created at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.getI

[JBoss-user] SSO with JBoss-tomcat

2003-11-14 Thread Paul Ekeland
Hi, I've been trying to do some Single sign-on with the following configuration JBoss 3.2.1-tomcat 4.1.24, so far with no success. It would be useful for us since we have several war deployed. I have strictly followed the tomcat SSO configuration (by adding a Valve with SingleSignOn) and this

[JBoss-user] Hot Deploy of Session Beans Fails

2003-11-14 Thread Rod Macpherson
Title: Message We use loose EJB jars during development rather than an EAR file so we can hot-deploy specific pieces. Unfortunately a session bean hot-deploy causes a class-cast exception the next time that bean is used.   This fails if and only if you hot-deploy the session bean that is be

[JBoss-user] MDB Pool Size

2003-11-14 Thread Brian Wallis
I am testing an application that consists of a number of MDBs. During testing I am using the JMX console to see how many beans are active. For one of them the size of the MessageDrivenInstancePool (CurrentSize) is always 0 (MaxSize=5) but I can see tracing from the bean in the log and it is ob

[JBoss-user] Weblogic JBoss Migration: Oracle XA and Non-XA DataSource Problem

2003-11-14 Thread Sasidharan, Manoj
Hello All, JBoss 3.2.2 (latest in the tree) Oracle 8.1.7 We are getting the following Oracle XA exception calling a Stateless Session Bean. This session bean uses two datasources - oracle-ds.xml (Non-XA) oracle-xa-ds.xml (XA) The operations done in the Non-XA datasource should not impact the on

Re: [JBoss-user] Number of active EJBs

2003-11-14 Thread Brian Wallis
On Thu, 13 Nov 2003 04:39, Podgaetsky, Genady wrote: > I'm trying to get started with EjB on JBoss and wondering can I get a > number of active EJB's? I looked at the JMX console and saw no details > under jndiName=EJBName,service=EJB Can anyone elaborate on this? You want "jndiName=EJBName,plugin

[JBoss-user] MDB Pool Size

2003-11-14 Thread Brian Wallis
I am testing an application that consists of a number of MDBs. During testing I am using the JMX console to see how many beans are active. For one of them the size of the MessageDrivenInstancePool (CurrentSize) is always 0 (MaxSize=5) but I can see tracing from the bean in the log and it is ob

Re: [JBoss-user] Number of active EJBs

2003-11-14 Thread Brian Wallis
On Thu, 13 Nov 2003 04:39, Podgaetsky, Genady wrote: > I'm trying to get started with EjB on JBoss and wondering can I get a > number of active EJB's? I looked at the JMX console and saw no details > under jndiName=EJBName,service=EJB Can anyone elaborate on this? You want "jndiName=EJBName,plugin

RE: [JBoss-user] Weblogic to JBoss Migration - Differences in XA and Non-XA DataSource handling (Stack Trace)

2003-11-14 Thread Sasidharan, Manoj
Hello Adrian, Thanks for taking some time for helping me on this issue. Here is the stack trace at the server when the problem occurs. 20:26:31,122 WARN [TxConnectionManager$LocalXAResource] Prepare called on a loc al tx. Use of local transactions on a jta transaction with more than one branch m

RE: [JBoss-user] JBoss-net does not like calling EJB method with transaction type = never

2003-11-14 Thread Yates, Danny
The other option is that the Axis transaction is unsuspended for the second-tier beans. Effectively, this will make all your second-tier beans run in one transaction. If this is what happens. -- Danny Yates -Original Message- From: Jonathan.O'[EMAIL PROTECTED] [mailto:Jonathan.O'[EMAIL

RE: [JBoss-user] JBoss-net does not like calling EJB method with transaction type = never

2003-11-14 Thread Stephane Nicoll
> Perhaps you should consider "NotSupported" which will suspend the Axis > transaction whilst inside your bean. Not sure what happens if you bean > then tries to call other beans which are marked "Required". If the bean is 'never' it won't work anyway (because the calls to the SB with 'Required' T

Re: [JBoss-user] AXIS web service throws NullPointerException when REDEPLOYING on JBOSS 3.2.2

2003-11-14 Thread Stephane Nicoll
This is a known issue. Axis has made some bug fixing and I know they have been backported in 3.2.3RC1 (if you use JBossNET) Regards, Stephane On Fri, 2003-11-14 at 16:17, Pedro Salazar wrote: > Greetings, > > I'm working on a web service built-in with AXIS jars (I mean, it's not > using the jb

RE: [JBoss-user] JBoss-net does not like calling EJB method with transaction type = never

2003-11-14 Thread Jonathan . O'Connor
Danny, Thanks "NotSupported" fixed it alright. But I still think that Web Services should not wrap everything in a transaction. I presume that new transactions are created whenever it calls beans marked as "required". At least my tests all run smoothly. Ciao, Jonathan O'Connor XCOM Dublin "Ya

[JBoss-user] AXIS web service throws NullPointerException when REDEPLOYING on JBOSS 3.2.2

2003-11-14 Thread Pedro Salazar
Greetings, I'm working on a web service built-in with AXIS jars (I mean, it's not using the jboss-net files). However, I upgraded from JBOSS 3.2.1 (here it worked just fine) to 3.2.2, but when I redeploy my web service application, any invocation result in the trace error on server below. But th

RE: [JBoss-user] JBoss-net does not like calling EJB method with transaction type = never

2003-11-14 Thread Yates, Danny
I would guess that what is happening is: 1) Axis starts a transaction to call your Web Services class 2) Your Web Services class (now in a transaction) tries to call the bean 3) Because the bean is marked "never", the call fails Perhaps you should consider "NotSupported" which will suspend the Ax

[JBoss-user] OT: Unsubscribing, forgot password

2003-11-14 Thread John . Curley2
My apologies, I forgot to save my "welcome to the jboss mailing list" email: I need to unsubscribe from the mailing list but was asked for a password on the Sourceforge site. I don't remember giving a password when I signed up. In any event, I am not going to remember this password. Does anyo

[JBoss-user] Optimize storing lots of messages from MDB through CMP

2003-11-14 Thread Markus Härnvi
Hi! I have a MDB reading a constant stream of messages from a Queue. The MDB is storing the messages through two CMP entity bean with a CMR. The data written to the database will be read but never updated. I would like to optimize the process from MDB to database. When I look at the use of da

[JBoss-user] JBoss-net does not like calling EJB method with transaction type = never

2003-11-14 Thread Jonathan . O'Connor
I'm working on JBoss 3.0.8. I am trying to call an EJB Session Bean method via SOAP/Axis. The bean method is marked @ejb.transaction-type = "never" because it calls 3 other session beans that handle their own transactions. According to the stack trace, the Axis RPCProvider.invokeMethod is event

Re: [JBoss-user] Re: Problem with SQL query for MySQL

2003-11-14 Thread Rupp, Heiko
Title: RE: [JBoss-user] Re: Problem with SQL query for MySQL Paul,   probably because there is a function user() that clashes in this case while there is no function foo(), so mysql does the right thing.     Heiko -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von P

Re: [JBoss-user] getPrimaryKey() vs.getSymbol() where "symbol" is PrimaryKey

2003-11-14 Thread Alexey Loubyansky
The primary key value is cached in the proxy. When getPrimaryKey() is called the cached value is returned. Thus, avoiding the creation of the invocation object and passing to the container and all the interceptors. This means, no locking, no synchronization and other expensive operations. Impre

[JBoss-user] getPrimaryKey() vs.getSymbol() where "symbol" is PrimaryKey

2003-11-14 Thread Milen Dyankov
Hi all, In my "CompanyBean" (CMP) I have field of type String named "symbol" which is primary key. I also have finder "findAll" with EJB-QL query "SELECT OBJECT(c) FROM Company c". In "CompanyManagerBean" (SLSB) there is method "findAll" which contains code : [ -=- snip -=- ] log.debug

Re: [JBoss-user] Caching issue?

2003-11-14 Thread Adrian Brock
On Thu, 2003-11-13 at 17:16, Phil Shrimpton wrote: > Hi, > > I have an issue that I want to understand before I try and fix it... > > JBoss 3.2.2, Commit Option A... > > I have a SLSB method something like... > > public void doSomething(){ > Collection c = OrdersEJB.getItems(); > >

Re: [JBoss-user] Weblogic JBoss Migration: EJB home methods are not allowed to acc ess CMP or CMR fields?

2003-11-14 Thread Adrian Brock
On Fri, 2003-11-14 at 03:25, Sasidharan, Manoj wrote: > Hello All, > > When running our migrated J2EE application from Weblogic, we are getting the > following exception. > > Any guess on what could be wrong. > That looks bizarre, can you post the jboss version and other relevent info for getAc

Re: [JBoss-user] Weblogic to JBoss Migration - Differences in XA and Non-XA DataSo urce handling

2003-11-14 Thread Adrian Brock
On Fri, 2003-11-14 at 03:21, Sasidharan, Manoj wrote: > Hello All, > > JBoss 3.2.2 > Oracle 9.2.0.4 > Datasources are created using oracle-ds.xml (Non-XA) and oracle-xa-ds.xml > (XA) > > I have a Stateless session bean that gets an XA connection and does some > database updates. It also tries to

Re: [JBoss-user] Strange MySQL JMS persistent behavior

2003-11-14 Thread Michael Klem
Thank you so much Adrian! I only spent about 6 hours performing various tests, configurations and interrogating my code before emailing the list. Just wanted to make sure I didn't miss anything so obvious. Seems like I did though. I think I got these sql properties from an old post on the JBoss