Mark is correct if you are using JRun 3.1, which is in RC right now. The
property name is <yourdatasourcename>.ejipt.remotelyAccessible, which you
have to manually stick into local.properties.
But it looks to me like maybe you are trying to access Ejipt's classServer
on the JRun Web port, which is 8100 by default. Unless you consciously
changed the port, your URL should look like this:
> props.put(InitialContext.PROVIDER_URL, "ejipt://myserver:2323");
Best,
Scott Stirling
> -----Original Message-----
> From: Mark Phelps [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 11, 2001 6:51 PM
> To: JRun-Talk
> Subject: RE: error getting datasource from client
>
>
> You have to configure the datasource to be visible
> externally. By default
> it is only visible internally, ie from a JSP page, servlet,
> or EJB in JRun.
> I can't remember the name of the setting or the properties
> file it should go
> in but if you go to allaire's knowledge base you should be
> able to find it.
> Somebody else on the list may have it memorized.
>
> -----Original Message-----
> From: Simon Evans [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 11, 2001 3:36 PM
> To: JRun-Talk
> Subject: error getting datasource from client
>
>
> i have a data source set up in jrun to sql server.
>
> the test works fine and i can use it fine from a jsp page.
> however when an
> external client program tries to look up the datasource. there is a
> CommunicationException.
>
> here is the exception, and then the code i used.
> any help would be great.
> simon
>
>
> ----------------------------------
> exception
> ------------------------------------
>
> javax.naming.CommunicationException: Failed to communicate with
> NTSRVDEV02:8100.
> Root exception is java.io.FileNotFoundException:
> http://NTSRVDEV02:8100/reference at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unk
> nown Source)
> at allaire.ejipt.ContextFactory.getInitialContext
> ContextFactory.java:108)
> at javax.naming.spi.NamingManager.getInitialContext Unknown Source) at
> javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at
> javax.naming.InitialContext.init Unknown Source) at
> javax.naming.InitialContext.<init>(Unknown Source) at
> TestDB.main(TestDB.java:39)
>
>
> ---------------------------------------
> code
> ----------------------------------------
>
> Properties props = new Properties();
> props.put(InitialContext.INITIAL_CONTEXT_FACTORY,
> "allaire.ejipt.ContextFactory");
> props.put(InitialContext.SECURITY_PRINCIPAL, "admin");
> props.put(InitialContext.SECURITY_CREDENTIALS, "admin");
> props.put(InitialContext.PROVIDER_URL, "ejipt://myserver:8100");
>
> ctx = new InitialContext(props);
> DataSource ds = (DataSource)ctx.lookup("jdbc/simplydone");
> c = ds.getConnection("developer", "developer");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists