Hello,

could you be more precise in your request ? What do you mean by "executing a query in a CMP bean" ? With CMP you can define finder methods, which return a collection of your bean instances satisfying a selection criteria that you define in the deployment descriptor, see
http://www.objectweb.org/jonas/jonas_root/doc/Program.html#Configurin.
If you want to execute some ad hoc queries, through JDBC, in one of your CMP bean business methods, then you can do it exactly the same way as you do it for developing ejbFindXXX, ejbLoad, ejbStore, ... in a BMP entity bean, see
http://www.objectweb.org/jonas/jonas_root/doc/Program.html#Writing

The best thing is that you consult the examples of entity beans delivered with JOnAS
in examples/src/eb.

Best Regards,

François

Surendra wrote:

Hi, Can you any one tell me how to execute a query in Container managedbean, How to get connection object and execute the query to get theresult.  RegardsSurendra

--
==================================================================
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 77 30
==================================================================
  ---- To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "unsubscribe jonas-users". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to