Re: [JBoss-user] log4j system.out category

2001-09-22 Thread Guy Rouillier
Or if you are lazy like me and rely on copy and paste heavily, you can use: private final Category log = Category.getInstance(getClass().getName()); - Original Message - From: "David Jencks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 22, 2001 3:10 PM Subjec

Re: [JBoss-user] JB241-TC323: DatabaseServerLoginModule works, but plain EJB references don't

2001-09-22 Thread David M. Karr
> "David" == David M Karr <[EMAIL PROTECTED]> writes: David> I have a simple EJB application. It works fine from an application client, David> including JAAS through DatabaseServerLoginModule, using my "UserBean" table. David> I set up a web application to go with it. I was abl

Re: [JBoss-user] Transaction Exception !!! / ejbStore

2001-09-22 Thread David Jencks
Some oracle drivers are allegedly xa compatible however you have to use their own Xid implementation (there's an ugly hack in the tm to do this) and specify to use their implementation in jboss.jcml somewhere.. I think there's a comment about this. I have never tried it, I recall a few people get

RE: [JBoss-user] Transaction Exception !!! / ejbStore

2001-09-22 Thread Ferguson, Doug
*Note* I saw a howto in the manual and the only differnece between it and what I currently have is add the following line to jboss.properties jboss.xa.xidclass=oracle.jdbc.xa.OracleXid So is this what you are talking about? I cam confused because, I noticed that the it still uses

RE: [JBoss-user] Transaction Exception !!! / ejbStore

2001-09-22 Thread Ferguson, Doug
What is entailed in changing to an XA DataSource... Are the oracle drivers XA compatible? d. -Original Message- From: Ole Husgaard [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 22, 2001 5:09 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Transaction Exception !!! / ejbStore

Re: [JBoss-user] Transaction Exception !!! / ejbStore

2001-09-22 Thread Ole Husgaard
Hi, "Ferguson, Doug" wrote: > > I've done some more research and it appears that there is alittle more going > on. > > We have two datasources. 1 is for failover. > The 2nd database syncs with the other every 10 minutes. > For our user session we have to write to both of the databases. > This w

RE: [JBoss-user] Transaction Exception !!! / ejbStore

2001-09-22 Thread Ferguson, Doug
I've done some more research and it appears that there is alittle more going on. We have two datasources. 1 is for failover. The 2nd database syncs with the other every 10 minutes. For our user session we have to write to both of the databases. This wier exception was occuring when both databases

RE: [JBoss-user] Transaction Exception !!! / ejbStore

2001-09-22 Thread Ferguson, Doug
I figured out some more info.. Inside my ejbStore I check to make sure that the executeQuery method only returns 1 indicating that it stored 1 row. Apparently the table wasn't set up for a unique constraint so it actually updated 2 rows. Now, since my if(executeUpdate != 1) then I throw an EJBExc

Re: [JBoss-user] log4j system.out category

2001-09-22 Thread David Jencks
include import org.apache.log4j.Category; private Category log = Category.getInstance(MyClass.class); //Or use a string, maybe for jsps, haven't tried to log... log.info("my message"); log.warn("HI"); catch (Exception e) { log.error("now you've really done it! You broke it with exception",

RE: [JBoss-user] log4j system.out category

2001-09-22 Thread Ferguson, Doug
Some are in my servlet and some are in beans.. How do I convert them to log4j. I don't know much about log4j. I have done a little reading but I wouldn't know how to tie into the jBoss logging. d. -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED]] Sent: Friday, September

[JBoss-user] Accessing JavaMail session

2001-09-22 Thread Herve Tchepannou
Title: Accessing JavaMail session In JBoss documentation, its recommended to defined in the ejb-jar.xml a resource named mail/Mail of type javax.mail.Session. and in the code, request it via the JNDI name java:Mail, which works fined. But when I try to request the JavaMail session with the JN

Re: [JBoss-user] UserTransaction from client side

2001-09-22 Thread Ole Husgaard
Hi, Your UT lookup seems correct. Maybe you have hit a bug in the cache like the one reported at: https://sourceforge.net/tracker/index.php?func=detail&aid=463548&group_id=22866&atid=376685 If this is the case, and your loadOrCreateMyBean() method tries to create the bean before looking it up, y