Hi Blasius,

You've probably figured this out already, but as I understand it the second argument 
to the MLET tag is the JNDI
name for the database i.e. Interbase. I have the following in my jboss.xml:

snip...
    <resource-managers>
         <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
       <res-name>PriceDatabase</res-name>
       <res-jndi-name>Interbase</res-jndi-name>
         </resource-manager>
     </resource-managers>
     <enterprise-beans>
       <session>
  <ejb-name>ProductBrowser</ejb-name>
  <jndi-name>ProductBrowser</jndi-name>
  <configuration-name>Default Stateless SessionBean</configuration-name>
  <resource-ref>
    <res-ref-name>jdbc/PricingDataSource</res-ref-name>
    <resource-name>PriceDatabase</resource-name>
  </resource-ref>
       </session>
       <session>
  <ejb-name>CompanyService</ejb-name>
  <jndi-name>CompanyService</jndi-name>
  <configuration-name>Default Stateless SessionBean</configuration-name>
  <resource-ref>
    <res-ref-name>jdbc/PricingDataSource</res-ref-name>
    <resource-name>PriceDatabase</resource-name>
  </resource-ref>
       </session>
     </enterprise-beans>

Regards

Terry Child

> Hi all,
> 
> I tried jBoss and wanted to make a connection
> to an InterBase server.
> I could load the jdbc driver for InterBase (InterClient)
> smoothly by putting this in jboss.conf:
> 
> <MLET CODE = "org.jboss.jdbc.DataSourceImpl"
> ARCHIVE="jboss.jar,interclient.jar" CODEBASE="../lib/ext/">
>    <ARG TYPE="java.lang.String"
> 
>VALUE="jdbc:interbase://localhost/C:/Programme/jonas_jdk1.2/interbase-sample/ejb.gdb">
>    <ARG TYPE="java.lang.String" VALUE="InterBase">
>    <ARG TYPE="java.lang.String" VALUE="interbase.interclient.Driver">
>    <ARG TYPE="java.lang.String" VALUE="SYSDBA">
>    <ARG TYPE="java.lang.String" VALUE="masterkey">
> </MLET>
> 
> My problem is, how can I connect this to JNDI? Where should I
> put this information? I guess it should be in JAWS, but where?
> 
> In Jonas this is quite simple: I just have to register 
> this jdbc connection in JNDI (e.g. as JDBC_Test) 
> and after this I can put this JDBC_Test in the
> JDBC mapping for the Jonas container. And that's it!
>  
> I think, this should work similar in jboss, but I can't
> find any clue, where and how... 
> 
> Second question: Where can I find the source code of the
> "bank.jar" at the deploy directory? And where can I get
> the client application for this? And I also have no clue,
> which library I should put in the classpath of my client
> application.
> 
> Any helps would be appriciated,
> Thank's a lot!
> -- 
> ---------------------------------------------------
> 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]
> 



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

Reply via email to