Weblogic 7.0 Frequently Crashing Console

2002-08-21 Thread SUBSCRIBE EJB-INTEREST Anonymous
Everytime I log in and the second browser windows appears (I have not idea why a second window as I am new to weblogic), the console crashes. 1. What is this secoond separate/new window that appears in addition to the window from whcih I have logged in is for? 2. Has anyone experienced this

StaleConnectionException and EJB

2005-08-31 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I have a question in handling StaleConnectionException in DAO called from EJB. I have a stateless sessionbean.The bean calls a Helper class and the Helper class calls the DAO class. In the DAO class, I have a while loop in each DAO methods.Within the while loop,I get the datasource and from

Load file

2005-09-06 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I want to read a file in EJB in bean method. I have the file (error.prop) in the ejbmodule/META-INF folder. When I right click on the ejb and click Run on Server to test it, I get an Exception.Basically,the call fails in File.exists() method. Below is the code.Can anyone please tell me the

Re: Load file

2005-09-08 Thread SUBSCRIBE EJB-INTEREST anonymous
HiZahir, Thanks! It did not work. Do you have the working code ?is it same as mine? Please let me know. Thanks in advance, Ezhil === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message

Versioning EJB

2005-09-14 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi , I have an EJB running in a JVM which is called from 2 apps. running in diffrent JVMs. My questions are as follows.. 1. Is there way to version the EJBs that I provide to the client apps? 2. If I include a new method in the EJB (which would be used by only app. B) and does not modify the

ExceptionHandling

2005-09-20 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, How can i handle the StaleConnectionException in DAOs called directly from EJB(stateless bean)? Thanks in advance, === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff

Singleton in EJB

2005-10-04 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I have a Singleton class which has many getter methods. My question is in my Stateless Session bean can I have like below Objects from singleton as member variable). public class UserBean implements javax.ejb.SessionBean{ private MysqlDataAccessObject obj = Singleton.getInstance

File load in EJBs

2005-10-06 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi , I have many session beans.I have a properties file which has the app. specific information.I am using the values from the properties file in all my beans. My question is Is there any way to load the properties file only once, that is, when the first ejb's method gets invoked? I can put the

File load in EJB

2005-10-06 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi , I have many session beans.I have a properties file which has the app. specific information.I am using the values from the properties file in all my beans. My question is Is there any way to load the properties file only once, that is, when the first ejb's method gets invoked? I can put the

variables

2005-10-06 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, Is it safe to have member variables in stateless bean? I want to use the member variable in bean private methods after assigning its value in bean's method? === To unsubscribe, send email to [EMAIL PROTECTED] and include

trans. attribute

2005-10-11 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, What is the default transaction attribute for Container Managed Transaction in EJB 1.1? Thanks in advance, === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff EJB-INTEREST.

BMT

2005-10-23 Thread SUBSCRIBE EJB-INTEREST anonymous
In Bean Managed Transaction, is it necessary to catch the below exceptions when commit() is called . javax.transaction.SystemException javax.transaction.NotSupportedException javax.transaction.HeuristicException javax.transaction.HeuristicRollbackException javax.transaction.RollbackException

Exception

2005-11-02 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I have a question. I have a stateless session bean.Is it good to catch Exception in my bean method and throw my own exception from the catch block. Will the container be able to roolback the transaction automatically in this case?Or is there any drawback in handling exception like this. Below

Re: Exception

2005-11-06 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, Thanks for the detailed answer === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff EJB-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of

setRollbackOnly()

2005-11-06 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I have a question. I have a stateless session bean. I want to rollback the transaction when an application exception occured. There are two options to do.Please let me know which one would be better. Option 1: try{ //perform database operation} catch(DataAccessException ex){

Transaction Attribute

2005-11-07 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I use CMT. 1. In my EJB method, I simply delete a record from the Oracle database using sql query.Which transaction attribute would be appropriate in this case? I guess 'NotSupported' is appropriate as I don't have multiple sql queries to delete. 2. Also, in the same page, when I call a

NotSupported

2005-12-20 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I have a question in transaction attribute. In my stateless sessionbean methods, I just use select sql queries to fetch the data from the database. My question is Can I set the transaction attribute to NotSupported for the above bean methods? Thanks in advance,

multiple databases

2006-01-25 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I have a question. In my StatelessSessionBean.,I have a bean method set to transaction attribute ,Required. Another method set to transaction attribute,RequiredNew as below. I am not using XA datasource .And, I don’t need a two phase commit. I get the error message at runtime in methodB- “An

EJB questions

2006-03-29 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I am new to EJB.I use stateless sessionbean. I have the below questions.Could anyone give me your suggestions / comments? 1.My ejb method calls a Data Access Object class's method. In my Data Access Object's class method can I catch Exception? Is this ok? 2. My ejb method performs single

Thread messages

2006-03-31 Thread SUBSCRIBE EJB-INTEREST anonymous
Hi, I use ejb. I see the below lines when I debug my code. Can anyone say me what these lines represent? Thanks in advance, Thread [RT=0:P=1234566:O=0:WSTCPTransportConnection[addr=--,port=--,local=-- ]] Thread [P=1234566:O=0:WSTCPTransportConnection[addr=--,port=--,local=--]] Thread