Hi all,

can someone tell me, whether this information is correct?

Client part:
- To deploy my client program that access the
  jboss server I need these jboss' dependent libs
  (from client directory)?
  * deploy.jar
  * jboss-client.jar
  * jnp-client.jar
  Can someone explain to me, what are these jars actually
  doing? What is jnp?
  Okay, you also need other jars like ejb, jndi, rmi,
  jndi-prop file and so on but this also applies 
  for other EJB server.

Server part:
- ejb-jar.xml is the dd for all ejbs. This is
  jboss independent.
- jboss.xml is typical jboss? one also puts the
  jndi's names in this file for every beans.

Database conn:
I have 2 choices to use a database connection:
1. First I put my database connection, e.g. "Interbase" 
   in jboss.conf file and after this 
   I can access it through DataSourceImpl,
   because jboss.conf properties map to the parametres of
   org.jboss.jdbc.DataSourceImpl. Is this correct?
    
   For example: I can get the connection like this:
     
     InitialContext ic = new InitialContext();
     DataSource ds = (DataSource)ic.lookup("Interbase");
     con = ds.getConnection();
 
   But this is only interesting, if I want to write  
   BMP or session beans, right? 
   I can't use this technique to write CMP beans.
2. To write CMP beans I think I need JAWS jaws.xml, is
   this correct? But I can't figure out, how I can
   access more than one DB at one time? Because jaws.xml 
   only gives you one datasource, like this:

    <datasource>Hypersonic</datasource>
    <type-mapping>Hypersonic SQL</type-mapping>


Thank's a lot for your helps!

BTW.: Rickard, I cannot compile your client program because
this file is missing: MBeanRegistration. This file is used
by the main.java file

...
public class Main
   implements MainMBean, MBeanRegistration
...

But it's okay, I just wrote my own simple client program and
it works!

Thank's!
-- 
---------------------------------------------------
Blasius Lofi Dewanto
---------------------------------------------------
Homepage : http://members.tripod.com/~dewanto
E-Mail   : [EMAIL PROTECTED]
ICQ      : 39343280
---------------------------------------------------


__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! Auktionen - gleich ausprobieren - http://auktionen.yahoo.de


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to