signoff EJB-INTEREST -----Original Message----- From: Automatic digest processor [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 2:00 AM To: Recipients of EJB-INTEREST digests Subject: EJB-INTEREST Digest - 7 Feb 2001 to 8 Feb 2001 (#2001-40) There are 45 messages totalling 5960 lines in this issue. Topics of the day: 1. commerce One (3) 2. Help me !! (2) 3. Threading delegate in EJB (3) 4. How does JDBC from application clients work? 5. Calling session bean method from servlet (2) 6. Error while invoking rollback method (6) 7. Servlet Runner to ejb server how ? (3) 8. some laod test problem 9. EJB for inquiry............. 10. META-INF 11. EJB & Transactions (2) 12. NoClassDefFoundError (3) 13. EJB-INTEREST Digest - 6 Feb 2001 to 7 Feb 2001 (#2001-39) 14. Offtopic : billion doller idea free 15. Session beans as Facade to entity beans 16. Does anyone know the status of EJB 2.0 spec? 17. Create methods (and constructors generally) 18. ??SessionBean to Manage Relation between Entity Bea n (2) 19. Free Online Seminar on EJB: BMP v. CMP 20. Entity beans, clistering and scalability (4) 21. Implementation of MVC (model-view-controller) in EJ B 22. Orion and SQL Server 7.0 23. Bug in the deploytool or a feature? 24. Reading LDAP data with EJBs 25. Dependent Objects support =========================================================================== 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 the message "help". ---------------------------------------------------------------------- Date: Thu, 8 Feb 2001 13:29:04 +0530 From: Arul <[EMAIL PROTECTED]> Subject: commerce One Hi Guys Any idea about Sun's Commerce ONE Can some body throw some light on it Arul ------------------------------ Date: Thu, 8 Feb 2001 13:24:40 -0600 From: Arunkumar Chellappan <[EMAIL PROTECTED]> Subject: Re: Help me !! Check out the site http://www.startkabel.nl/k/xml/ It has got numerous links that u can use to do anything with xml ArunC manishi tuli wrote: > can u give any idea about xml book online > i have to use xml with java in my project > thanks in advace > Manishi > > >From: "Rahman, Zahid" <[EMAIL PROTECTED]> > >Reply-To: A mailing list for Enterprise JavaBeans development > ><[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: Re: Help me !! > >Date: Wed, 7 Feb 2001 11:02:12 -0000 > > > >The link you are looking for > > > >http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/ > > > > > -----Original Message----- > > > From: Francesco Marchioni [SMTP:[EMAIL PROTECTED]] > > > Sent: Wednesday, February 07, 2001 10:30 AM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Help me !! > > > > > > Hi Thakur, > > > I took a look around Sun site's EJB section but I couldn't find the book > > > you > > > mentioned > > > (I just found drafts, specifications etc.). Can you provide the exact > >link > > > to it? > > > thanks a lot > > > Francesco > > > > > > ----- Original Message ----- > > > From: Thakur Sanjay Kumar ,DYM(EM1). <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Wednesday, February 07, 2001 10:23 AM > > > Subject: Re: Help me !! > > > > > > > > > > Sun site has an excellent online book by Ms Monica Pawlan > >(java.sun.com) > > > on > > > > EJB. > > > > thanks > > > > > > > > > ---------- > > > > > From: Srinivas K. R.[SMTP:[EMAIL PROTECTED]] > > > > > Reply To: A mailing list for Enterprise JavaBeans development > > > > > Sent: 08 February 2001 00:46 > > > > > To: [EMAIL PROTECTED] > > > > > Subject: Help me !! > > > > > > > > > > Hi > > > > > I am working on Servlets and interested in learning EJB. > > > > > Read some book but sill do not have a good hold on EJB. > > > > > I want to know is there any site which give me some working code or > > > > > Examples > > > > > of EJB. > > > > > I am looking for an example which covers every thing in EJB like > > > > > The complete cycle , i.e > > > > > A client program talking to Session bean and the session bean > >talking > > > to > > > > > Entity bean and then the value stored in to database. > > > > > > > > > > A client(JSP) --> Some Business logic(Session Bean)----->( Insert > > > Data) > > > > > Entity Bean---> Database > > > > > > > > > > I know i am asking for too much..))))) > > > > > > > > > > Regards > > > > > Srini > > > > > > > > > > > > > > >========================================================================== > > > > > = > > > > > 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 the message "help". > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------- > > > > CONFIDENTIALITY/PROPRIETARY NOTE. > > > > The document accompanying this electronic transmission > > > > contains information from Maruti Udyog Limited, which is > > > > confidential, proprietary or copyrighted and is intended > > > > solely for the use of the individual or entity named on > > > > this transmission.If you are not the intended recipient, > > > > you are notified that disclosing, copying, distributing or > > > > taking any action in reliance on the contents of this > > > > information is strictly prohibited.This prohibition includes, > > > > without limitation, displaying this transmission or any portion > > > > thereof, on any public bulletin board.If you are not the > > > > intended recipient of this document, please return this > > > > document to Maruti Udyog Limited immediately. > > > > ------------------------------------------------------------------- > > > > "Please visit us at http://www.marutiudyog.com". > > > > > > > > > > > > >========================================================================== > > > = > > > > 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 the message "help". > > > > > > > > > > > >========================================================================== > > > = > > > 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 the message "help". > > > >=========================================================================== > >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 the message "help". > > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > =========================================================================== > 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 09:34:34 +0100 From: [EMAIL PROTECTED] Subject: Re: Threading delegate in EJB 1 - In the EJB specification : you cannot have threads in EJB !!!! 2 - Why ? Hum, for some purpose, it is stupid, because in some case we want to have several transactional context and parellel processing in EJB !!!! But it is not a good practice. Some (If not all) EJB servers manage their own threads and transactional context. If you create some thread you will face some problems because your thread need some synchronisation with EJB server threads !! 3 - What you can do ? I think that EJB are good for e-commerce, with high transactional context between client and server, but If you want to manage another transactional context and access to DB, create a simple JDBC connection, or create another connection pool ! Or reuse your connection pool to get a new connection and work with that. Take a look at castor.exolab.com which is a JDO (Not compatible with SUN JSR, but sometimes better). Hope it help Christophe "Sampathkumaran, Ramkumar (CTS)" To: [EMAIL PROTECTED] <[EMAIL PROTECTED] cc: IZANT.COM> Subject: Threading delegate in EJB Sent by: A mailing list for Enterprise JavaBeans development <EJB-INTEREST@java .sun.com> 02/08/01 08:18 AM Please respond to A mailing list for Enterprise JavaBeans development Hi, I would like to know whether threading can be done by a normal class in a EJB server which will be called by a bean. For eg: I have to retrieve around 2000 rows each from 10 different tables and aggregate them and send it to the client. So instead of sequentially accessing each table, can i write a class A which implements Runnable and spawns ten threads for acessing each table and aggregating the values(to be passed to the bean which will pass it to the client)? Does this violate the EJB specs or is an acceptable workaround? Regards, Ramkumar This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 10:23:58 +0100 From: [EMAIL PROTECTED] Subject: Re: How does JDBC from application clients work? I just to want to add a few things that I think are quite important. First of all, the J2EE specifications allow (and require availability of) JDBC from applications but not from applets. Then, and this is probably the biggest issue, transaction management is not available from both applets and applications. This really limits any advanced two-tiers architecture. Loïc > ---------- > From: Jeff Schnitzer[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list for Enterprise JavaBeans development > Sent: Thursday, February 08, 2001 00:43 > To: [EMAIL PROTECTED] > Subject: Re: How does JDBC from application clients work? > > I didn't really intend to start a discussion of whether or not JDBC > should be used from clients; I'm fully aware that it violates the EJB > paradigm of separating presentation from business logic. But the J2EE > spec allows for it, so I'm rather curious about how it is implemented. > > This all started as a thread on the Orion-Interest list started by a guy > who found that he was able to dramatically increase the performance of > his client applicaiton by accessing records through JDBC. I don't know > what he was doing or why he needed the logic in the client, but I'm > willing to set that aside. He found that he didn't need to package the > JDBC driver with the client when using WebLogic, but hasn't figured out > how to make Orion behave in like fashion. > > This has provoked some debate about how this all works that nobody has > been able to answer. Richard, your comments about WebLogic have shed > quite a bit of light on the subject. Thank you! > > Now I'm even more curious: What do other application server vendors do? > It seems like implementing this JDBC proxy would be a lot of effort for > something that would so rarely be used. > > Jeff Schnitzer > [EMAIL PROTECTED] > No, *I* haven't committed such a two-tiered transgression, and don't > plan to... but I've just gotta know how *everything* works :-) ------------------------------ Date: Thu, 8 Feb 2001 14:53:12 +0530 From: Sumit Mishra <[EMAIL PROTECTED]> Subject: Calling session bean method from servlet Hi, I am facing a rather strange problem. I have a payments class(serializable) with 4 attributes(private with getter and setter methods), 1 String,2 ints and 1 float. In PayServlet, i am instantiating payments class and and adding the payments object to allPayments vector. Then i am making an enumeration out of this vector. Payment session bean (stateless) has a business method payBatch which accpets enumeartion as the only argument and return boolean. When i call payBatch method from PayServlet, at run time, it gives me a ClassCastException. I have tried it with vector but no use. I also tried with passing an array of Payments object but no help. If i pass individual Payments object, it works. But my requirement is such that i have to pass collection of payment objects and not individual objects. As far as i know EJB specs, there is nothing like this mentioned there. Can anybody give me a clue or possible solutions? Thanx in anticipation. Regards, Sumit Mishra mailto:[EMAIL PROTECTED] http://www.cash-tech.com/ ------------------------------ Date: Thu, 8 Feb 2001 04:21:44 -0500 From: RAJESH Subramanian <[EMAIL PROTECTED]> Subject: Re: Error while invoking rollback method hi i think u have forgot to begin the transaction tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); after this line tx.begin(); a.method1();//which do some database operation b.method2();//which do some database operation tx.commit(); Tx Rajesh -----Original Message----- From: Chidambara, Vinoth (CTS) [SMTP:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 12:34 PM To: [EMAIL PROTECTED] Subject: Error while invoking rollback method Hai, Am using weblogic 5.1.Database sybase sql server. Trying for BMT(Bean Managed Transaction) stateless session bean I got a UserTransaction like this(Am i right) try{ tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); a.method1();//which do some database operation b.method2();//which do some database operation tx.commit(); } catch(Exception e){ try{ tx.rollback(); } catch(Exception ex){ System.out.println("Exception in rollback"+ex); } System.out.println("Exception in lookup"+e); } a.method1()---> succedds in database operation b.method2()---->throws Exception inorder to rollback Even though I throw exception in b.method2(),a.method1() is not rollbacking Am getting exception like this: Exception in rollbackjava.lang.IllegalStateException: There is no transaction associated with this thread Exception in lookup javax.transaction. TransactionRolledbackException: Transaction: '963124471576_1' rolled back due to EJB exception: javax.ejb.EJBException at com.bank.bciticorp.BCitiBankBean.deposit(Compiled Code) at com.bank.bciticorp.BCitiBankBeanEOImpl.deposit(BCitiBankBeanEOImpl.ja va:56) at com.bank.bglobal.BGlobalBean.transferSTtoCT(BGlobalBean.java:55) at com.bank.bglobal.BGlobalBeanEOImpl.transferSTtoCT(BGlobalBeanEOImpl.j ava:56) at com.bank.bglobal.BGlobalBeanEOImpl_WLSkel.invoke(BGlobalBeanEOImpl_WL Anyone help in this regard. Thanks in advance. Regards, Vinoth.C This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 10:35:39 +0100 From: [EMAIL PROTECTED] Subject: Re: Error while invoking rollback method Vinoth, Where is the transaction begining (tx.begin) ? Your lookup looks quite strange too. Anyway, using the EJBContext getUserTransaction method is the recommended way of working for EJBs. Loïc > ---------- > From: Chidambara, Vinoth (CTS)[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list for Enterprise JavaBeans development > Sent: Thursday, February 08, 2001 08:04 > To: [EMAIL PROTECTED] > Subject: Error while invoking rollback method > > Hai, > > Am using weblogic 5.1.Database sybase sql server. > Trying for BMT(Bean Managed Transaction) > stateless session bean > > I got a UserTransaction like this(Am i right) > try{ > tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); > a.method1();//which do some database operation > b.method2();//which do some database operation > tx.commit(); > } > catch(Exception e){ > try{ > tx.rollback(); > } > catch(Exception ex){ > System.out.println("Exception in rollback"+ex); > } > System.out.println("Exception in lookup"+e); > } > > a.method1()---> succedds in database operation > b.method2()---->throws Exception inorder to rollback > > Even though I throw exception in b.method2(),a.method1() > is not rollbacking > > Am getting exception like this: > > Exception in rollbackjava.lang.IllegalStateException: There is no > transaction associated with this thread > Exception in lookup javax.transaction. TransactionRolledbackException: > Transaction: '963124471576_1' rolled back due to EJB exception: > javax.ejb.EJBException > at com.bank.bciticorp.BCitiBankBean.deposit(Compiled Code) > at > com.bank.bciticorp.BCitiBankBeanEOImpl.deposit(BCitiBankBeanEOImpl.ja > va:56) > at > com.bank.bglobal.BGlobalBean.transferSTtoCT(BGlobalBean.java:55) > at > com.bank.bglobal.BGlobalBeanEOImpl.transferSTtoCT(BGlobalBeanEOImpl.j > ava:56) > at > com.bank.bglobal.BGlobalBeanEOImpl_WLSkel.invoke(BGlobalBeanEOImpl_WL > > Anyone help in this regard. > Thanks in advance. > Regards, > Vinoth.C > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. > If you are not the intended recipient, please contact the sender by reply > e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, forwarding, > printing or copying of this email or any action taken in reliance on this > e-mail is strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > > ========================================================================== > = > 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 the message "help". > ------------------------------ Date: Thu, 8 Feb 2001 02:15:21 -0800 From: Subramaniam S <[EMAIL PROTECTED]> Subject: Re: Error while invoking rollback method Also it is not clear from the original posting, what transaction attributes are set for a.method1() and b.method2(). Unless a.method1() and b.method2() inherit (propagate) the same transaction started by the calling method, they cannot rollback. From the problem description given here, it appears that a.method1() is probably starting a new transaction. -- Subra Subramaniam S - Viveka Software Technologies Pvt Ltd., Bangalore http://www.thinktankpartners.com/ +91-80-2996585 / 5098251 --- RAJESH Subramanian <[EMAIL PROTECTED]> wrote: > hi > i think u have forgot to begin the transaction > > tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); > after this line > tx.begin(); > a.method1();//which do some database operation > b.method2();//which do some database operation > tx.commit(); > Tx > Rajesh > > > -----Original Message----- > From: Chidambara, Vinoth (CTS) > [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 08, 2001 12:34 PM > To: [EMAIL PROTECTED] > Subject: Error while invoking rollback method > > Hai, > > Am using weblogic 5.1.Database sybase sql server. > Trying for BMT(Bean Managed Transaction) > stateless session bean > > I got a UserTransaction like this(Am i right) > try{ > > tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); > a.method1();//which do some database operation > b.method2();//which do some database operation > tx.commit(); > } > catch(Exception e){ > try{ > tx.rollback(); > } > catch(Exception ex){ > System.out.println("Exception in rollback"+ex); > } > System.out.println("Exception in lookup"+e); > } > > a.method1()---> succedds in database operation > b.method2()---->throws Exception inorder to rollback > > Even though I throw exception in b.method2(),a.method1() > is not rollbacking > > Am getting exception like this: > > Exception in rollbackjava.lang.IllegalStateException: There is > no > transaction associated with this thread > Exception in lookup javax.transaction. > TransactionRolledbackException: > Transaction: '963124471576_1' rolled back due to EJB exception: > javax.ejb.EJBException > at com.bank.bciticorp.BCitiBankBean.deposit(Compiled > Code) > at > > com.bank.bciticorp.BCitiBankBeanEOImpl.deposit(BCitiBankBeanEOImpl.ja > va:56) > at > com.bank.bglobal.BGlobalBean.transferSTtoCT(BGlobalBean.java:55) > at > > com.bank.bglobal.BGlobalBeanEOImpl.transferSTtoCT(BGlobalBeanEOImpl.j > ava:56) > at > > com.bank.bglobal.BGlobalBeanEOImpl_WLSkel.invoke(BGlobalBeanEOImpl_WL > > Anyone help in this regard. > Thanks in advance. > Regards, > Vinoth.C > > This e-mail and any files transmitted with it are for the sole > use > of the intended recipient(s) and may contain confidential and privileged > information. > If you are not the intended recipient, please contact the sender > by > reply e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, > forwarding, > printing or copying of this email or any action taken in reliance on > this > e-mail is strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com ===== -- Subra http://www.geocities.com/subramaniams/ http://www.thinktankpartners.com/ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ------------------------------ Date: Thu, 8 Feb 2001 05:41:22 -0500 From: SATHISH Sreedharan <[EMAIL PROTECTED]> Subject: Re: Error while invoking rollback method hello loic, The initialcontext.getUserTransaction() method which is used to get the UserTransaction will no more work with Weblogic 5.1 and above coz this is specific to EJB 1.0 & Weblogic 5.1 will support only EJB1.1 spec.In the EJB 1.1 u have to use the jndi lookUp only and not the getUserTransaction() method. > -----Original Message----- > From: JCISRP(Chennai) > Sent: Thursday, February 08, 2001 3:42 PM > To: SARAVANAKUMAR Velmurugan; SATHISH Sreedharan > Subject: FW: Error while invoking rollback method > > > > ---------- > From: > [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 08, 2001 3:05:39 PM > To: [EMAIL PROTECTED] > Subject: Re: Error while invoking rollback method > Auto forwarded by a Rule > > Vinoth, > > Where is the transaction begining (tx.begin) ? Your lookup looks > quite strange too. Anyway, using the EJBContext getUserTransaction > method is the recommended way of working for EJBs. > > Loïc > > > ---------- > > From: Chidambara, Vinoth (CTS)[SMTP:[EMAIL PROTECTED]] > > Reply To: A mailing list for Enterprise JavaBeans development > > Sent: Thursday, February 08, 2001 08:04 > > To: [EMAIL PROTECTED] > > Subject: Error while invoking rollback method > > > > Hai, > > > > Am using weblogic 5.1.Database sybase sql server. > > Trying for BMT(Bean Managed Transaction) > > stateless session bean > > > > I got a UserTransaction like this(Am i right) > > try{ > > tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); > > a.method1();//which do some database operation > > b.method2();//which do some database operation > > tx.commit(); > > } > > catch(Exception e){ > > try{ > > tx.rollback(); > > } > > catch(Exception ex){ > > System.out.println("Exception in rollback"+ex); > > } > > System.out.println("Exception in lookup"+e); > > } > > > > a.method1()---> succedds in database operation > > b.method2()---->throws Exception inorder to rollback > > > > Even though I throw exception in b.method2(),a.method1() > > is not rollbacking > > > > Am getting exception like this: > > > > Exception in rollbackjava.lang.IllegalStateException: There is no > > transaction associated with this thread > > Exception in lookup javax.transaction. TransactionRolledbackException: > > Transaction: '963124471576_1' rolled back due to EJB exception: > > javax.ejb.EJBException > > at com.bank.bciticorp.BCitiBankBean.deposit(Compiled Code) > > at > > com.bank.bciticorp.BCitiBankBeanEOImpl.deposit(BCitiBankBeanEOImpl.ja > > va:56) > > at > > com.bank.bglobal.BGlobalBean.transferSTtoCT(BGlobalBean.java:55) > > at > > com.bank.bglobal.BGlobalBeanEOImpl.transferSTtoCT(BGlobalBeanEOImpl.j > > ava:56) > > at > > com.bank.bglobal.BGlobalBeanEOImpl_WLSkel.invoke(BGlobalBeanEOImpl_WL > > > > Anyone help in this regard. > > Thanks in advance. > > Regards, > > Vinoth.C > > > > This e-mail and any files transmitted with it are for the sole use of > the > > intended recipient(s) and may contain confidential and privileged > > information. > > If you are not the intended recipient, please contact the sender by > reply > > e-mail and destroy all copies of the original message. > > Any unauthorised review, use, disclosure, dissemination, forwarding, > > printing or copying of this email or any action taken in reliance on > this > > e-mail is strictly > > prohibited and may be unlawful. > > > > Visit us at http://www.cognizant.com > > > > > ========================================================================== > > = > > 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 the message "help". > > > > ========================================================================== > = > 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 11:26:37 -0000 From: Anthony Onabanjo <[EMAIL PROTECTED]> Subject: Re: commerce One What is Sun's Commerce ONE and what does it have to do w/ EJBs? Or do you mean Sun ONE? Anthony -----Original Message----- From: Arul [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 7:59 AM To: [EMAIL PROTECTED] Subject: commerce One Hi Guys Any idea about Sun's Commerce ONE Can some body throw some light on it Arul =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 12:04:56 -0000 From: "Rahman, Zahid" <[EMAIL PROTECTED]> Subject: Servlet Runner to ejb server how ? I am trying out some examples from http://www.execpc.com/~gopalan/java/ejb.html I have created the ebj classes and created the deployment descripter. The deploymnet descriptor the way I understand it tells the EJB server of the EJB beans details i.e. Bean name , properties the database/odbc configuration etc.. Before running the servlet runner the EJB server obviously has to be running with the EJB beans loaded up from the deployment descriptors. Can You please tell me what I should be looking for that says this is where the servlet runner is communicating with the EJB server. Regards, Zahid ©2001, Logsys Solutions Ltd. This message and any attachments is intended for the stated recipient only and in no way constitutes a binding contractual agreement, order, or commitment by Logsys Solutions Limited WHO ARE NOT TO BE BOUND BY ANYTHING CONTAINED HEREIN. If you have received this message in error, please return it to the sender, indicating such and then delete and destroy all copies in your possession. ------------------------------ Date: Thu, 8 Feb 2001 17:37:25 +0530 From: P Sreenivasa Rao <[EMAIL PROTECTED]> Subject: some laod test problem Hi all, we have developed an application using EJB. while load testing using threads ,it's working finely if the no of requests are low and if increses trhe no fo requests ,it's thrwoing some errors.can anyone help me in this regard,I'm using Weblogic5.1 and Oracle database.Is there any setting need to be done while deploying for optimizations. Thanks in advance. Office Address: Residence: Pitchuka Sreenivasa Rao Pitchuka Sreenivasa Rao, VISIC,CMCLtd.Hyderabad-19 H-No:6-94/30,Santi nagar, Phone no Chanda Nagar,Hyd-50 (O):(040)3000401 extn2166,2169 ------------------------------ Date: Thu, 8 Feb 2001 13:01:31 +0100 From: [EMAIL PROTECTED] Subject: Re: Error while invoking rollback method Sreedharan, What you say is not right. Only the getEnvironment method of the EJBContext should not be used anymore. I do not know for weblogic but what I mentionned is right for EJB1.1. Note that all examples on the transaction chapter of the specifications for 1.1 get the transaction through the EJBContext and that the J2EE specifications, which includes EJB 1.1 says, that this is the best way to obtain the transaction. However, I just wanted to correct you, and I do not think that this is that important. Regards, Loïc > ---------- > From: SATHISH Sreedharan[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list for Enterprise JavaBeans development > Sent: Thursday, February 08, 2001 11:41 > To: [EMAIL PROTECTED] > Subject: Re: Error while invoking rollback method > > hello loic, > The initialcontext.getUserTransaction() method which is used to > get > the UserTransaction will no more work with Weblogic 5.1 and above coz this > is specific to EJB 1.0 & Weblogic 5.1 will support only EJB1.1 spec.In the > EJB 1.1 u have to use the jndi lookUp only and not the > getUserTransaction() > method. > > > -----Original Message----- > > From: JCISRP(Chennai) > > Sent: Thursday, February 08, 2001 3:42 PM > > To: SARAVANAKUMAR Velmurugan; SATHISH Sreedharan > > Subject: FW: Error while invoking rollback method > > > > > > > > ---------- > > From: > > [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, February 08, 2001 3:05:39 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Error while invoking rollback method > > Auto forwarded by a Rule > > > > Vinoth, > > > > Where is the transaction begining (tx.begin) ? Your lookup looks > > quite strange too. Anyway, using the EJBContext getUserTransaction > > method is the recommended way of working for EJBs. > > > > Loïc > > > > > ---------- > > > From: Chidambara, Vinoth (CTS)[SMTP:[EMAIL PROTECTED]] > > > Reply To: A mailing list for Enterprise JavaBeans development > > > Sent: Thursday, February 08, 2001 08:04 > > > To: [EMAIL PROTECTED] > > > Subject: Error while invoking rollback method > > > > > > Hai, > > > > > > Am using weblogic 5.1.Database sybase sql server. > > > Trying for BMT(Bean Managed Transaction) > > > stateless session bean > > > > > > I got a UserTransaction like this(Am i right) > > > try{ > > > tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); > > > a.method1();//which do some database operation > > > b.method2();//which do some database operation > > > tx.commit(); > > > } > > > catch(Exception e){ > > > try{ > > > tx.rollback(); > > > } > > > catch(Exception ex){ > > > System.out.println("Exception in rollback"+ex); > > > } > > > System.out.println("Exception in lookup"+e); > > > } > > > > > > a.method1()---> succedds in database operation > > > b.method2()---->throws Exception inorder to rollback > > > > > > Even though I throw exception in b.method2(),a.method1() > > > is not rollbacking > > > > > > Am getting exception like this: > > > > > > Exception in rollbackjava.lang.IllegalStateException: There is no > > > transaction associated with this thread > > > Exception in lookup javax.transaction. TransactionRolledbackException: > > > Transaction: '963124471576_1' rolled back due to EJB exception: > > > javax.ejb.EJBException > > > at com.bank.bciticorp.BCitiBankBean.deposit(Compiled Code) > > > at > > > com.bank.bciticorp.BCitiBankBeanEOImpl.deposit(BCitiBankBeanEOImpl.ja > > > va:56) > > > at > > > com.bank.bglobal.BGlobalBean.transferSTtoCT(BGlobalBean.java:55) > > > at > > > com.bank.bglobal.BGlobalBeanEOImpl.transferSTtoCT(BGlobalBeanEOImpl.j > > > ava:56) > > > at > > > com.bank.bglobal.BGlobalBeanEOImpl_WLSkel.invoke(BGlobalBeanEOImpl_WL > > > > > > Anyone help in this regard. > > > Thanks in advance. > > > Regards, > > > Vinoth.C > > > > > > This e-mail and any files transmitted with it are for the sole use of > > the > > > intended recipient(s) and may contain confidential and privileged > > > information. > > > If you are not the intended recipient, please contact the sender by > > reply > > > e-mail and destroy all copies of the original message. > > > Any unauthorised review, use, disclosure, dissemination, forwarding, > > > printing or copying of this email or any action taken in reliance on > > this > > > e-mail is strictly > > > prohibited and may be unlawful. > > > > > > Visit us at http://www.cognizant.com > > > > > > > > > ========================================================================== > > > = > > > 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 the message "help". > > > > > > > > ========================================================================== > > = > > 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 the message "help". > > ========================================================================== > = > 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 the message "help". > ------------------------------ Date: Thu, 8 Feb 2001 14:36:24 +0100 From: Mohamed <[EMAIL PROTECTED]> Subject: Re: Servlet Runner to ejb server how ? Hi: At home = (TellerHome)Naming.lookup("Teller"); you are looking for the EJB caled Teller, TellerHome is the home of your bean. teller = home.create(); Here you are creating an un instance of your bean so you can use it calling its operators. Regards Mohamed "Rahman, Zahid" wrote: > I am trying out some examples from > http://www.execpc.com/~gopalan/java/ejb.html > > I have created the ebj classes and created the deployment descripter. > The deploymnet descriptor the way I understand it tells the EJB server of > the EJB beans details i.e. Bean name , properties > the database/odbc configuration etc.. > > Before running the servlet runner the EJB server obviously has to be > running > with the EJB beans loaded up from the deployment descriptors. > > Can You please tell me what I should be looking for that says this is > where the servlet runner > is communicating with the EJB server. > > Regards, > Zahid > > ©2001, Logsys Solutions Ltd. > This message and any attachments is intended for the stated recipient only > and in no way constitutes a binding contractual agreement, order, or > commitment by Logsys Solutions Limited WHO ARE NOT TO BE BOUND BY ANYTHING > CONTAINED HEREIN. If you have received this message in error, please return > it to the sender, indicating such and then delete and destroy all copies in > your possession. > > =========================================================================== > 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 08:19:27 -0500 From: Craig McMurtry <[EMAIL PROTECTED]> Subject: Re: commerce One ONE is a new marketing wrapper for a collection of products almost all of which were previously available. The industry media describes it as an attempt by Sun to respond to Microsoft's DOT-NET marketing. The difference, not adequately noted in the media, is that the core of DOT-NET is an entirely new, theoretically platform-independent runtime environment and suite of development tools that were released in beta versions subsequent to the DOT-NET marketing announcements. Read an article here: http://www.theregister.co.uk/content/6/16666.html ---------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ------------------------------ Date: Thu, 8 Feb 2001 05:41:07 -0800 From: Raj <[EMAIL PROTECTED]> Subject: EJB for inquiry............. Hi I am new to the EJB world and have a question which may appear too simple/fundamental but would appreciate some clarification. I need to write EJB's for an inquiry application which does not store or delete data from an already existing database. As per the specifiction, there should be one or more Create methods, Finder methods and destroy methods; as I will be writing the data access code within the bean( which is typical of BMP), is it mandatory that the create and post create has to be written with all the necesssary arguments(pl. bear in mind that I need not create any rows in the database). When I need to make a reference to the bean using home.create, I do not want any row to be created - is this possible ? ( but I believe that I do need to start with home.create to have a reference bean) As I need to retrieve data only, is it possible to directly call the finder methods? Any clarifications to the above is appreciated. THanks, RD __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ------------------------------ Date: Thu, 8 Feb 2001 09:10:54 -0500 From: Victor Langelo <[EMAIL PROTECTED]> Subject: Re: META-INF Hariharan, Don't believe WinZip either. I've been fooled by WinZip as well. You should look at the jar file using the jar tool with the command: jar tvf stuff.jar BTW, NT will change your directory to mixed case even when viewed with DOS dir or Properties. I haven't figured out exactly when but have seen it happen. It's very annoying. --Victor Hariharan N wrote: > Yes, with Properties and DOS dir command it is fully captialized. > I opened the jar file using WinZip which directly shows the files in the > meta-inf folder with the path in all lowercase. How to list the folders > present in jar files > and finally a little more on the last manifest point! > Thanks! > ------------------------------ Date: Thu, 8 Feb 2001 16:05:12 -0000 From: Bhupesh <[EMAIL PROTECTED]> Subject: EJB & Transactions I have a stateless session bean that uses Bean Managed Transactions. It makes calls to a series of other session beans that perform database operations (INSERTS & UPDATES). All of these calls are made within the scope of a UserTransaction. One of the beans that is called uses bean managed transactions and gets a JDBC connection (via javax.sql.DataSource) from the server pool. It begins a transaction, executes some sql and then commits the transaction. The issue I have is that as a result of this commit (in the called bean), the UserTransaction started in the first bean is also committed. If I try to rollback from the first bean it has no affect, all changes made by other session beans are committed. Is this correct, or should the commit on the second bean have no affect on the transaction running in the first bean? regards Bhupesh Wagjiani GamCom Solutions Limited [EMAIL PROTECTED] **************************************************************************** *** Any opinions expressed in this email are those of the individual and not necessarily those of GamCom Solutions Ltd (herein after "GamCom") and/or its subsidiaries. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from GamCom and/or its subsidiaries, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited; please notify us immediately and do not disclose, distribute, or retain this email or any part of it. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. GamCom and/or its subsidiaries reserve the right to monitor all email communications through their networks. If you have received this email in error please notify GamCom by telephone on +44 (0)20 8838 5441 or via email to [EMAIL PROTECTED] , including a copy of this message. **************************************************************************** *** ------------------------------ Date: Thu, 8 Feb 2001 16:21:38 -0000 From: "Rahman, Zahid" <[EMAIL PROTECTED]> Subject: Re: Servlet Runner to ejb server how ? Thanks for that it, substantial clarity. 1. I would like to expand a little bit further in that if the Teller EJB is on another machine then would the servlet runner would find it using perhaps the following logical location. home = (TellerHome)Naming.lookup("http://www.logsys.co.uk/Examples/Teller"); > -----Original Message----- > From: Mohamed [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 08, 2001 1:36 PM > To: [EMAIL PROTECTED] > Subject: Re: Servlet Runner to ejb server how ? > > Hi: > > At > home = (TellerHome)Naming.lookup("Teller"); > you are looking for the EJB caled Teller, TellerHome is the home of your > bean. > teller = home.create(); > Here you are creating an un instance of your bean so you can use it > calling its > operators. > > Regards > Mohamed > > "Rahman, Zahid" wrote: > > > I am trying out some examples from > > http://www.execpc.com/~gopalan/java/ejb.html > > > > I have created the ebj classes and created the deployment descripter. > > The deploymnet descriptor the way I understand it tells the EJB server > of > > the EJB beans details i.e. Bean name , properties > > the database/odbc configuration etc.. > > > > Before running the servlet runner the EJB server obviously has to be > > running > > with the EJB beans loaded up from the deployment descriptors. > > > > Can You please tell me what I should be looking for that says this is > > where the servlet runner > > is communicating with the EJB server. > > > > Regards, > > Zahid > > > > ©2001, Logsys Solutions Ltd. > > This message and any attachments is intended for the stated recipient > only > > and in no way constitutes a binding contractual agreement, order, or > > commitment by Logsys Solutions Limited WHO ARE NOT TO BE BOUND BY > ANYTHING > > CONTAINED HEREIN. If you have received this message in error, please > return > > it to the sender, indicating such and then delete and destroy all copies > in > > your possession. > > > > > ========================================================================== > = > > 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 the message "help". > > ========================================================================== > = > 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 08:01:50 -0800 From: ejbjaggi <[EMAIL PROTECTED]> Subject: NoClassDefFoundError Hi I am using Weblogic 6.0 to deploy Entity Beans and Session beans using EJB 1.1 specs. After deploying them, when I try to call an Entity bean from a Session bean, I get a NoClassDefFoundError. But when I add the Entity Bean JAR file to the weblogic classpath in the startWeblogic.cmd file, the error vanishes. Is there any way to overcome this error without adding all the JAR files to the weblogic classpath. Thanks in Advance Jagdish ---------------------------------------------------------- Register Chinese Character Domain Name- ONLY US$17/year! 100 Chinese Domain Names are registered every minute! Time is clicking, what are you waiting for? Go to http://www.chinese-dns.com Register NOW!!! Verisign¤¤¤å³»¯Å°ì¦W²{¦b¼ö½æ¤¤¡T ¨C¤ÀÄÁ³£¦³100Ó¤¤¤å°ì¦W³Qµù¥U¡M±zÁÙ¦bµ¥¤°»ò©O¡S ¨CÓºô§}¬üª÷17¤¸/¦~¡T²{¦b´N¨ì http://www.chinese-dns.com µù¥U¡T ------------------------------ Date: Thu, 8 Feb 2001 10:08:10 -0600 From: "Britt, Richard" <[EMAIL PROTECTED]> Subject: Re: EJB-INTEREST Digest - 6 Feb 2001 to 7 Feb 2001 (#2001-39) signoff EJB-INTEREST -----Original Message----- From: Automatic digest processor [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 2:01 AM To: Recipients of EJB-INTEREST digests Subject: EJB-INTEREST Digest - 6 Feb 2001 to 7 Feb 2001 (#2001-39) There are 42 messages totalling 2831 lines in this issue. Topics of the day: 1. Help me !! (5) 2. Anyone having knowledge of iPortal Application Server 3. Accessing beans from servlets !? (5) 4. Help in extending the SessionBean class. (4) 5. Implementation of MVC (model-view-controller) in EJB (2) 6. Entity Bean without Primary Key 7. Problem registering DataSource with iPortal Application Server 8. How does JDBC from application clients work? (3) 9. Cannot post from hotmail??? 10. ejb-name of message-driven optional in the deployment descriptor (2) 11. answers plz 12. Autonumber primary keys 13. Announcing EJBGen 1.12 14. Java Users ... 15. Reading LDAP data with EJBs 16. syncronization display with the database data 17. Why can't it be multiple delete method! 18. <No subject given> 19. EJB Object and Session Object 20. META-INF (4) 21. CORBA problems 22. Dependent Objects support 23. Threading delegate in EJB 24. Error while invoking rollback method =========================================================================== 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 the message "help". ---------------------------------------------------------------------- Date: Wed, 7 Feb 2001 14:53:35 +0530 From: "Thakur Sanjay Kumar ,DYM(EM1)." <[EMAIL PROTECTED]> Subject: Re: Help me !! Sun site has an excellent online book by Ms Monica Pawlan (java.sun.com) on EJB. thanks > ---------- > From: Srinivas K. R.[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list for Enterprise JavaBeans development > Sent: 08 February 2001 00:46 > To: [EMAIL PROTECTED] > Subject: Help me !! > > Hi > I am working on Servlets and interested in learning EJB. > Read some book but sill do not have a good hold on EJB. > I want to know is there any site which give me some working code or > Examples > of EJB. > I am looking for an example which covers every thing in EJB like > The complete cycle , i.e > A client program talking to Session bean and the session bean talking to > Entity bean and then the value stored in to database. > > A client(JSP) --> Some Business logic(Session Bean)----->( Insert Data) > Entity Bean---> Database > > I know i am asking for too much..))))) > > Regards > Srini > > ========================================================================== > = > 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 the message "help". > > > ------------------------------------------------------------------- CONFIDENTIALITY/PROPRIETARY NOTE. The document accompanying this electronic transmission contains information from Maruti Udyog Limited, which is confidential, proprietary or copyrighted and is intended solely for the use of the individual or entity named on this transmission.If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.This prohibition includes, without limitation, displaying this transmission or any portion thereof, on any public bulletin board.If you are not the intended recipient of this document, please return this document to Maruti Udyog Limited immediately. ------------------------------------------------------------------- "Please visit us at http://www.marutiudyog.com". ----------------------------- Date: Wed, 7 Feb 2001 11:29:38 +0100 From: Francesco Marchioni <[EMAIL PROTECTED]> Subject: Re: Help me !! Hi Thakur, I took a look around Sun site's EJB section but I couldn't find the book you mentioned (I just found drafts, specifications etc.). Can you provide the exact link to it? thanks a lot Francesco ----- Original Message ----- From: Thakur Sanjay Kumar ,DYM(EM1). <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 10:23 AM Subject: Re: Help me !! > Sun site has an excellent online book by Ms Monica Pawlan (java.sun.com) on > EJB. > thanks > > > ---------- > > From: Srinivas K. R.[SMTP:[EMAIL PROTECTED]] > > Reply To: A mailing list for Enterprise JavaBeans development > > Sent: 08 February 2001 00:46 > > To: [EMAIL PROTECTED] > > Subject: Help me !! > > > > Hi > > I am working on Servlets and interested in learning EJB. > > Read some book but sill do not have a good hold on EJB. > > I want to know is there any site which give me some working code or > > Examples > > of EJB. > > I am looking for an example which covers every thing in EJB like > > The complete cycle , i.e > > A client program talking to Session bean and the session bean talking to > > Entity bean and then the value stored in to database. > > > > A client(JSP) --> Some Business logic(Session Bean)----->( Insert Data) > > Entity Bean---> Database > > > > I know i am asking for too much..))))) > > > > Regards > > Srini > > > > ========================================================================== > > = > > 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 the message "help". > > > > > > > ------------------------------------------------------------------- > CONFIDENTIALITY/PROPRIETARY NOTE. > The document accompanying this electronic transmission > contains information from Maruti Udyog Limited, which is > confidential, proprietary or copyrighted and is intended > solely for the use of the individual or entity named on > this transmission.If you are not the intended recipient, > you are notified that disclosing, copying, distributing or > taking any action in reliance on the contents of this > information is strictly prohibited.This prohibition includes, > without limitation, displaying this transmission or any portion > thereof, on any public bulletin board.If you are not the > intended recipient of this document, please return this > document to Maruti Udyog Limited immediately. > ------------------------------------------------------------------- > "Please visit us at http://www.marutiudyog.com". > > =========================================================================== > 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 the message "help". > ----------------------------- Date: Wed, 7 Feb 2001 10:26:03 -0000 From: David Bosschaert <[EMAIL PROTECTED]> Subject: Re: Anyone having knowledge of iPortal Application Server Hi Ripan, Iona has a public newsgroup where questions like this can be posted. The newsgroup is called iona.products.iportal on the news server inews.iona.com. Regards, David Bosschaert IONA Technologies >On Tue, 6 Feb 2001 14:52:04 +0530, Ripan Bansal <[EMAIL PROTECTED]> wrote: > >Hi, >While deploying the EJB, i am getting "IT_Deploy:2005" error. If someone >know about it please reply back. > >Regards >Ripan ----------------------------- Date: Tue, 6 Feb 2001 20:56:31 +0530 From: Amit V Joshi <[EMAIL PROTECTED]> Subject: Accessing beans from servlets !? Hi all, I am trying to access a bean thru' a servlet. I am getting error as "Conversation.UserHome not found" Here Conversation.UserHome is the lookup name for the bean. Here is my code. import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.rmi.*; import java.rmi.server.*; import java.util.*; import javax.ejb.*; import javax.naming.*; import ejbeans.*; public class viewServlet extends HttpServlet { private Context context; static { System.setSecurityManager(new RMISecurityManager()); } public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { final Properties properties = new Properties(); properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "allaire.ejipt.ContextFactory"); properties.setProperty(Context.PROVIDER_URL, "ejipt://itl-pc-1703:2323"); try { context = new InitialContext(properties); final UserHome home = (UserHome) context.lookup("Conversation.UserHome"); final User user = home.create(); } catch (Exception exception) { throw new RuntimeException(exception.getMessage()); } req.getRequestDispatcher("form.jsp").forward(req,res); } } Any help in these regards is welcome Thanx. Amit. =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 11:02:12 -0000 From: "Rahman, Zahid" <[EMAIL PROTECTED]> Subject: Re: Help me !! The link you are looking for http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/ > -----Original Message----- > From: Francesco Marchioni [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, February 07, 2001 10:30 AM > To: [EMAIL PROTECTED] > Subject: Re: Help me !! > > Hi Thakur, > I took a look around Sun site's EJB section but I couldn't find the book > you > mentioned > (I just found drafts, specifications etc.). Can you provide the exact link > to it? > thanks a lot > Francesco > > ----- Original Message ----- > From: Thakur Sanjay Kumar ,DYM(EM1). <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, February 07, 2001 10:23 AM > Subject: Re: Help me !! > > > > Sun site has an excellent online book by Ms Monica Pawlan (java.sun.com) > on > > EJB. > > thanks > > > > > ---------- > > > From: Srinivas K. R.[SMTP:[EMAIL PROTECTED]] > > > Reply To: A mailing list for Enterprise JavaBeans development > > > Sent: 08 February 2001 00:46 > > > To: [EMAIL PROTECTED] > > > Subject: Help me !! > > > > > > Hi > > > I am working on Servlets and interested in learning EJB. > > > Read some book but sill do not have a good hold on EJB. > > > I want to know is there any site which give me some working code or > > > Examples > > > of EJB. > > > I am looking for an example which covers every thing in EJB like > > > The complete cycle , i.e > > > A client program talking to Session bean and the session bean talking > to > > > Entity bean and then the value stored in to database. > > > > > > A client(JSP) --> Some Business logic(Session Bean)----->( Insert > Data) > > > Entity Bean---> Database > > > > > > I know i am asking for too much..))))) > > > > > > Regards > > > Srini > > > > > > > ========================================================================== > > > = > > > 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 the message "help". > > > > > > > > > > > ------------------------------------------------------------------- > > CONFIDENTIALITY/PROPRIETARY NOTE. > > The document accompanying this electronic transmission > > contains information from Maruti Udyog Limited, which is > > confidential, proprietary or copyrighted and is intended > > solely for the use of the individual or entity named on > > this transmission.If you are not the intended recipient, > > you are notified that disclosing, copying, distributing or > > taking any action in reliance on the contents of this > > information is strictly prohibited.This prohibition includes, > > without limitation, displaying this transmission or any portion > > thereof, on any public bulletin board.If you are not the > > intended recipient of this document, please return this > > document to Maruti Udyog Limited immediately. > > ------------------------------------------------------------------- > > "Please visit us at http://www.marutiudyog.com". > > > > > ========================================================================== > = > > 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 the message "help". > > > > ========================================================================== > = > 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 16:48:49 +0530 From: Rohit Parik <[EMAIL PROTECTED]> Subject: Re: Accessing beans from servlets !? Check your classpath. Also I suggest that you obtain home of your bean in your init() method instead of the service method.. Regards Rohit Parik Netweb Software, India ----- Original Message ----- From: Amit V Joshi To: [EMAIL PROTECTED] Sent: Tuesday, February 06, 2001 8:56 PM Subject: Accessing beans from servlets !? Hi all, I am trying to access a bean thru' a servlet. I am getting error as "Conversation.UserHome not found" Here Conversation.UserHome is the lookup name for the bean. Here is my code. import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.rmi.*; import java.rmi.server.*; import java.util.*; import javax.ejb.*; import javax.naming.*; import ejbeans.*; public class viewServlet extends HttpServlet { private Context context; static { System.setSecurityManager(new RMISecurityManager()); } public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { final Properties properties = new Properties(); properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "allaire.ejipt.ContextFactory"); properties.setProperty(Context.PROVIDER_URL, "ejipt://itl-pc-1703:2323"); try { context = new InitialContext(properties); final UserHome home = (UserHome) context.lookup("Conversation.UserHome"); final User user = home.create(); } catch (Exception exception) { throw new RuntimeException(exception.getMessage()); } req.getRequestDispatcher("form.jsp").forward(req,res); } } Any help in these regards is welcome Thanx. Amit. =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 16:41:19 +0530 From: Vaibhav Kumar Agarwal <[EMAIL PROTECTED]> Subject: Help in extending the SessionBean class. Hi All, I'm a little new to EJB and have not much experience in this. I've got a problem like this. My base class is ServiceManager which has got some methods and their implementations. I have two classes MailServiceManager and CalendarServiceManager. These two classes extend from ServiceManager. Now the MailServiceManager is supposed to be Stateless SessionBean hence it needs to extend the SessionBean class but it cannot as its extending the ServiceManager class. I don't want to make the ServiceManager as an interface. The ServiceManager cannot extend SessionBean as CalendarServiceManager is not bean. Is there anything sort of a interface which gives the SessionBean features or is there any way to handle this. Regards Vaibhav ----------------------------- Date: Wed, 7 Feb 2001 17:00:15 +0530 From: Ashwani Kalra <[EMAIL PROTECTED]> Subject: Re: Accessing beans from servlets !? Hi, The error that he is getting is not due to classpath. Also one can obtain home either in init or in post or get methods. I have tried both the ways. Warm Regards Ashwani Kalra Sr. Member Development Staff Aithent Technologies(P) Ltd. Email : [EMAIL PROTECTED] ----- Original Message ----- From: Rohit Parik <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 4:48 PM Subject: Re: Accessing beans from servlets !? > Check your classpath. Also I suggest that you obtain home of your bean in > your init() method instead of the service method.. > > Regards > Rohit Parik > Netweb Software, > India > > > ----- Original Message ----- > From: Amit V Joshi > To: [EMAIL PROTECTED] > Sent: Tuesday, February 06, 2001 8:56 PM > Subject: Accessing beans from servlets !? > > > Hi all, > > I am trying to access a bean thru' a servlet. I am getting error as > "Conversation.UserHome not found" > Here Conversation.UserHome is the lookup name for the bean. Here is my code. > import javax.servlet.*; > import javax.servlet.http.*; > import java.io.*; > import java.rmi.*; > import java.rmi.server.*; > import java.util.*; > import javax.ejb.*; > import javax.naming.*; > import ejbeans.*; > > public class viewServlet extends HttpServlet > { > > private Context context; > > static > { > System.setSecurityManager(new RMISecurityManager()); > } > > public void doGet(HttpServletRequest req, > HttpServletResponse res) > throws ServletException, IOException > { > final Properties properties = new Properties(); > properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, > "allaire.ejipt.ContextFactory"); > properties.setProperty(Context.PROVIDER_URL, > "ejipt://itl-pc-1703:2323"); > > try > { > context = new InitialContext(properties); > final UserHome home = (UserHome) > context.lookup("Conversation.UserHome"); > final User user = home.create(); > } > catch (Exception exception) > { > throw new RuntimeException(exception.getMessage()); > } > req.getRequestDispatcher("form.jsp").forward(req,res); > } > } > > Any help in these regards is welcome > > Thanx. > > Amit. > > =========================================================================== > 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 the message "help". > > =========================================================================== > 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 the message "help". > ----------------------------- Date: Fri, 8 Dec 2000 17:08:43 +0530 From: Sonika Narula <[EMAIL PROTECTED]> Subject: Implementation of MVC (model-view-controller) in EJB hi friends, i want to find out on MVC implementation in my EJB application. can anybody suggest good material on it. thx in advance, sonika ----------------------------- Date: Wed, 7 Feb 2001 17:06:34 +0530 From: Ashwani Kalra <[EMAIL PROTECTED]> Subject: Re: Help in extending the SessionBean class. Make a session bean classs and extend the appropriate class you want to use. I think you want to reuse the code. Declare the functions of the base class in the remote interface I think you want to resuse the code .Isn't it ? Warm Regards Ashwani Kalra Sr. Member Development Staff Aithent Technologies(P) Ltd. Email : [EMAIL PROTECTED] ----- Original Message ----- From: Vaibhav Kumar Agarwal <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 4:41 PM Subject: Help in extending the SessionBean class. > Hi All, > > I'm a little new to EJB and have not much experience in this. I've got a > problem like this. > > My base class is ServiceManager which has got some methods and their > implementations. I have two classes MailServiceManager and > CalendarServiceManager. These two classes extend from ServiceManager. > Now the MailServiceManager is supposed to be Stateless SessionBean hence > > it needs to extend the SessionBean class but it cannot as its extending > the > ServiceManager class. I don't want to make the ServiceManager as an > interface. The ServiceManager cannot extend SessionBean as > CalendarServiceManager is not bean. > Is there anything sort of a interface which gives the SessionBean > features or > is there any way to handle this. > > Regards > Vaibhav > > =========================================================================== > 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 the message "help". > > ----------------------------- Date: Wed, 7 Feb 2001 06:45:23 -0500 From: Jay Walters <[EMAIL PROTECTED]> Subject: Re: Help in extending the SessionBean class. SessionBean is an interface, so I think you are all set. Cheers Jay Walters -----Original Message----- From: Vaibhav Kumar Agarwal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 6:11 AM To: [EMAIL PROTECTED] Subject: Help in extending the SessionBean class. Hi All, I'm a little new to EJB and have not much experience in this. I've got a problem like this. My base class is ServiceManager which has got some methods and their implementations. I have two classes MailServiceManager and CalendarServiceManager. These two classes extend from ServiceManager. Now the MailServiceManager is supposed to be Stateless SessionBean hence it needs to extend the SessionBean class but it cannot as its extending the ServiceManager class. I don't want to make the ServiceManager as an interface. The ServiceManager cannot extend SessionBean as CalendarServiceManager is not bean. Is there anything sort of a interface which gives the SessionBean features or is there any way to handle this. Regards Vaibhav =========================================================================== 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 the message "help". ----------------------------- Date: Tue, 6 Feb 2001 17:39:23 -0300 From: "Juan Lorandi (Chile)" <[EMAIL PROTECTED]> Subject: Re: Entity Bean without Primary Key use all fields as primary key. Another approach is, which field(s) you use to SELECT in the table? Those are your PK JP > -----Original Message----- > From: dazhi yang [mailto:[EMAIL PROTECTED]] > Sent: Martes, 06 de Febrero de 2001 16:57 > To: [EMAIL PROTECTED] > Subject: Entity Bean without Primary Key > > > I got a question about BMP entity bean and table > mapping. I would generate an entity bean based on a > table which containes no primary key. I tried to > create a primary key class with all columns together > as primary key in entity bean. The question is how I > implement ejbLoad (), ejbStore() and ejbRemove() > methods in where they need primary key in sql WHERE > clause. > > Would appreciate for any help! > > Yang > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great prices. > http://auctions.yahoo.com/ > > ============================================================== > ============= > 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 the message "help". > =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 17:51:01 +0530 From: Ripan Bansal <[EMAIL PROTECTED]> Subject: Problem registering DataSource with iPortal Application Server Hi All, I am facing a strange problem while deploying the bean that accesses the database by doing the lookup for the datasource object. Here is the code that i have used in the bean class to get the ref to the datasource object. Context initContext = new InitialContext(); DataSource ds = (DataSource) initContext.lookup("db"); Connection conn = ds.getConnection(); Here, "db" is the logical JNDI name of the datasource. For mapping this name with the actual JNDI name, container configuration file is used as follows <configuration> <description>Test Container</description> <display-name>Hello</display-name> category>Hi</category> <enterprise-beans> <session> <ejb-name>Hello</ejb-name> <jndi-name>hello</jndi-name> <jndi-source-name>CosNaming</jndi-source-name> <resource-ref> <res-ref-name>db</res-ref-name> <res-ref-link>dbtry</res-ref-link> </resource-ref> </session> </enterprise-beans> <jndi-sources> <jndi-source> <jndi-source-name>CosNaming</jndi-source-name> <property> <prop-name>java.naming.factory.initial</prop-name> <prop-value>com.sun.jndi.cosnaming.CNCtxFactory</prop-value> </property> </jndi-source> </jndi-sources> <resources> <resource> <resource-name>dbtry</resource-name> <jndi-name>IPASSequelinkDataSource</jndi-name> <property> <prop-name>java.naming.factory.initial</prop-name> <prop-value>com.sun.jndi.fscontext.RefFSContextFactory</prop-value> <prop-name>java.naming.provider.url</prop-name> <prop-value>file:///c:/</prop-value> </property> </resource> </resources> </configuration> In this "IPASSequelinkDataSource" is the name of the wrapper datasource object provided by the IONA. This name is registered with the File System JNDI using the RegisterDataSource utility provided by the IONA. While deploying i am getting different errors like "java.rmi.remoteexception: CORBA UNKNOWN 1230242048; nested exception is: org.omg.CORBA.UNKOWN: Minor Code 12302420148 completed:No" or "NamingException" etc. It is giving diff errors at diff times. Anyone faced a similar problem please reply back. Regards Ripan ----------------------------- Date: Wed, 7 Feb 2001 17:51:21 +0530 From: Rohit Parik <[EMAIL PROTECTED]> Subject: Re: Accessing beans from servlets !? Well the error could be due to a problem in the classpath .. i had a similar incidence where my webserver ( servlet engine ) was on a different system and the app server was on a diff system :) Also if you are obtaining you context and home in the service methods you r calling for performance problems.... becoz u r trying to obtain the home during each service.. :( Get the home in the init() and you do this only once :) then simply use the home in your service methods. Thus only the first call to the servlet will have to obtain the home .. then it doesnt need to .. Regards Rohit Parik Netweb Software, India ----- Original Message ----- From: Ashwani Kalra To: [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 5:00 PM Subject: Re: Accessing beans from servlets !? Hi, The error that he is getting is not due to classpath. Also one can obtain home either in init or in post or get methods. I have tried both the ways. Warm Regards Ashwani Kalra Sr. Member Development Staff Aithent Technologies(P) Ltd. Email : [EMAIL PROTECTED] ----- Original Message ----- From: Rohit Parik <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 4:48 PM Subject: Re: Accessing beans from servlets !? > Check your classpath. Also I suggest that you obtain home of your bean in > your init() method instead of the service method.. > > Regards > Rohit Parik > Netweb Software, > India > > > ----- Original Message ----- > From: Amit V Joshi > To: [EMAIL PROTECTED] > Sent: Tuesday, February 06, 2001 8:56 PM > Subject: Accessing beans from servlets !? > > > Hi all, > > I am trying to access a bean thru' a servlet. I am getting error as > "Conversation.UserHome not found" > Here Conversation.UserHome is the lookup name for the bean. Here is my code. > import javax.servlet.*; > import javax.servlet.http.*; > import java.io.*; > import java.rmi.*; > import java.rmi.server.*; > import java.util.*; > import javax.ejb.*; > import javax.naming.*; > import ejbeans.*; > > public class viewServlet extends HttpServlet > { > > private Context context; > > static > { > System.setSecurityManager(new RMISecurityManager()); > } > > public void doGet(HttpServletRequest req, > HttpServletResponse res) > throws ServletException, IOException > { > final Properties properties = new Properties(); > properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, > "allaire.ejipt.ContextFactory"); > properties.setProperty(Context.PROVIDER_URL, > "ejipt://itl-pc-1703:2323"); > > try > { > context = new InitialContext(properties); > final UserHome home = (UserHome) > context.lookup("Conversation.UserHome"); > final User user = home.create(); > } > catch (Exception exception) > { > throw new RuntimeException(exception.getMessage()); > } > req.getRequestDispatcher("form.jsp").forward(req,res); > } > } > > Any help in these regards is welcome > > Thanx. > > Amit. > > =========================================================================== > 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 the message "help". > > =========================================================================== > 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 the message "help". > =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 04:18:40 -0800 From: Peter Miller <[EMAIL PROTECTED]> Subject: How does JDBC from application clients work? Jeff, The whole idea about this architecture, commonly call multi-tier or n-tier, this that there is a separation between client presentation logic, business logic and state persistence, in that order. So clients should deal only in presentation issues, and request business process execution of the server. It, in turn, validates and manipulates various objects and they persist their state to a store (typically an RDBMS). So, the answer is, clients should not access JDBC at all, never! If you really want to do that, its OK, its just you would be building a client-server ("2-tier") app, and that's not EJB territory. Regards, Peter Miller. I'm trying to figure out how application servers provide JDBC data sources to application clients. I'm hoping someone here can provide some insight. >From a client, I can use JNDI to get a reference to a data source and use it to make JDBC calls. How do these calls actually find their way to the database? Do the database-specific JDBC drivers get loaded into the client JVM (through packaging or http) so that the client can make "native" database calls into the database? This would require making the database publicly accessable and potentially adds complexity to the client packaging, but it would be the best-performing solution. Does the application server implement a proxy layer, so all calls to JDBC interfaces get translated into some sort of proprietary protocol which at the server gets translated back to JDBC calls on the real driver? This allows the database to remain hidden, and eliminates the need for drivers to be loaded into the client, but adds a level of complexity and a performance hit. Or is there some other approach? I imagine that different app servers take different approaches, so I fully expect the answer to be "it depends" :-) What do various app servers do? The j2ee spec doesn't seem to prescribe an answer to this. Thanks, Jeff Schnitzer [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> =========================================================================== 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 the message "help". _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ----------------------------- Date: Wed, 7 Feb 2001 13:17:59 +0500 From: "Kumar, udaya" <[EMAIL PROTECTED]> Subject: Re: Accessing beans from servlets !? Hi, here the problem is ur servlet couldn't find Home interface of ur EJB. make sure that the Home and Remote interface are in classpath. Regards, Uday. > -----Original Message----- > From: Ashwani Kalra [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, February 06, 2001 9:49 PM > To: [EMAIL PROTECTED] > Subject: Re: Accessing beans from servlets !? > > Hi, > Which app server are you using. It looks that bean is not deployed > properly > and check the home name from the xml file. > > Warm Regards > Ashwani Kalra > Sr. Member Development Staff > Aithent Technologies(P) Ltd. > > > ----- Original Message ----- > From: Amit V Joshi <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 06, 2001 8:56 PM > Subject: Accessing beans from servlets !? > > > > Hi all, > > > > I am trying to access a bean thru' a servlet. I am getting error as > > "Conversation.UserHome not found" > > Here Conversation.UserHome is the lookup name for the bean. Here is my > code. > > import javax.servlet.*; > > import javax.servlet.http.*; > > import java.io.*; > > import java.rmi.*; > > import java.rmi.server.*; > > import java.util.*; > > import javax.ejb.*; > > import javax.naming.*; > > import ejbeans.*; > > > > public class viewServlet extends HttpServlet > > { > > > > private Context context; > > > > static > > { > > System.setSecurityManager(new RMISecurityManager()); > > } > > > > public void doGet(HttpServletRequest req, > > HttpServletResponse res) > > throws ServletException, IOException > > { > > final Properties properties = new Properties(); > > properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, > > "allaire.ejipt.ContextFactory"); > > properties.setProperty(Context.PROVIDER_URL, > > "ejipt://itl-pc-1703:2323"); > > > > try > > { > > context = new InitialContext(properties); > > final UserHome home = (UserHome) > > context.lookup("Conversation.UserHome"); > > final User user = home.create(); > > } > > catch (Exception exception) > > { > > throw new RuntimeException(exception.getMessage()); > > } > > req.getRequestDispatcher("form.jsp").forward(req,res); > > } > > } > > > > Any help in these regards is welcome > > > > Thanx. > > > > Amit. > > > > > ========================================================================== > = > > 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 the message "help". > > > > > > ========================================================================== > = > 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 17:05:28 +0500 From: "Kumar, udaya" <[EMAIL PROTECTED]> Subject: Re: Help in extending the SessionBean class. Hi, SessionBean is an Interface . u can implement it and at the same time u can extend ur ServiceManager. Regards, Udaya > -----Original Message----- > From: Vaibhav Kumar Agarwal [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, February 07, 2001 3:11 AM > To: [EMAIL PROTECTED] > Subject: Help in extending the SessionBean class. > > Hi All, > > I'm a little new to EJB and have not much experience in this. I've got a > problem like this. > > My base class is ServiceManager which has got some methods and their > implementations. I have two classes MailServiceManager and > CalendarServiceManager. These two classes extend from ServiceManager. > Now the MailServiceManager is supposed to be Stateless SessionBean hence > > it needs to extend the SessionBean class but it cannot as its extending > the > ServiceManager class. I don't want to make the ServiceManager as an > interface. The ServiceManager cannot extend SessionBean as > CalendarServiceManager is not bean. > Is there anything sort of a interface which gives the SessionBean > features or > is there any way to handle this. > > Regards > Vaibhav > > ========================================================================== > = > 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 04:40:34 -0800 From: Peter Miller <[EMAIL PROTECTED]> Subject: Cannot post from hotmail??? Now, wouldn't that be something? My apologies if this gets through, the previous two didn't Peter Miller. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ----------------------------- Date: Wed, 7 Feb 2001 14:08:21 +0100 From: =?iso-8859-1?Q?Fran=E7ois?= Exertier <[EMAIL PROTECTED]> Subject: ejb-name of message-driven optional in the deployment descriptor Hello, Here is a question following the reading of the XML DTD for the EJB 2.0 deployment descriptor (version 2.0, proposed final draft): Why is the ejb-name tag optional for a message driven bean ? How can we define the transactional attribute of the onMessage method in the container-transaction element if the message driven bean have no ejb-name ? (Notice that the ejb-name is not given as optional in the comment describing the message-driven element). All comments about this are welcome. Regards. -- ================================================================== Francois EXERTIER Evidian (Groupe Bull) 1, rue de Provence, BP 208, 38432 Echirolles cedex, FRANCE mailto:[EMAIL PROTECTED] http://www.evidian.com/jonas http://www.objectweb.org/jonas Tel: +33 (0)4 76 29 71 51 - Fax: +33 (0)4 76 29 76 00 ================================================================== ----------------------------- Date: Mon, 5 Feb 2001 17:43:03 +0530 From: raja_ms <[EMAIL PROTECTED]> Subject: answers plz can anyone let me know the answers of all this at the earliest. > CHOOSE ONE OPTION > > > <HOME_INTERFACE_OBJECT>.create(); > Which one of the following is returned to the client as a result of the > above method call? > Choice 1 Remote interface > Choice 2 Serialized connection > Choice 3 EJB handle > Choice 4 Skeleton > Choice 5 Home interface > > > When using container managed transactions, how should exceptions be caught > when thrown by a failed bean method? > Choice 1 In the bean implementation > Choice 2 In the client implementation > Choice 3 In the transaction manager > Choice 4 Automatically, by the EJB container > Choice 5 Using the UserTransaction API specification > > > An entity bean has been developed to represent a customer who uses a > telephone number as the primary key. > Referring to the above scenario, which one of the following calls would > remove the underlying customer data from the database in a > container-managed persistent entity bean? > Choice 1 ejbDelete() > Choice 2 ejbRemove() > Choice 3 ejbCreate() > Choice 4 ejbStore() > Choice 5 ejbLoad() > > What is returned by a successful InitialContext.lookup()? > Choice 1 EJBHandle > Choice 2 Reference to a home object > Choice 3 Bean object > Choice 4 Reference to a remote object > Choice 5 InitialContext > > > Which one of the following bean types is always unique to a particular > user? > Choice 1 Standard Java bean > Choice 2 BMP Entity bean > Choice 3 Stateful session bean > Choice 4 CMP Entity bean > Choice 5 Re-entrant Entity bean > > > The details of implementation for a given object should be hidden from > other objects. > Which one of the following provides the benefits described above? > Choice 1 : Cohesion > Choice 2 : Decoupling > Choice 3 : Inheritance > Choice 4 : Encapsulation > Choice 5 : Polymorphism > > > An EJB instance is forbidden to: > Choice 1 Use the JMS API > Choice 2 Create Threads > Choice 3 Use Swing Classes > Choice 4 Dynamically Load Classes > Choice 5 Use the JNDI API > > > Which one of the following entities would contain only the method > signatures of user-defined business methods? > Choice 1 Bean implementation > Choice 2 Remote interface > Choice 3 Home interface > Choice 4 javax.ejb > Choice 5 RemoteObject interface > > > Which one of the following interfaces is used for message queuing and > publish/subscribe communication? > Choice 1 XA > Choice 2 JMQ > Choice 3 JMS > Choice 4 JTA > Choice 5 JTS > > > Of all enterprise bean types, which type generally incurs the LEAST amount > of resource overhead? > Choice 1 Stateful session bean > Choice 2 BMP Entity bean > Choice 3 CMP Entity bean > Choice 4 Standard Java bean > Choice 5 Stateless session bean > > The RMI stub implements which type of pattern? > Choice 1 Façade > Choice 2 Proxy > Choice 3 Visitor > Choice 4 Bridge > Choice 5 Singleton > > The bean-container contract provides which one of the following services? > > Choice 1 Message queuing > Choice 2 Database connection pooling > Choice 3 User behavior profiling > Choice 4 HTTP logging > Choice 5 Transactions > > > Which one of the following includes the javax.ejb package? > Choice 1 JSDK2.0 > Choice 2 JDBC2.0 > Choice 3 J2ME > Choice 4 J2SE > Choice 5 J2EE > > > Which one of the following entities would contain only the method > signatures of user-defined business methods? > Choice 1 Bean implementation > Choice 2 Remote interface > Choice 3 Home interface > Choice 4 javax.ejb > Choice 5 RemoteObject interface > > > Which one of the following is the only method specified in the EJBObject > interface that does not return a value or object? > Choice 1 remove() > Choice 2 getPimaryKey() > Choice 3 isIdentical() > Choice 4 getEJBHome() > Choice 5 getHandle() > > > public void ejbRemove() throws RemoteException > { > try > { > String query = "delete from customers where cust_id = " + > pk; > executeUpdate(query); > } > catch (Exception e) > { > } > } > Given the above code, which type of entity bean does this represent? > Choice 1 CMT entity bean > Choice 2 Re-entrant entity bean > Choice 3 CMP entity bean > Choice 4 BMT entity bean > Choice 5 BMP entity bean > > =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 08:34:28 -0600 From: Richard Monson-Haefel <[EMAIL PROTECTED]> Subject: Re: How does JDBC from application clients work? Peter Miller wrote: > Jeff, > > The whole idea about this architecture, commonly call multi-tier or n-tier, > this that there is a separation between client presentation logic, business > logic and state persistence, in that order. So clients should deal only in > presentation issues, and request business process execution of the server. > It, in turn, validates and manipulates various objects and they persist > their state to a store (typically an RDBMS). > > So, the answer is, clients should not access JDBC at all, never! I'm not sure I agree with this statement. Before EJB a lot of people, including myself, were busy writing database gateways or brokers that allowed clients to obtain thin JDBC driver connections that were multiplexed by a central server.( 2-Tier was still king at that time and even Java-CORBA as in its infancy.) In other words the JDBC-broker ensured that JDBC connections were pooled and shared across clients, which make 2-tier systems more scalable. As a matter of fact, the Weblogic was originally an independent company that got its start (I believe) as a JDBC driver and JDBC-broker vendor. They provided a lightweight specialized JDBC driver that communicated client request over the network to a broker, which then redirected the requests native JDBC drivers. Anyway, using JDBC directly from clients in a 2-tier system is still a viable solution if you use the right technologies. 3-tier is great, but its not for everyone. Richard -- Richard Monson-Haefel Author of Enterprise JavaBeans, 2nd Edition (O'Reilly 2000) Co-Author of Java Message Service (O'Reilly 2000) http://www.EjbNow.com ----------------------------- Date: Wed, 7 Feb 2001 06:40:53 -0800 From: manishi tuli <[EMAIL PROTECTED]> Subject: Re: Help me !! can u give any idea about xml book online i have to use xml with java in my project thanks in advace Manishi >From: "Rahman, Zahid" <[EMAIL PROTECTED]> >Reply-To: A mailing list for Enterprise JavaBeans development ><[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Help me !! >Date: Wed, 7 Feb 2001 11:02:12 -0000 > >The link you are looking for > >http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/ > > > -----Original Message----- > > From: Francesco Marchioni [SMTP:[EMAIL PROTECTED]] > > Sent: Wednesday, February 07, 2001 10:30 AM > > To: [EMAIL PROTECTED] > > Subject: Re: Help me !! > > > > Hi Thakur, > > I took a look around Sun site's EJB section but I couldn't find the book > > you > > mentioned > > (I just found drafts, specifications etc.). Can you provide the exact >link > > to it? > > thanks a lot > > Francesco > > > > ----- Original Message ----- > > From: Thakur Sanjay Kumar ,DYM(EM1). <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, February 07, 2001 10:23 AM > > Subject: Re: Help me !! > > > > > > > Sun site has an excellent online book by Ms Monica Pawlan >(java.sun.com) > > on > > > EJB. > > > thanks > > > > > > > ---------- > > > > From: Srinivas K. R.[SMTP:[EMAIL PROTECTED]] > > > > Reply To: A mailing list for Enterprise JavaBeans development > > > > Sent: 08 February 2001 00:46 > > > > To: [EMAIL PROTECTED] > > > > Subject: Help me !! > > > > > > > > Hi > > > > I am working on Servlets and interested in learning EJB. > > > > Read some book but sill do not have a good hold on EJB. > > > > I want to know is there any site which give me some working code or > > > > Examples > > > > of EJB. > > > > I am looking for an example which covers every thing in EJB like > > > > The complete cycle , i.e > > > > A client program talking to Session bean and the session bean >talking > > to > > > > Entity bean and then the value stored in to database. > > > > > > > > A client(JSP) --> Some Business logic(Session Bean)----->( Insert > > Data) > > > > Entity Bean---> Database > > > > > > > > I know i am asking for too much..))))) > > > > > > > > Regards > > > > Srini > > > > > > > > > > >========================================================================== > > > > = > > > > 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 the message "help". > > > > > > > > > > > > > > > ------------------------------------------------------------------- > > > CONFIDENTIALITY/PROPRIETARY NOTE. > > > The document accompanying this electronic transmission > > > contains information from Maruti Udyog Limited, which is > > > confidential, proprietary or copyrighted and is intended > > > solely for the use of the individual or entity named on > > > this transmission.If you are not the intended recipient, > > > you are notified that disclosing, copying, distributing or > > > taking any action in reliance on the contents of this > > > information is strictly prohibited.This prohibition includes, > > > without limitation, displaying this transmission or any portion > > > thereof, on any public bulletin board.If you are not the > > > intended recipient of this document, please return this > > > document to Maruti Udyog Limited immediately. > > > ------------------------------------------------------------------- > > > "Please visit us at http://www.marutiudyog.com". > > > > > > > > >========================================================================== > > = > > > 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 the message "help". > > > > > > > >========================================================================== > > = > > 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 the message "help". > >=========================================================================== >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 the message "help". > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ----------------------------- Date: Wed, 7 Feb 2001 10:38:25 -0600 From: Thibault Cuvillier <[EMAIL PROTECTED]> Subject: Re: Implementation of MVC (model-view-controller) in EJB Have a look in: http://barracuda.enhydra.org/Barracuda/docs/events/high_level_overview.html You will find a list of the open source MVC framework, and a high level presentation of the MVC implementation issues. Tibo. >-----Original Message----- >From: Sonika Narula [mailto:[EMAIL PROTECTED]] >Sent: Friday, December 08, 2000 5:39 AM >To: [EMAIL PROTECTED] >Subject: Implementation of MVC (model-view-controller) in EJB > > >hi friends, > >i want to find out on MVC implementation in my EJB application. > >can anybody suggest good material on it. > >thx in advance, >sonika > >=============================================================== >============ >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 the message "help". > ----------------------------- Date: Wed, 7 Feb 2001 09:08:26 +0530 From: [EMAIL PROTECTED] Subject: Re: Autonumber primary keys Thank you Jose and Myles =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 11:09:17 -0800 From: Cedric Beust <[EMAIL PROTECTED]> Subject: Announcing EJBGen 1.12 EJBGen 1.12 is now available. EJBGen is an EJB 2.0 code generator. Instead of having to edit and maintain several files (Bean, Remote and Home classes, and the deployment descriptors), EJBGen will allow you to limit your editing to one file (the Bean class) and annotate it with Javadoc tags. EJBGen will then parse your source and will generate all the files you need to create a fully functional EJB, ready to be deployed in an EJB 2.0 container. EJBGen generates code suitable for EJB 2.0 and features: - CMP 2.0 Entity beans, including relationships (one-one, one-many, many-many, unidirectional and bidirectional) - Stateful Session Beans - Stateless Session Beans - Message Driven Beans - Compound Primary Keys - Home methods - Isolation levels EJBGen can be downloaded at http://beust.com/cedric/ejbgen -- Cedric ----------------------------- Date: Wed, 7 Feb 2001 11:46:38 -0800 From: Cedric Beust <[EMAIL PROTECTED]> Subject: Re: ejb-name of message-driven optional in the deployment descriptor > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]]On Behalf Of François Exertier > Why is the ejb-name tag optional for a message driven bean ? MessageDriven Beans are anonymous JMS Listeners, they are not bound in the JNDI tree nor can they be referenced directly by other beans. Hence, they do not need any name. The only way you can contact a MessageDriven Bean is by sending a message on the Destination it is listening to. > How can we define the transactional attribute of the onMessage method > in the container-transaction element if the message driven bean have > no ejb-name ? Good point. A loophole in the specification. If you don't specify the ejb-name, your MessageDriven Bean will use the default transaction attribute (NOT_SUPPORTED for WebLogic). > (Notice that the ejb-name is not given as optional in the comment > describing the message-driven element). Once again, good catch. I will forward these remarks to the EJB 2.0 expert group. -- Cedric (former Bull employee ;-)) ----------------------------- Date: Wed, 7 Feb 2001 16:18:12 -0600 From: Julie Ragle <[EMAIL PROTECTED]> Subject: Java Users ... Hi all! I hope you don't mind but I am forwarding a job posting to all on this list. I'm located in Dallas Texas and the JavaMUG for our region allows emails to be sent to the groups for potential career opportunities. I researched your internet site and did not see anything regarding jobs for Java folks in NY. If this is not the correct procedure for this group, please inform me and I'll take appropriate actions. Thank you in advance for your time. Please read on and feel free to contact me with questions or for further information. --------------------- Want to be a leader in cutting edge technology? You too can be an Advanced Technology Instructor for one of the industries leading edge technology-training providers! Valtech will train you in technical courses such as Java Object Designs and OOA&D as well as Instructor training. You will also have the opportunity to develop courseware on a limited basis, (most of the curriculum is already in place) and periodically support on-going consultant projects. In addition you may also obtain Valtech Certifications in Java, EJB, J2EE, OOA&D and UML. This could be a great opportunity for you! At Valtech you will find yourself in a position to make an impact and to be a contributor to the continued success of the business. Our atmosphere provides excitement and opportunity for everyone. You will also have the opportunity to be a part of more than one side of the business. At Valtech you have options. As an Instructor you can move into consulting and as a Consultant you can move into an Instructor roll. Or you have the option to do both. The options go on, it will all depend on what you want to do with your career. My name is Julie Ragle. I am a Corporate Recruiter for Valtech's Advanced Technology Training Division . Valtech is NOT a recruiting agency. Valtech is an international consulting group focused on Object Oriented technologies. Valtech helps its clients to create a durable competitive advantage (e-advantage) in building new Internet and Intranet applications integrated with existing systems. Thanks to its international network started in 1996, Valtech has gained a significant experience on critical e-business projects with two major kind of customers: the large international group (mainly in finance and communication) and the new players of the e-business market. We are proud to have Craig Larman on our staff -- he is the best selling author of Applying UML and Patterns. This textbook is currently used in our Educational Services offerings. We are also proud to have on staff Randy Davis, author of C++ for Dummies. We are eager to continue growing by hiring additional experienced Java professionals, Architects, Technical Leads and Advanced Technology Instructors to join our technically advanced team of professional software engineers working to build web-based applications and systems utilizing the latest technologies such as Java, J2EE, C++, EJB, CORBA, UML, Object Oriented Analysis and Design and more. Valtech employees are among the best technical, business, and training consultants in the industry. Valtech is proud to offer the following benefits. Each Valtech Employee is eligible to participate from the first day of employment. * Laptop Computers www.dell.com <http://www.dell.com> * Full medical and dental coverage www.phcs.com Premiums fully paid for employee and family * Life Insurance Premiums fully paid for by Valtech * Short and Long Term disability Premiums fully paid for by Valtech * Company matched 401K * 3 to 4 weeks (15 to 20 days) paid time off annually * 8 paid holidays * Stock Option program * Bonus Programs Travel Incentive Program Training Incentive Program * Company Sponsored Social Events * Flexible Spending Account The perfect candidate will possess at least two years of Java development experience in a business environment, C++ development experience is a PLUS! You must have excellent oral and written communication, enjoy public speaking and working with others. Thank you in advance for your time. I would certainly appreciate the opportunity to speak with you. Please feel free to contact me at your convenience for further details. You may also forward this information to someone you know that may be interested in a career change that doesn't want the hassle of posting their information on the net or working with recruiting agencies. I'll look forward to speaking with you soon. -Julie PS. We have these opportunities available in all of our US locations: Colorado, New York and Texas (Dallas & Houston) ................................................ Julie Ragle Corporate Recruiter Advanced Technology Training Division [EMAIL PROTECTED] Valtech - Dallas Direct - 972.789.6508 http://www.valtech.com .................................................. ----------------------------- Date: Mon, 5 Feb 2001 09:55:39 +0100 From: Jose =?ISO-8859-1?Q?Gonz=E1lez=20G=F3mez?= <[EMAIL PROTECTED]> Subject: Re: Reading LDAP data with EJBs Juan, Haven't thougt about that... maybe that could be a good solution, but we must keep the planning of this project and I think that would take us a long time. We are using Active Directory (this was client requirement) and we're accessing it with JNDI and the LDAP provider. The only significant problem we have found is that Active Directory fails when returning results for more than 1000 values in a single query. There seems to be some way to raise this value, but anyway is limited. If you try to use the methods that JNDI provide to control the number of objects returned you get an exception. Regards Jose Juan Lorandi (Chile) wrote: > José, have you ever considered to implement LDAP as a JDBC 2.0 driver? you > could there handle pooling, reuse > anything your want. > > BTW, won't you be using Active Directory? How do you access the LDAP? JNI & > ADSI? > > JP > >> -----Original Message----- >> From: Jose González Gómez [mailto:[EMAIL PROTECTED]] >> Sent: Viernes, 02 de Febrero de 2001 16:36 >> To: [EMAIL PROTECTED] >> Subject: Re: Reading LDAP data with EJBs >> >> >> Ian, >> >> We are talking here about internal users. The directory >> I'm accessing >> keeps a copy of the structure of the organization I'm making the >> application for. As you say, I use this directory to give different >> access rights to each users regarding their absolute and relative >> position (a manager may authorize requests from employees under his >> organizational unit, but not in others). Anyway, there is some info >> specific to the application that cannot be kept in the directory, so I >> use my database for this purpose. >> >> Under this scenario it made sense for us to make some abstraction >> that would isolate us from LDAP and database access, and we thought of >> an entity bean representing our users. Keep in mind that we have also >> the application administrator role, that may change permissions for >> other users. Our entity bean provides us methods for all those things: >> asking for permissions, asking for relation between two employees, >> changing rights for an user,... >> >> Any thoughts about this? >> >> Regards >> Jose >> >> Ian McCallion wrote: >> >>> Jose González Gómez wrote: >>> >>>> I have an ejb named User that models an user interacting with my >>>> application. I need this as the actions this user may do in the >>>> application depend on his position in a directory I access >>> >> through LDAP. >> >>>> I keep some info I need about the user in a database, as >>> >> this info is >> >>>> not in the directory. This way the bean encapsulates all the needed >>>> access to LDAP and database. >>>> >>>> My problem is that in ejbLoad I need to connect to LDAP >>> >> and database, >> >>>> and in ejbStore I connect only to the database, as the >>> >> info in LDAP will >> >>>> never be changed in my application. I get the connections to the >>>> database from the connection pool of my app server, but there's no >>>> connection pooling for LDAP connnections, so the ejbLoad >>> >> operation takes >> >>>> a lot of time in making this connection time after time. >>>> >>>> What could I do? Should I make my own connection >>> >> pooling mechanism >> >>>> for LDAP? Is this possible under J2EE? Any other ideas about this? >>> >>> >>> There are two reasons to know who your users are: >>> >>> 1. So that you can limit their authority e.g. a supervisor, >> >> front-office >> >>> clerk and a backoffice clerk are allowed to do different things. >>> >>> 2. So that you can "know your users" e.g. give them access to their >>> account, keep track of what they like to do when >> >> visiting your site, >> >>> etc. >>> >>> Clearly 1. is related to internal users and 2. is related >> >> to customers or other >> >>> external users. >>> >>> I do not recommend keeping information about external users >> >> in LDAP as your >> >>> requirements for access to the information are almost >> >> certain to exceed LDAP's >> >>> ability to provide it. >>> >>> So use LDAP for internal users of your application, but >> >> keep ALL external user >> >>> data in a database only. >>> >>> >>> Ian McCallion >>> Alexis Systems Limited >>> Romsey, UK >>> >>> >> ============================================================== >> ============= >> >>> 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 the message "help". >>> >> ============================================================== >> ============= >> 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 the message "help". >> > > =========================================================================== > 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 the message "help".. > =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 15:43:19 -0800 From: Jeff Schnitzer <[EMAIL PROTECTED]> Subject: Re: How does JDBC from application clients work? I didn't really intend to start a discussion of whether or not JDBC should be used from clients; I'm fully aware that it violates the EJB paradigm of separating presentation from business logic. But the J2EE spec allows for it, so I'm rather curious about how it is implemented. This all started as a thread on the Orion-Interest list started by a guy who found that he was able to dramatically increase the performance of his client applicaiton by accessing records through JDBC. I don't know what he was doing or why he needed the logic in the client, but I'm willing to set that aside. He found that he didn't need to package the JDBC driver with the client when using WebLogic, but hasn't figured out how to make Orion behave in like fashion. This has provoked some debate about how this all works that nobody has been able to answer. Richard, your comments about WebLogic have shed quite a bit of light on the subject. Thank you! Now I'm even more curious: What do other application server vendors do? It seems like implementing this JDBC proxy would be a lot of effort for something that would so rarely be used. Jeff Schnitzer [EMAIL PROTECTED] No, *I* haven't committed such a two-tiered transgression, and don't plan to... but I've just gotta know how *everything* works :-) >-----Original Message----- >From: Richard Monson-Haefel [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 07, 2001 6:34 AM >To: [EMAIL PROTECTED] >Subject: Re: How does JDBC from application clients work? > > >Peter Miller wrote: > >> Jeff, >> >> The whole idea about this architecture, commonly call >multi-tier or n-tier, >> this that there is a separation between client presentation >logic, business >> logic and state persistence, in that order. So clients >should deal only in >> presentation issues, and request business process execution >of the server. >> It, in turn, validates and manipulates various objects and >they persist >> their state to a store (typically an RDBMS). >> >> So, the answer is, clients should not access JDBC at all, never! > >I'm not sure I agree with this statement. Before EJB a lot of >people, including >myself, were busy writing database gateways or brokers that >allowed clients to >obtain thin JDBC driver connections that were multiplexed by a >central server.( >2-Tier was still king at that time and even Java-CORBA as in >its infancy.) In >other words the JDBC-broker ensured that JDBC connections were >pooled and >shared across clients, which make 2-tier systems more >scalable. As a matter of >fact, the Weblogic was originally an independent company that >got its start (I >believe) as a JDBC driver and JDBC-broker vendor. They >provided a lightweight >specialized JDBC driver that communicated client request over >the network to a >broker, which then redirected the requests native JDBC drivers. > >Anyway, using JDBC directly from clients in a 2-tier system is >still a viable >solution if you use the right technologies. 3-tier is great, >but its not for >everyone. > >Richard >-- >Richard Monson-Haefel >Author of Enterprise JavaBeans, 2nd Edition (O'Reilly 2000) >Co-Author of Java Message Service (O'Reilly 2000) >http://www.EjbNow.com > >=============================================================== >============ >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 the message "help". > > ----------------------------- Date: Mon, 5 Feb 2001 01:23:25 -0800 From: sudarson roy pratihar <[EMAIL PROTECTED]> Subject: syncronization display with the database data Hi All, I'm thinking of a servlet program which will the updated data whenever any data modification commited. Right now I'm thinking designing this thru jms , so that whenever an entity bean updates the data in the corresponding table, it sends a messages to the servlet or jsp, whatever may be useful. But can not find any way to resfresh the output in the browser. For example, If the browser is showing score board of cricket , whenever there is a change in scoreboard, display in the browser should be refreshed automatically. I don't want to do this refresh time bound. Pls suggest something. Whether this can be done in this way or some other way ? Thanks and Regards, sudarson __________________________________________________ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ =========================================================================== 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 the message "help". ----------------------------- Date: Tue, 6 Feb 2001 16:41:42 -0500 From: Jonathan Baker <[EMAIL PROTECTED]> Subject: Re: Why can't it be multiple delete method! Raj: That is also a good question! I'm not sure why, but I do think it is a hole in the specifications here. Jonathan Raj Sekhar wrote: > > Jonathan, > > Thanx for the reply. U r saying that remove method > will only applicable to one instance.. its well and > good But my question is... > > Why did not EJB specification provide any method which > deletes records based on a condition like a finder > method is taking a parameter and it is returning > Enumeration or Collection object. > > Thanx in advance > > Raj > > --- Jonathan Baker <[EMAIL PROTECTED]> wrote: > > That is because remove() operates on the particular > > instance. For example, > > in Entity beans, if you call remove() you will be > > deleting the specific > > entity on which it is called. Since you can't be > > talking to more than one > > instance at a time, you can't delete more than one > > at a time. > > > > If you want to have a 'mass deletion' routine, I > > would put it in a Session > > bean. That bean could take all of the parameters > > required for the delete, > > and then perform a delete as a single line of SQL. > > > > > > > > Jonathan Baker > > > > > > > > > > Raj Sekhar wrote: > > > > > > hi all, > > > > > > we have multiple finder methods, where u can have > > > multiple ejbObjects as the return type. And we > > have > > > remove method also in home interface, but if i > > want to > > > remove more than one bean from the container it's > > not > > > possible,since the specification did not mention > > > regarding that functionality. > > > > > > my question is.. > > > > > > What could be the problem if they defined multiple > > > delete methods in the Home interface? Is that a > > > performance issue or any design stratagy? > > > > > > thanx in advance > > > > > > bye > > > > > > Raj > > > > > > __________________________________________________ > > > Get personalized email addresses from Yahoo! Mail > > - only $35 > > > a year! http://personal.mail.yahoo.com/ > > > > > > > > > =========================================================================== > > > 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 > > the message "help". > > > > -- > > Jonathan Baker > > > > Senior Architect > > Internet Applications Division > > Sybase, Inc. > > > > [EMAIL PROTECTED] > > +1 510 922-0460 > > > > > =========================================================================== > > 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 the > > message "help". > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great prices. > http://auctions.yahoo.com/ > > =========================================================================== > 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 the message "help". -- Jonathan Baker Senior Architect Internet Applications Division Sybase, Inc. [EMAIL PROTECTED] +1 510 922-0460 ----------------------------- Date: Thu, 8 Feb 2001 07:49:26 IST From: siva d <[EMAIL PROTECTED]> Subject: <No subject given> Hi, Im a novice as far as EJB is concerned ,I have developed a CMP bean for validating login details.I have compiled the jar file and xml files.Im using weblogic server for deployment. The bean persistent information is stored in cloudscape DB.I have included the connection pool also in weblogic.properties file. When i try to deploy it comes up with a error saying bean field and dbms field are not in sync'.But i find every thing to be same. Could anyone help me out of this.Thanks in advance. Regards, Siva ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 ----------------------------- Date: Mon, 5 Feb 2001 11:47:41 +0530 From: chittaranjanp <[EMAIL PROTECTED]> Subject: EJB Object and Session Object Hi, Can anyone explain me what exactly is session object and what is the similarity or dissimilarity of Ejb object with session object . What exactly is meant by the identity of an object within the context of session objects? isIdentical() is used to get this info. Regards Chitta =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 20:23:39 -0800 From: Hariharan N <[EMAIL PROTECTED]> Subject: META-INF When I try to create a directory named META-INF in all capitals in Windows NT it automatically changes to Meta-inf ie. small letters. Does the specification for making the Jar file needs META-INF inall capitals! ----------------------------- Date: Thu, 8 Feb 2001 10:08:01 +0530 From: Koppala G Reddy <[EMAIL PROTECTED]> Subject: Re: META-INF no problem u can leave that and proceed for other work ----------------------------- Date: Thu, 8 Feb 2001 10:08:47 +0530 From: Anindya Chaudhuri <[EMAIL PROTECTED]> Subject: Re: Help me !! Check in site http://www.wc3.org Hope you will get good documents there. Anindya ----- Original Message ----- From: "manishi tuli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 8:10 PM Subject: Re: Help me !! > can u give any idea about xml book online > i have to use xml with java in my project > thanks in advace > Manishi > > >From: "Rahman, Zahid" <[EMAIL PROTECTED]> > >Reply-To: A mailing list for Enterprise JavaBeans development > ><[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: Re: Help me !! > >Date: Wed, 7 Feb 2001 11:02:12 -0000 > > > >The link you are looking for > > > >http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/ > > > > > -----Original Message----- > > > From: Francesco Marchioni [SMTP:[EMAIL PROTECTED]] > > > Sent: Wednesday, February 07, 2001 10:30 AM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Help me !! > > > > > > Hi Thakur, > > > I took a look around Sun site's EJB section but I couldn't find the book > > > you > > > mentioned > > > (I just found drafts, specifications etc.). Can you provide the exact > >link > > > to it? > > > thanks a lot > > > Francesco > > > > > > ----- Original Message ----- > > > From: Thakur Sanjay Kumar ,DYM(EM1). <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Wednesday, February 07, 2001 10:23 AM > > > Subject: Re: Help me !! > > > > > > > > > > Sun site has an excellent online book by Ms Monica Pawlan > >(java.sun.com) > > > on > > > > EJB. > > > > thanks > > > > > > > > > ---------- > > > > > From: Srinivas K. R.[SMTP:[EMAIL PROTECTED]] > > > > > Reply To: A mailing list for Enterprise JavaBeans development > > > > > Sent: 08 February 2001 00:46 > > > > > To: [EMAIL PROTECTED] > > > > > Subject: Help me !! > > > > > > > > > > Hi > > > > > I am working on Servlets and interested in learning EJB. > > > > > Read some book but sill do not have a good hold on EJB. > > > > > I want to know is there any site which give me some working code or > > > > > Examples > > > > > of EJB. > > > > > I am looking for an example which covers every thing in EJB like > > > > > The complete cycle , i.e > > > > > A client program talking to Session bean and the session bean > >talking > > > to > > > > > Entity bean and then the value stored in to database. > > > > > > > > > > A client(JSP) --> Some Business logic(Session Bean)----->( Insert > > > Data) > > > > > Entity Bean---> Database > > > > > > > > > > I know i am asking for too much..))))) > > > > > > > > > > Regards > > > > > Srini > > > > > > > > > > > > > > >========================================================================== > > > > > = > > > > > 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 the message "help". > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------- > > > > CONFIDENTIALITY/PROPRIETARY NOTE. > > > > The document accompanying this electronic transmission > > > > contains information from Maruti Udyog Limited, which is > > > > confidential, proprietary or copyrighted and is intended > > > > solely for the use of the individual or entity named on > > > > this transmission.If you are not the intended recipient, > > > > you are notified that disclosing, copying, distributing or > > > > taking any action in reliance on the contents of this > > > > information is strictly prohibited.This prohibition includes, > > > > without limitation, displaying this transmission or any portion > > > > thereof, on any public bulletin board.If you are not the > > > > intended recipient of this document, please return this > > > > document to Maruti Udyog Limited immediately. > > > > ------------------------------------------------------------------- > > > > "Please visit us at http://www.marutiudyog.com". > > > > > > > > > > > > >========================================================================== > > > = > > > > 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 the message "help". > > > > > > > > > > > >========================================================================== > > > = > > > 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 the message "help". > > > >=========================================================================== > >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 the message "help". > > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > =========================================================================== > 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 the message "help". > > ----------------------------- Date: Wed, 7 Feb 2001 23:47:02 -0500 From: Tim Endres <[EMAIL PROTECTED]> Subject: Re: META-INF > When I try to create a directory named META-INF in all capitals in Windows > NT it automatically changes to Meta-inf ie. small letters. Does the > specification for making the Jar file needs META-INF inall capitals! I believe that if you look more closely, say with Properties or the DIR command, you will see that it is only Explorer that is displaying the titlized name, and that the file system is preserving the capitals. Is the directory showing up titlized in the JAR file? Finally, if you point jar to the manifest file with the -m option, it will create the META-INF directory for you. tim. ----------------------------- Date: Fri, 5 Jan 2001 12:28:22 +0530 From: Rajesh Thiharie <[EMAIL PROTECTED]> Subject: CORBA problems Folks I have taken an existing servlet web application that is running on Apache-Jserv and set it up on an app server. It uses CORBA to connect to naming service. The servers are written in C++ and the clients are servlets. On running the app on an app server the following errors show up. java.lang.NullPointerException at CorbaConnection.getObjectUsingNamingService(CorbaConnection.java:159) at ADPCorbaConnect.getCorbaObject(ADPCorbaConnect.java:297) at ADPCorbaConnect.connectToCorbaServer(ADPCorbaConnect.java:313) at ADPCorbaConnect.loadCorbaServers(ADPCorbaConnect.java:118) at Login.init(Login.java:40) at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java :687) at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja va:625) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav a:573) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:29 5) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java :204) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo ntext.java:11 27) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java :1529) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) Can anyone help?? TIA Rajesh -- Si minor plus est ergo nihil sunt omnia =========================================================================== 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 the message "help". ----------------------------- Date: Wed, 7 Feb 2001 21:53:23 -0800 From: Hariharan N <[EMAIL PROTECTED]> Subject: Re: META-INF Yes, with Properties and DOS dir command it is fully captialized. I opened the jar file using WinZip which directly shows the files in the meta-inf folder with the path in all lowercase. How to list the folders present in jar files and finally a little more on the last manifest point! Thanks! At 11:47 PM 2/7/01 -0500, you wrote: >> When I try to create a directory named META-INF in all capitals in Windows >> NT it automatically changes to Meta-inf ie. small letters. Does the >> specification for making the Jar file needs META-INF inall capitals! > >I believe that if you look more closely, say with Properties or the DIR >command, you will see that it is only Explorer that is displaying the >titlized name, and that the file system is preserving the capitals. > >Is the directory showing up titlized in the JAR file? > >Finally, if you point jar to the manifest file with the -m option, it >will create the META-INF directory for you. > >tim. > >=========================================================================== >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 the message "help". > ----------------------------- Date: Wed, 7 Feb 2001 22:27:41 -0800 From: Thik Hain <[EMAIL PROTECTED]> Subject: Dependent Objects support Hi, I want to know which all vendors are planning to provide / or have provided support for dependent objects ? I am developing an application which involves many dependent objects. Is there going to be any major change in CMP entity beans component contract in EJB 2.0, and in the dependent objects ? When is SUN releasing the final draft for EJB 2.0 ? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ----------------------------- Date: Thu, 8 Feb 2001 12:48:41 +0530 From: "Sampathkumaran, Ramkumar (CTS)" <[EMAIL PROTECTED]> Subject: Threading delegate in EJB Hi, I would like to know whether threading can be done by a normal class in a EJB server which will be called by a bean. For eg: I have to retrieve around 2000 rows each from 10 different tables and aggregate them and send it to the client. So instead of sequentially accessing each table, can i write a class A which implements Runnable and spawns ten threads for acessing each table and aggregating the values(to be passed to the bean which will pass it to the client)? Does this violate the EJB specs or is an acceptable workaround? Regards, Ramkumar This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ----------------------------- Date: Thu, 8 Feb 2001 12:34:12 +0530 From: "Chidambara, Vinoth (CTS)" <[EMAIL PROTECTED]> Subject: Error while invoking rollback method Hai, Am using weblogic 5.1.Database sybase sql server. Trying for BMT(Bean Managed Transaction) stateless session bean I got a UserTransaction like this(Am i right) try{ tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); a.method1();//which do some database operation b.method2();//which do some database operation tx.commit(); } catch(Exception e){ try{ tx.rollback(); } catch(Exception ex){ System.out.println("Exception in rollback"+ex); } System.out.println("Exception in lookup"+e); } a.method1()---> succedds in database operation b.method2()---->throws Exception inorder to rollback Even though I throw exception in b.method2(),a.method1() is not rollbacking Am getting exception like this: Exception in rollbackjava.lang.IllegalStateException: There is no transaction associated with this thread Exception in lookup javax.transaction. TransactionRolledbackException: Transaction: '963124471576_1' rolled back due to EJB exception: javax.ejb.EJBException at com.bank.bciticorp.BCitiBankBean.deposit(Compiled Code) at com.bank.bciticorp.BCitiBankBeanEOImpl.deposit(BCitiBankBeanEOImpl.ja va:56) at com.bank.bglobal.BGlobalBean.transferSTtoCT(BGlobalBean.java:55) at com.bank.bglobal.BGlobalBeanEOImpl.transferSTtoCT(BGlobalBeanEOImpl.j ava:56) at com.bank.bglobal.BGlobalBeanEOImpl_WLSkel.invoke(BGlobalBeanEOImpl_WL Anyone help in this regard. Thanks in advance. Regards, Vinoth.C This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ----------------------------- End of EJB-INTEREST Digest - 6 Feb 2001 to 7 Feb 2001 (#2001-39) **************************************************************** ------------------------------ Date: Thu, 8 Feb 2001 11:51:38 +0000 From: [EMAIL PROTECTED] Subject: Offtopic : billion doller idea free Hi All! I am very much inspired by the JCP (Java Community Process), OpenSource software and free Knowlege available on the Internet through news groups, mailing lists. It is my time, to contribute my first idea to Internet community for free. Please visit http://www.mpayee.com/billion.html to view my idea, on new Payment model which has won me (and my team), first prize at www.waphothouse contest conducted by Nokia. I am sure if this model is, implemented properly, (probably by www.paypal.com like payment service provider) can boost up the Celluar Industry and would become the killer application for wap/i-mode enabled cell phones. I could not disclose this, immediately after the contest as I had NDA with Nokia till Jan 31, 2001 Rough Prototype of the product was developed using JSP/Servlets with HTML and WML outputs. I will be very glad to share more details in responce to your personal mail to me. Regards, Raja Nagendra Kumar, Technical Manager, www.sify.com ------------------------------ Date: Thu, 8 Feb 2001 09:53:45 -0800 From: Gene Chuang <[EMAIL PROTECTED]> Subject: Re: NoClassDefFoundError Put both jars in the the same ear Gene ----- Original Message ----- From: "ejbjaggi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 08, 2001 8:01 AM Subject: NoClassDefFoundError > Hi > > I am using Weblogic 6.0 to deploy Entity Beans and Session beans using EJB 1.1 specs. > > After deploying them, when I try to call an Entity bean from a Session bean, I get a NoClassDefFoundError. But when I add the Entity Bean JAR file to the weblogic classpath in the startWeblogic.cmd file, the error vanishes. > > Is there any way to overcome this error without adding all the JAR files to the weblogic classpath. > > Thanks in Advance > Jagdish > > > > ---------------------------------------------------------- > Register Chinese Character Domain Name- ONLY US$17/year! > 100 Chinese Domain Names are registered every minute! > Time is clicking, what are you waiting for? > Go to http://www.chinese-dns.com Register NOW!!! > > Verisign¤¤¤å³»¯Å°ì¦W²{¦b¼ö½æ¤¤¡T > ¨C¤ÀÄÁ³£¦³100Ó¤¤¤å°ì¦W³Qµù¥U¡M±zÁÙ¦bµ¥¤°»ò©O¡S > ¨CÓºô§}¬üª÷17¤¸/¦~¡T²{¦b´N¨ì http://www.chinese-dns.com µù¥U¡T > > =========================================================================== > 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 10:23:42 -0800 From: Bobby Woolf <[EMAIL PROTECTED]> Subject: Re: Session beans as Facade to entity beans Heiko, In our FoodSmart example (http://www.JavaSuccess.com), we demonstrate a few techniques to help with this problem. First, agreeing with what you've said, we recommend that clients not access domain objects directly, that they go through service objects. In EJB, this means that EJB clients should not access entity beans directly, but rather should go through session beans. Second, we recommend that the service objects should encapsulate use cases that the clients need to perform. These tasks are usually rather broad, not fine-grained. So you shouldn't need to duplicate your entity beans getters and setters in the session beans. You should tell the session bean what you want done and let it do it. Third, for manipulating the state of domain objects, we recommend two patterns: Identity Holder and State Holder. Identity Holder is for presenting a large list of domain objects to the user and allowing him to select one. State Holder is for presenting the user a manageable amount of a domain object's state and relationship graph. In some use cases, the user will use the client to modify the state holder's state, then pass it back to the server for processing within a short transaction. The service object will use the changes in the state holder to make corresponding changes to the original domain object. This enables all of the changes to be made in one client/server round trip and doesn't require that the domain object's getters and setters be exposed to the client. (The state holder's getters and setters are exposed to the client, but those are often different from the domain object's.) This should get you going on the right track. Good luck. Bobby ----- Bobby Woolf Senior Architect GemStone Systems, a Brokat company [EMAIL PROTECTED] -----Original Message----- From: Heiko Gottschling [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 07:51 To: [EMAIL PROTECTED] Subject: [EJB-INT] Session beans as Facade to entity beans Hi, it seems to be commonly agreed that clients should not directly access entity beans, but use session beans as Facade (=design pattern). This works fine as long as the entity beans are accessed via "bulk accessors" (aka value objects). However, if the client needs to access the entities at a more fine-grained level, this approach gets soon unhandy, since all accessor methods of the entity bean have to be duplicated in the session bean. Let's say, the entity bean has some methods: public class MyEntity { public Vector getA(); public Vector getB(); } then, the session bean would have to look like this: public class MySession { public Vector getA(Object myEntityPrimaryKey) { ... } public Vector getB(Object myEntityPrimaryKey) { ... } } This means, all accessor methods of the entity bean have to be duplicated in the session bean, which I don't see much sense in (?). My questions: 1) What's so bad about letting the clients access the entities directly? 2) Using the Facade pattern, is there any better way of providing fine-grained access for the client? thx Heiko P.S. In my case I can't use bulk accessors effectively, since the entities contain some complex attributes like Vectors and tree-like structures, and I would end up sucking the entire database into my bulk accessor object if I tried to resolve all these attributes =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 10:38:30 -0500 From: Jim Archer <[EMAIL PROTECTED]> Subject: Does anyone know the status of EJB 2.0 spec? Hi All... I'm hopeing some knowledgable soul can enlighten me. Lately, I have read various places that the EJB 2.0 final spec is being delayed due to something about the CMP model in the PFD. Now, with the release of J2EE RI beta, Sun said something to this effect as well. Could someone please summerize the nature of the issue? Also, does anyone know if there is any target timeframe for solving the controversy (if there is one) and releasing a final spec? Thanks very much! Jim ------------------------------ Date: Thu, 8 Feb 2001 16:56:42 +0100 From: Jose =?ISO-8859-1?Q?Gonz=E1lez=20G=F3mez?= <[EMAIL PROTECTED]> Subject: Re: Calling session bean method from servlet Could you post a complete stack trace of your error? Maybe that could give us a liitle more information... Sumit Mishra wrote: > Hi, > > I am facing a rather strange problem. > I have a payments class(serializable) with 4 attributes(private with getter > and setter methods), 1 String,2 ints and 1 float. In PayServlet, i am > instantiating payments class and and adding the payments object to > allPayments vector. Then i am making an enumeration out of this vector. > Payment session bean (stateless) has a business method payBatch which > accpets enumeartion as the only argument and return boolean. > When i call payBatch method from PayServlet, at run time, it gives me a > ClassCastException. I have tried it with vector but no use. I also tried > with passing an array of Payments object but no help. > If i pass individual Payments object, it works. > But my requirement is such that i have to pass collection of payment objects > and not individual objects. > As far as i know EJB specs, there is nothing like this mentioned there. > > Can anybody give me a clue or possible solutions? > > Thanx in anticipation. > > Regards, > Sumit Mishra > mailto:[EMAIL PROTECTED] > http://www.cash-tech.com/ > > =========================================================================== > 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 the message "help". > ------------------------------ Date: Thu, 8 Feb 2001 15:54:57 -0000 From: John Harby <[EMAIL PROTECTED]> Subject: Re: Threading delegate in EJB Wrong link - it's http://castor.exolab.org >From: [EMAIL PROTECTED] >Reply-To: A mailing list for Enterprise JavaBeans development ><[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Threading delegate in EJB >Date: Thu, 8 Feb 2001 09:34:34 +0100 > >1 - In the EJB specification : you cannot have threads in EJB !!!! > >2 - Why ? > >Hum, for some purpose, it is stupid, because in some case we want to have >several transactional context and parellel processing in EJB !!!! >But it is not a good practice. > >Some (If not all) EJB servers manage their own threads and transactional >context. If you create some thread you will face some problems because >your thread need some synchronisation with EJB server threads !! > >3 - What you can do ? > >I think that EJB are good for e-commerce, with high transactional context >between client and server, but If you want to manage another transactional >context and access to DB, create a simple JDBC connection, or create >another connection pool ! Or reuse your connection pool to get a new >connection >and work with that. > >Take a look at castor.exolab.com which is a JDO (Not compatible with SUN >JSR, but sometimes better). > >Hope it help > >Christophe > > > > > "Sampathkumaran, > Ramkumar (CTS)" To: >[EMAIL PROTECTED] > <[EMAIL PROTECTED] cc: > IZANT.COM> Subject: Threading >delegate in EJB > Sent by: A mailing > list for > Enterprise > JavaBeans > development > <EJB-INTEREST@java > .sun.com> > > > 02/08/01 08:18 AM > Please respond to > A mailing list for > Enterprise > JavaBeans > development > > > > > >Hi, >I would like to know whether threading can be done by a normal class in a >EJB server which will be called by a bean. > >For eg: I have to retrieve around 2000 rows each from 10 different tables >and aggregate them and send it to the client. >So instead of sequentially accessing each table, can i write a class A >which >implements Runnable and spawns ten threads for acessing each table and >aggregating the values(to be passed to the bean which will pass it to the >client)? > >Does this violate the EJB specs or is an acceptable workaround? > > > Regards, >Ramkumar > >This e-mail and any files transmitted with it are for the sole use of the >intended recipient(s) and may contain confidential and privileged >information. >If you are not the intended recipient, please contact the sender by reply >e-mail and destroy all copies of the original message. >Any unauthorised review, use, disclosure, dissemination, forwarding, >printing or copying of this email or any action taken in reliance on this >e-mail is strictly >prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > >=========================================================================== >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 the message "help". > >=========================================================================== >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 the message "help". > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com ------------------------------ Date: Thu, 8 Feb 2001 11:06:21 -0800 From: Bobby Woolf <[EMAIL PROTECTED]> Subject: Re: Create methods (and constructors generally) Dave, In our FoodSmart example (http://www.JavaSuccess.com), we demonstrate a technique for handling this problem. These patterns mostly apply to domain objects; they tend not to apply to EJB's because they have their own techniques for homes to handle instance creation. As you pointed out, Java objects really like to have zero-argument constructors, so we provide one of those for each class. We may also provide multiple-argument constructors for convenience. However, we find constructors that throw exceptions problematic and tend to avoid those. This limits how much work a constructor can really do and how useful they really are. Thus we often just implement the zero-argument constructor and it does little more than call the super-implementor. We may make the constructor(s) protected because we don't expect them to be used by clients, but they can be called by subclasses. None of that solves your problem, though. What does is that we also implement several static methods called new<ObjectType> with different numbers/types of parameters that all return an instance of the class. Each one throws our CouldNotInstantiateException. The ObjectType is the same as the class' type, which for most purposes can just be the class. Different implementors accept different parameters. Each implementor is designed to either return a valid instance with the parameters specified or to throw CouldNotInstantiateException. Each static new<ObjectType> instantiator delegates the heavy lifting of setting the new instance to a valid state using instance methods, either initialize() (no parameters) or initializeWith(<parameters>). Because these are instance methods, their implementations will automatically be inherited, unlike static methods. If an initialize method fails, it throws our own CouldNotInitializeException, which the instantiator can catch and transform into CouldNotInstantiateException. So with one simple zero-argument constructor and several static new<ObjectType> methods, you can be Java compliant and still use instantiators that produce valid instances. If you download the FoodSmart example, I suggest you take a look at the com.gemstone.gps.egrocer.domain classes like Food, GroceryChainCustomer, and Category. Bobby ----- Bobby Woolf Senior Architect GemStone Systems, a Brokat company [EMAIL PROTECTED] -----Original Message----- From: Dave Ford [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 00:33 To: [EMAIL PROTECTED] Subject: [EJB-INT] Create methods (and constructors generally) As part of my object oriented education, I was taught that the purpose of the constructor is to initialize the object into an "valid state". So, for example, take an object of type Person that has 3 instance variables: Person firstName lastName status Of these three instance variables, 2 can be considered "required" (firstName,lastName) and 1 will have a default value (status="active"). Thus, Person might have a 2-arg contructor like this: public Person(String firstName,String lastName){ this.setFirstName(firstName); this.setLastName(lastName); this.setStatus("active"); } My question is this: 1. Are people actually following this theory? 2. Doesn't the JavaBeans (non-ejb) requirement for a zero arg construcotr kill this idea? 3. In EJB (where ejbCreate actually allows arguments) are people using this startegy? 4. Say you have an ejb with 25 instance variables, 5 of which have reasonable default values, would you create an ejbCreate method with 20 arguments? Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 17:03:33 -0300 From: Claudio Miranda <[EMAIL PROTECTED]> Subject: Re: NoClassDefFoundError I got my ejbs running this form, very ugly but no one in news.bea got better answer, if you find it, send to me. -- Claudio Miranda ___________________________________ ejbjaggi wrote: > > Hi > > I am using Weblogic 6.0 to deploy Entity Beans and Session beans using EJB 1.1 specs. > > After deploying them, when I try to call an Entity bean from a Session bean, I get a NoClassDefFoundError. But when I add the Entity Bean JAR file to the weblogic classpath in the startWeblogic.cmd file, the error vanishes. > > Is there any way to overcome this error without adding all the JAR files to the weblogic classpath. > > Thanks in Advance > Jagdish ------------------------------ Date: Thu, 8 Feb 2001 11:29:31 -0800 From: Bobby Woolf <[EMAIL PROTECTED]> Subject: Re: ??SessionBean to Manage Relation between Entity Bea n Moodad, I think the answer depends on the nature of the new relation you're adding. Is the new relationship part of the domain model, such that any user looking at the domain model would expect it to be there? If so, then the domain objects should be modified to add the relationship. This means updating the entity bean classes and the corresponding database tables. For example, if AccountOwner and Account are domain objects, the relationship between an AccountOwner and his Account should be stored in the domain. Is the new relationship an artifact of a particular new way that a user can manipulate the domain, such that other users don't need the relationship? If so, then the relationship should be stored in the code manipulating the domain and will ultimately have to be provided by the user. This means that the relationship is known by the session beans, not the entity beans. For example, if an AccountOwner says to transfer money from one of his Accounts to another, the relationship between the AccountOwner and his Accounts is part of the domain; but the relationship between the account to transfer from and the account to transfer to is known by the service and must ultimately be specified by the user. So the answer is: It depends. Good luck. Bobby ----- Bobby Woolf Senior Architect GemStone Systems, a Brokat company [EMAIL PROTECTED] -----Original Message----- From: SoftFrance MOODAD Shadi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 09:08 To: [EMAIL PROTECTED] Subject: [EJB-INT] ??SessionBean to Manage Relation between Entity Bean Hi everybody I'm trying to map database to object and i'm creating for each table a ContainerManaged EntityBean and i implement the relation as cmr field * but what if -in futur time- i need to implement another relation, what if I implement it using a session bean, rather than updating the EntityBean,does that cause a problem * Can a manage transaction manualy from inside a SessionBean, so I can do multiple operation on entities like a single operation so when I finish I commit or I rollBack =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 11:24:36 -0800 From: Corey Jackson <[EMAIL PROTECTED]> Subject: Free Online Seminar on EJB: BMP v. CMP SilverStream is giving another free online seminar. February 15th at 1PM. The topic this time is Introduction to EJB, Part II: Bean-Managed vs. Container-Managed Persistence. It's a good teaching format and you can ask questions live. You need to register to attend. Go here to register: http://www.silverstream.com/onlineseminars -Corey Jackson _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ ------------------------------ Date: Thu, 8 Feb 2001 11:45:40 -0800 From: Bobby Woolf <[EMAIL PROTECTED]> Subject: Re: ??SessionBean to Manage Relation between Entity Bea n Loïc, I both agree and disagree with your response to Shadi. With EJB 1.1 CMP, about all entity beans are good for is modeling your database schema, one class per table. Maybe this will improve in EJB 2.0. On the other hand, modeling your domain as a set of simple relational objects is a terrible use of the object-oriented paradigm that Java embodies. You should model your domain based on business entities and use cases, not on the storage requirements of relational databases. The problem is how to take a rich OO domain and map it into a relational database. Such O/R mapping is really difficult and entity beans don't help very much; at best, you have to resort to a lot of BMP code. You either need to spend a lot of time trying to get it to work with an O/R mapping tool like Cocobase or TopLink, and accept the inevitable runtime performance hit. Or you need to use an object database like Versant or GemStone/J's PCA (persistent cache architecture). Better yet, use an application server which is both an EJB container and provides object persistence. I only know of one such product: GemStone/J. I think that's a fair summarization of technology best practices and marketplace realities. Bobby ----- Bobby Woolf Senior Architect GemStone Systems, a Brokat company [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 09:21 To: [EMAIL PROTECTED] Subject: Re: [EJB-INT] ??SessionBean to Manage Relation between Entity Bean Shadi, First of all to define entity beans for each database table you have is a pretty bad approach (the least I can say). The need for entity beans must come from your problem analysis and not from your DB model. Try to isolate your objects from your db with views for example and Data Access Objects (see Sun blueprints or pet store application). For the second point, the answer is yes but you can achieve the same goal with CMT. Loïc > ---------- > From: SoftFrance MOODAD Shadi[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list for Enterprise JavaBeans development > Sent: Tuesday, February 06, 2001 15:08 > To: [EMAIL PROTECTED] > Subject: ??SessionBean to Manage Relation between Entity Bean > > Hi everybody > > I'm trying to map database to object and i'm creating for each table a > ContainerManaged EntityBean and i implement the relation as cmr field > > * but what if -in futur time- i need to implement another relation, > what if I implement it using a session bean, rather than updating > the EntityBean,does that cause a problem > > * Can a manage transaction manualy from inside a SessionBean, so I > can do multiple operation on entities like a single operation so > when I finish I commit or I rollBack > > ========================================================================== > = > 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 the message "help". > =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 13:07:52 -0800 From: Bobby Woolf <[EMAIL PROTECTED]> Subject: Re: Entity beans, clistering and scalability Ken, You're right, the EJB spec does not specify how (or even if) an EJB container should provide load balancing for multiple EJB clients. Many EJB container products use clustering, but traditional clustering is not the only way for an EJB container to achieve load balancing. GemStone/J provides load balancing in a way that doesn't burden the deployment environment with the difficulties of clustering and gateways, a way that is transparent to the EJB provider, deployer, and client. Here's how that works in GemStone/J. <vendor> GSJ has what we call Extreme Clustering, which can be thought of as VM pooling. It's like session bean pooling, where a client is given a bean that's available. When the client is finished, the bean is returned to the pool and can be reused by another client. The size of the pool grows and shrinks dynamically based on load to maximize performance while minimizing resource consumption. In GSJ, the server can start up as many VMs as the hardware can support, but only starts up as many as it needs to support the current load. This pool of VM's is managed by the Activator, a service that is built into the GSJ container and automatically used once you install GSJ. GSJ also performs what we call Smart Load Balancing. The Activator monitors each VM's load; it starts or stops VMs when necessary to control the size of the pool. When an EJB client request is made on the GSJ container, GSJ passes the request to the Activator. The Activator picks the best VM for the job--based on each VM's load, the nature of the request, each VM's existing resources such as pooled beans, etc.--and delegates the request to that optimal VM. The VM then uses a server bean to fulfil the request in the normal EJB way. If no VM is optimal because load is too high, then the Activator will start more VMs. This Extreme Clustering and Smart Load Balancing works across a network of server computers and is especially ideal for large server computers like a Sun E10000. Most app servers only start up a fixed number of VMs and have difficulty doing so with a limited number of VMs and IP addresses, so they only use a limited amount of the computer's capacity, which leaves unused capacity yet constrains scalability. In such a configuration, buying a larger box won't increase scalability, it just increases unused capacity. With GSJ, the number of VMs is unlimited by the app server, so the pool can grow to use all of the computer's resources. If you buy a larger box, you'll have more computer resources for more VMs which will give you more scalability. Note that all of this is totally EJB compliant and happens within the EJB container. Your EJB client code just requests a standard EJBean from an EJB home and uses it like normal. Both your bean and client code are totally unaware of the pool of VMs and the load balancing. Yet your code is suddenly much more scalable than it might otherwise be. </vendor> Now to answer your questions: > 1. What controls it? Is there some piece of gateway > software that negotiates where to go in the cluster? Many other products require a gateway between the clients and the server cluster to distribute the load, but GSJ does not; the GSJ "gateway" (aka the Activator) is built in. All EJB containers intercept client requests to control security, transactions, acquire beans from pools, etc. GSJ, in addition to all that, determines which of the available VMs would be best to use and therefore balances (not just distributes) the load in the process. All of this is completely transparent to the EJB client code, provider code, and deployment mechanism. > 2. IN a cluster, is there always only one instance > of an entity bean for a given row? This is vendor specific. A single bean could somehow be shared, or a single bean per CORBA orb, or each request could get its own bean copy. The spec allows a single entity bean to be shared, but only one transaction can go through a bean at a time. The most problematic issue with sharing an entity bean is the possibility of write-write conflicts, so the "only one transaction at a time" rule prevents such a conflict in the bean. At the end of the transaction, the bean must be stored and reloaded, the details of which are container and database specific. Thus the write-write conflicts occur not in the entity bean, but in the database (relational, object, flat file, whatever). So EJB sidesteps these concurrency issues and delegates them to the database. > 3. If 2 is answered yes, doesn't this imply, since the EJB spec says nothing > about load balancing, that the spec and entity beans in general are non-calable? > That is, multiple clients uisng multipel appservers in a cluster still need > somehow to go to the same instance in one apps erver instance. That doesn't > sound very scalable. In that case, clustering sounds pretty meaningfless, and > claimns that EJBs are scalable would seem not to apply to entity beans. You could be right, depending on the container's implementation. If hundreds of clients were manipulating the same row of data at the same time, and if the container would only create one entity bean instance for that row of data, then the entity bean would become a bottleneck for those clients, no matter how many VMs you have and how they're clustered. This is why most container products won't do this. They'll create multiple entity bean instances for the same row of data and at least attempt to spread the client load across those instances. This moves the bottleneck from the entity bean(s) to the row of data inside the database. Presumably the database is prepared to handle all of this concurrency with efficient locking mechanisms and caching so that the database does not become a bottleneck either. I hope that answers your questions. Bobby ----- Bobby Woolf Senior Architect GemStone Systems, a Brokat company [EMAIL PROTECTED] -----Original Message----- From: Kenneth D. Litwak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 20:07 To: [EMAIL PROTECTED] Subject: [EJB-INT] Entity beans, clistering and scalability Since the EJB spec says nothing so far as I kno2 about load balancing, vendors have beenleft to their own devices. Their solutions have all revolved around clustering to my knowledge, which could be incorrect. I have a few questions about clustering then. 1. What controls it? Is there some piece of gateway software that negotiates where to go in the cluster? 2. IN a cluster, is there always only one instance of an entity bean fora given row? 3. If 2 is answered yes, doesn't this imply, since the EJB spec says nothing about load balancing, that the spec and entity beans in general are non-calable? That is, multiple clients uisng multipel appservers in a cluster still need somehow to go to the same instance in one apps erver instance. That doesn't sound very scalable. In that case, clustering sounds pretty meaningfless, and claimns that EJBs are scalable would seem not to apply to entity beans. Am I missing something in this? Thanks. Ken =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 13:15:25 -0800 From: Bobby Woolf <[EMAIL PROTECTED]> Subject: Re: Implementation of MVC (model-view-controller) in EJ B Sonika, One lengthly, but free, paper that talks about MVC in J2EE is the Sun J2EE Blueprints document (http://java.sun.com/j2ee/download.html#blueprints). Bobby ----- Bobby Woolf Senior Architect GemStone Systems, a Brokat company [EMAIL PROTECTED] -----Original Message----- From: Sonika Narula [mailto:[EMAIL PROTECTED]] Sent: Friday, December 08, 2000 06:39 To: [EMAIL PROTECTED] Subject: [EJB-INT] Implementation of MVC (model-view-controller) in EJB hi friends, i want to find out on MVC implementation in my EJB application. can anybody suggest good material on it. thx in advance, sonika ------------------------------ Date: Thu, 8 Feb 2001 16:11:22 -0500 From: "Tom Holmes Jr." <[EMAIL PROTECTED]> Subject: Orion and SQL Server 7.0 I am using Orion J2EE Server (from http://www.orionserver.com) and I want to create a data-source that will connect to a SQL Server 7.0 database. I got a free open source JDBC 2.0 driver from http://www.freetds.org/ and I am open to other SQL Server drives that are free or have no expiration data. If I can use 1 or 2 connections then that would be fine. Anyway, my Data Source looks something like this: <data-source class="com.evermind.sql.DriverManagerDataSource" name="TestSQL" location="jdbc/TestCoreDS" xa-location="jdbc/xa/TestXADS" ejb-location="jdbc/TestDS" connection-driver="com.internetcds.jdbc.tds.Driver" username="sa" password="" url="jdbc:freetds:sqlserver://my_server:1433/my_database" inactivity-timeout="30" /> And here is the code I am using to see if this works: import javax.sql.DataSource; import javax.naming.InitialContext; class TestSQL { public static void main (String args[]) { try { // Obtain connection InitialContext ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup("jdbc/TestDS"); Connection conn = ds.getConnection(); // Create query and get results Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT name FROM staff"); // List results while ( rs.next() ) { System.out.println( rs.getString("name") + "<br>"); } // Close connection - important! conn.close(); } catch(Exception e) { System.out.println("Error: " + e.getMessage() ); } } } The error I am getting is as follows: Error: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial I don't get this at all, so if anyone can be of any help, that would be great! In the meantime, I will keep plugging away. Thanks. Tom ------------------------------ Date: Thu, 8 Feb 2001 19:02:06 -0500 From: Jacob Nikom <[EMAIL PROTECTED]> Subject: Bug in the deploytool or a feature? Hi, I am working on the tutorial "Writing Enterprise Applications with Java 2 Platform, Enterprise Edition" by Monica Pawlan and doing "Lesson 2. A Simple Entity Bean"(the URL is: http://developer.java.sun.com/developer/onlineTraining/ J2EE/Intro/entity.html#10395). The tutorial is really great, very detailed and thorough. However, trying to set up deployment settings for the database JNDI name (just before "Generate SQL and Database Table" section) I found strange behavior of the deployment tool. The upper panel of the "Deployment Setting" dialog window is empty. According to the pictures in the tutorial, it should contain text fields for "Database JNDI Name", "User name" and "Password", but it has nothing. There is not way to specify the database name. The Cloudscape database started fine, so it should not be a problem. I have feeling that the JPanel object in deploytool GUI did not work properly. Is it known bug and do you have any idea what should I do in this case? Thank you, Jacob Nikom ------------------------------ Date: Thu, 8 Feb 2001 19:31:53 -0500 From: Dave Wolf <[EMAIL PROTECTED]> Subject: Re: EJB & Transactions This sounds like a bug to me on first glance. Please see EJB 1.1 spec section 11.6.1. My read is that if the client has a tx, and calls a stateless session, which starts a tx, the clients tx would be suspended. Therefore the commit of the beans user transaction should not force a rollback of the clients tx. This is firther clarified in Table 6 of 11.6.1 as: "If the client is associated with a transaction T1, and the instance is not associated with a trans-action, the container suspends the client's transaction association and invokes the method with an unspecified transaction context. The container resumes the client's transaction association (T1) when the method completes." Unless someone can show me another interpretation of this, I would consider your containers response a bug. Dave Wolf Internet Applications Division Sybase ----- Original Message ----- From: "Bhupesh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 08, 2001 11:05 AM Subject: EJB & Transactions > I have a stateless session bean that uses Bean Managed Transactions. It > makes calls to a series of other session beans that perform database > operations (INSERTS & UPDATES). All of these calls are made within the scope > of a UserTransaction. > > One of the beans that is called uses bean managed transactions and gets a > JDBC connection (via javax.sql.DataSource) from the server pool. It begins a > transaction, executes some sql and then commits the transaction. > > The issue I have is that as a result of this commit (in the called bean), > the UserTransaction started in the first bean is also committed. If I try to > rollback from the first bean it has no affect, all changes made by other > session beans are committed. Is this correct, or should the commit on the > second bean have no affect on the transaction running in the first bean? > > > > regards > > Bhupesh Wagjiani > GamCom Solutions Limited > [EMAIL PROTECTED] > > > **************************************************************************** *** > Any opinions expressed in this email are those of the individual and not necessarily those of GamCom Solutions Ltd (herein after "GamCom") and/or its subsidiaries. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from GamCom and/or its subsidiaries, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited; please notify us immediately and do not disclose, distribute, or retain this email or any part of it. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. GamCom and/or its subsidiaries reserve the right to monitor all email communications through their networks. > If you have received this email in error please notify GamCom by telephone on +44 (0)20 8838 5441 or via email to [EMAIL PROTECTED] , including a copy of this message. > **************************************************************************** *** > > =========================================================================== > 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 the message "help". > > ------------------------------ Date: Thu, 8 Feb 2001 19:36:10 -0500 From: Dave Wolf <[EMAIL PROTECTED]> Subject: Re: Threading delegate in EJB > 1 - In the EJB specification : you cannot have threads in EJB !!!! > > 2 - Why ? > > Hum, for some purpose, it is stupid, because in some case we want to have > several transactional context and parellel processing in EJB !!!! > But it is not a good practice. I disagree it is not stupid. (a) How do you intend in this multithreaded environment to maintain declarative transactional contexts? (b) How do you intend to maintain a quality of service for this transactional work without building a significant amount of framework (c) The role played by application containers and J2EE is that of allowing developers to develop business logic and not writing thread safe re-entrant code. > 3 - What you can do ? > > I think that EJB are good for e-commerce, with high transactional context > between client and server, but If you want to manage another transactional > context and access to DB, create a simple JDBC connection, or create > another connection pool ! Or reuse your connection pool to get a new > connection > and work with that. If you want parallel processing of components and you want this done in a transactionally aware fashion you should investiagte the use of messaging systems like JMS and the EJB 2.0 Message Driven Beans which allow you to create logical threads while maintining declarative transaction contexts and thus avoidingin the risk in trying to implement your own multi-threaded re-entrant code. Dave Wolf Internet Applications Division Sybase > > Take a look at castor.exolab.com which is a JDO (Not compatible with SUN > JSR, but sometimes better). > > Hope it help > > Christophe > > > > > "Sampathkumaran, > Ramkumar (CTS)" To: [EMAIL PROTECTED] > <[EMAIL PROTECTED] cc: > IZANT.COM> Subject: Threading delegate in EJB > Sent by: A mailing > list for > Enterprise > JavaBeans > development > <EJB-INTEREST@java > .sun.com> > > > 02/08/01 08:18 AM > Please respond to > A mailing list for > Enterprise > JavaBeans > development > > > > > > Hi, > I would like to know whether threading can be done by a normal class in a > EJB server which will be called by a bean. > > For eg: I have to retrieve around 2000 rows each from 10 different tables > and aggregate them and send it to the client. > So instead of sequentially accessing each table, can i write a class A > which > implements Runnable and spawns ten threads for acessing each table and > aggregating the values(to be passed to the bean which will pass it to the > client)? > > Does this violate the EJB specs or is an acceptable workaround? > > > Regards, > Ramkumar > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. > If you are not the intended recipient, please contact the sender by reply > e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, forwarding, > printing or copying of this email or any action taken in reliance on this > e-mail is strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > > =========================================================================== > 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 the message "help". > > =========================================================================== > 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 the message "help". > > ------------------------------ Date: Mon, 5 Feb 2001 10:10:40 +1030 From: David Bullock <[EMAIL PROTECTED]> Subject: Re: Reading LDAP data with EJBs When I was doing research on using LDAP some time ago now, I thought how neat it would be to be able to use LDAP like a database. However, the recommendations I came across always said that it was best to keep your primary data-store in a real RDBMS, and to replicate the information to your LDAP server, which was your way of distributing this information to the rest of the organisation. Assuming this to be a correct model, how do you force timely replication of this information when it changes? ( assume your DBMS and your LDAP server are not so tightly integrated as to provide this out of the box ). Some approaches suggest themselves: - if using Oracle as the DBMS, write an on-insert trigger in the relevant table(s) to propogate to the information to the LDAP server ( synchronous, I think ) - if using EJB 2.0, fire off a message to a messgae-driven-bean to perform the same update to the LDAP as was performed to the DBMS. ( asynchronous ) - if your application server supports plugging-in services via JNDI, you could delegate the update to your own RMI-exposed service ( synchronous or asynchronous at your leisure ). Just a different way of looking at the problem. Hope it helps... ( writing a JDBC driver is an interesting solution though ) regards, David. On Sun, 4 Feb 2001, Juan Lorandi (Chile) wrote: > José, have you ever considered to implement LDAP as a JDBC 2.0 driver? you > could there handle pooling, reuse > anything your want. > > > > Under this scenario it made sense for us to make some abstraction > > that would isolate us from LDAP and database access, and we thought of > > an entity bean representing our users. Keep in mind that we have also > > the application administrator role, that may change permissions for > > other users. Our entity bean provides us methods for all those things: > > asking for permissions, asking for relation between two employees, > > changing rights for an user,... > > > > Any thoughts about this? > > > > Regards > > Jose > > > > Ian McCallion wrote: > > > > > Jose González Gómez wrote: > > > > > >> I have an ejb named User that models an user interacting with my > > >> application. I need this as the actions this user may do in the > > >> application depend on his position in a directory I access > > through LDAP. > > >> I keep some info I need about the user in a database, as > > this info is > > >> not in the directory. This way the bean encapsulates all the needed > > >> access to LDAP and database. > > >> David Bullock LISAsoft Project Lead Sun Certified Programmer for the Java 2 Platform email: [EMAIL PROTECTED] mobile: +61 4 0290 1228 "The key ingredients of success are a crystal-clear goal, a realistic attack plan to achieve that goal, and consistent, daily action to reach that goal." Steve Maguire, "Debugging the Development Process". LISAsoft http://www.lisasoft.com/ Adelaide Sydney -------------------- ------------------------ 38 Greenhill Rd Level 3, 228 Pitt Street Wayville S.A. 5034 Sydney NSW 2000 Australia Australia PH +61 8 8272 1555 PH +61 2 9283 0877 FAX +61 8 8271 1199 FAX +61 2 9283 0866 -------------------- ------------------------ =========================================================================== 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 the message "help". ------------------------------ Date: Thu, 8 Feb 2001 16:55:50 -0800 From: "Jonathan K. Weedon" <[EMAIL PROTECTED]> Subject: Re: Entity beans, clistering and scalability Bobby Woolf wrote: > > <vendor> > This Extreme Clustering and Smart Load Balancing works across a network of > server computers and is especially ideal for large server computers like a > Sun E10000. Most app servers only start up a fixed number of VMs and have > difficulty doing so with a limited number of VMs and IP addresses, so they > only use a limited amount of the computer's capacity, which leaves unused > capacity yet constrains scalability. In such a configuration, buying a > larger box won't increase scalability, it just increases unused capacity. > With GSJ, the number of VMs is unlimited by the app server, so the pool can > grow to use all of the computer's resources. If you buy a larger box, you'll > have more computer resources for more VMs which will give you more > scalability. > </vendor> Bobby, <vendor> I am hard-pressed to believe your statement: "Most app servers only start up a fixed number of VMs ... so they only use a limited amount of the computer's capacity, which leaves unused capacity yet constrains scalability." In my experience, it is very much possible to load a fully configured Sun E10000 with only 2-3 VMs. In fact, in my experience, running more than 2-3 VMs on an E10000 actually reduces total throughput, due to the extra context-switching and/or memory contention overhead. We have a performance tuning paper which illustrates this point. The scalability of a single VM is achived by multi-threading. You seem to be suggesting that scalability is only possible with multi-processing. Although I agree with you that 2-3 years ago, the threading capabilities of most VMs was poor enough that you had to resort to multi-processing to scale your Java code, today this is very much achievable by multi-threading, which is typically also a much better way to scale, in terms of system resource utilization. I am wondering if your performance results are up-to-date, or perhaps reflect the limitations of VMs and/or threading libraries of a few years ago. Again, today we (and probably most others) are able to scale very well with only 2-3 VMs per box. </vendor> -jkw ------------------------------ Date: Thu, 8 Feb 2001 14:47:20 -0800 From: Jeff Schnitzer <[EMAIL PROTECTED]> Subject: Re: Entity beans, clistering and scalability >From: Bobby Woolf [mailto:[EMAIL PROTECTED]] > >GSJ has what we call Extreme Clustering, which can be thought of as VM >pooling. It's like session bean pooling, where a client is given a bean >that's available. When the client is finished, the bean is >returned to the > [...] Pardon my (perhaps) naivete, but why on earth would starting multiple VMs on the same box increase scalability? It would seem like you're just going to consume a lot of extra resources, when all you really should need to do is start more threads. I can understand the advantage if your OS/JVM only supports green threads, but then I would offer the suggestion that it's time to update your JVM. Please tell me what I'm missing. Thanks, Jeff Schnitzer [EMAIL PROTECTED] ------------------------------ Date: Fri, 9 Feb 2001 10:13:42 +0530 From: KAMALAKAR KONDURY <[EMAIL PROTECTED]> Subject: Re: Help me !! Hi, Refer to Enterprise Java Beans by OREILLY or to EdRoman's Mastering EJB Kamalakar Kondury, M.Tech. ----- Original Message ----- From: <A mailing list for Enterprise JavaBeans development> To: <[EMAIL PROTECTED]> Sent: 08 February, 2001 00:46 Subject: Help me !! : Hi : I am working on Servlets and interested in learning EJB. : Read some book but sill do not have a good hold on EJB. : I want to know is there any site which give me some working code or Examples : of EJB. : I am looking for an example which covers every thing in EJB like : The complete cycle , i.e : A client program talking to Session bean and the session bean talking to : Entity bean and then the value stored in to database. : : A client(JSP) --> Some Business logic(Session Bean)----->( Insert Data) : Entity Bean---> Database : : I know i am asking for too much..))))) : : Regards : Srini : : =========================================================================== : 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 the message "help". : : ------------------------------ Date: Fri, 9 Feb 2001 11:00:16 +0530 From: Amit Khanna <[EMAIL PROTECTED]> Subject: Re: Dependent Objects support <vendor> Pramati will provide support for Dependent Objects in the Pramati Server Version 3.0 slated for release by end of Q2 01. There could be some change in the final version as well in the release plan depending on the final release of the EJB 2.0 Specifications (date of release and changes incorporated since Proposed Final Draft). Amit Khanna Pramati Technologies (www.pramati.com) </vendor> ----- Original Message ----- From: Thik Hain <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 08, 2001 11:57 AM Subject: Dependent Objects support > Hi, > > I want to know which all vendors are planning to > provide / or have provided support for dependent > objects ? > > I am developing an application which involves many > dependent objects. Is there going to be any major > change in CMP entity beans component contract in EJB > 2.0, and in the dependent objects ? > > When is SUN releasing the final draft for EJB 2.0 ? > > > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > =========================================================================== > 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 the message "help". > ------------------------------ Date: Thu, 8 Feb 2001 02:15:21 -0800 From: Subramaniam S <[EMAIL PROTECTED]> Subject: Re: Error while invoking rollback method Also it is not clear from the original posting, what transaction attributes are set for a.method1() and b.method2(). Unless a.method1() and b.method2() inherit (propagate) the same transaction started by the calling method, they cannot rollback. From the problem description given here, it appears that a.method1() is probably starting a new transaction. -- Subra Subramaniam S - Viveka Software Technologies Pvt Ltd., Bangalore http://www.thinktankpartners.com/ +91-80-2996585 / 5098251 --- RAJESH Subramanian <[EMAIL PROTECTED]> wrote: > hi > i think u have forgot to begin the transaction > > tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); > after this line > tx.begin(); > a.method1();//which do some database operation > b.method2();//which do some database operation > tx.commit(); > Tx > Rajesh > > > -----Original Message----- > From: Chidambara, Vinoth (CTS) > [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 08, 2001 12:34 PM > To: [EMAIL PROTECTED] > Subject: Error while invoking rollback method > > Hai, > > Am using weblogic 5.1.Database sybase sql server. > Trying for BMT(Bean Managed Transaction) > stateless session bean > > I got a UserTransaction like this(Am i right) > try{ > > tx=(UserTransaction)ic.lookup("javax.transaction.UserTransaction"); > a.method1();//which do some database operation > b.method2();//which do some database operation > tx.commit(); > } > catch(Exception e){ > try{ > tx.rollback(); > } > catch(Exception ex){ > System.out.println("Exception in rollback"+ex); > } > System.out.println("Exception in lookup"+e); > } > > a.method1()---> succedds in database operation > b.method2()---->throws Exception inorder to rollback > > Even though I throw exception in b.method2(),a.method1() > is not rollbacking > > Am getting exception like this: > > Exception in rollbackjava.lang.IllegalStateException: There is > no > transaction associated with this thread > Exception in lookup javax.transaction. > TransactionRolledbackException: > Transaction: '963124471576_1' rolled back due to EJB exception: > javax.ejb.EJBException > at com.bank.bciticorp.BCitiBankBean.deposit(Compiled > Code) > at > > com.bank.bciticorp.BCitiBankBeanEOImpl.deposit(BCitiBankBeanEOImpl.ja > va:56) > at > com.bank.bglobal.BGlobalBean.transferSTtoCT(BGlobalBean.java:55) > at > > com.bank.bglobal.BGlobalBeanEOImpl.transferSTtoCT(BGlobalBeanEOImpl.j > ava:56) > at > > com.bank.bglobal.BGlobalBeanEOImpl_WLSkel.invoke(BGlobalBeanEOImpl_WL > > Anyone help in this regard. > Thanks in advance. > Regards, > Vinoth.C > > This e-mail and any files transmitted with it are for the sole > use > of the intended recipient(s) and may contain confidential and privileged > information. > If you are not the intended recipient, please contact the sender > by > reply e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, > forwarding, > printing or copying of this email or any action taken in reliance on > this > e-mail is strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com ===== -- Subra http://www.geocities.com/subramaniams/ http://www.thinktankpartners.com/ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ =========================================================================== 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 the message "help". ------------------------------ Date: Fri, 9 Feb 2001 07:31:58 -0000 From: John Harby <[EMAIL PROTECTED]> Subject: Re: Entity beans, clistering and scalability Also, I would wonder if you are offering some IPC/shared memory space accesible by all the VMs, don't you have to modify the VM code itself to accomplish this? This sounds like a real high-maintenance high quality risk effort to me. >From: Jeff Schnitzer <[EMAIL PROTECTED]> >Reply-To: A mailing list for Enterprise JavaBeans development ><[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Entity beans, clistering and scalability >Date: Thu, 8 Feb 2001 14:47:20 -0800 > > >From: Bobby Woolf [mailto:[EMAIL PROTECTED]] > > > >GSJ has what we call Extreme Clustering, which can be thought of as VM > >pooling. It's like session bean pooling, where a client is given a bean > >that's available. When the client is finished, the bean is > >returned to the > > [...] > >Pardon my (perhaps) naivete, but why on earth would starting multiple >VMs on the same box increase scalability? It would seem like you're >just going to consume a lot of extra resources, when all you really >should need to do is start more threads. > >I can understand the advantage if your OS/JVM only supports green >threads, but then I would offer the suggestion that it's time to update >your JVM. > >Please tell me what I'm missing. > >Thanks, >Jeff Schnitzer >[EMAIL PROTECTED] > >=========================================================================== >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 the message "help". > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com ------------------------------ End of EJB-INTEREST Digest - 7 Feb 2001 to 8 Feb 2001 (#2001-40) **************************************************************** =========================================================================== 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 the message "help".
