Datasources are  bound to the java: namespace, as you correctly note.  This
namespace is local to the virtual machine, and can not be accessed outside the
jboss VM, say by a client.

You could embed minerva in your client, or figure out what changes need to be
made to stop the java: binding.  I seem to recall, however, that the
connections are not necessarily serializable or remote, so you might not be able
to access them from a client anyway.

Tom

On Thu, 01 Feb 2001, you wrote:
> Hi all,
> 
> We try to bind a datasource from our simple client but JBoss always throws 
> this exception : "javax.naming.NameNotFoundException:ProgressDS not bound". 
> Even if during the starting of JBoss we have the message : "XA connection 
> pool ProgresDS bound to java:/ProgressDS".
> 
> What's wrong ????....
> 
> We have tried to look at the deployed objects with jndiView tool but we 
> can't see the deployed datasource : is it normal ???
> 
> Here follow the extracts of the different configurations files :
> 
> In jboss.conf file :
> --------------------
> <MLET CODE="org.jboss.jdbc.XADataSourceLoader" 
> ARCHIVE="jboss.jar,progress.zip" CODEBASE="../../lib/ext/">
>     <ARG TYPE="java.lang.String" VALUE="ProgressDS">
>     <ARG TYPE="java.lang.String" 
> VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> </MLET>
> 
> 
> In jboss.jcml :
> ---------------
> <mbean name="DefaultDomain:service=XADataSource,name=ProgressDS">
>        <attribute name="Properties"></attribute>
>        <attribute 
> name="URL">jdbc:jdbcprogress:T:FR0985DEV700:7000:kil</attribute>
>        <attribute name="GCMinIdleTime">1200000</attribute>
>        <attribute name="JDBCUser">*****</attribute>
>        <attribute name="MaxSize">5</attribute>
>        <attribute name="Password">*****</attribute>
>        <attribute name="GCEnabled">false</attribute>
>        <attribute name="InvalidateOnError">false</attribute>
>        <attribute name="TimestampUsed">false</attribute>
>        <attribute name="Blocking">true</attribute>
>        <attribute name="GCInterval">120000</attribute>
>        <attribute name="IdleTimeout">1800000</attribute>
>        <attribute name="IdleTimeoutEnabled">false</attribute>
>        <attribute name="LoggingEnabled">false</attribute>
>        <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
>        <attribute name="MinSize">3</attribute>
>      </mbean>
> 
> 
> Client test file :
> ------------------
>     Connection conn = null;
>     try {
>       Properties properties = new Properties();
>       properties.put("java.naming.factory.initial", 
> "org.jnp.interfaces.NamingContextFactory");
>       properties.put("java.naming.provider.url","localhost:1099");
>       Context ctx = new InitialContext(properties);
>       DataSource ds = (DataSource)ctx.lookup("java:/ProgressDS");
>       //DataSource ds = (DataSource)ctx.lookup("java:/comp/env/ProgressDS");
>       conn = ds.getConnection();
>     } catch(Exception ne) {
>       System.err.println("erreur"+ne);
>     } finally {
>       if(conn != null)
>               try {conn.close();} catch(SQLException e) {}
>     }
> 
> 
> Thanks for you help.
> 
> Matthias
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to