Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

embeddedDataSource and PNUTS

Thread view: 
txtaz - 23 Apr 2007 13:47 GMT
Hello group,
I am trying to creata a DSN less connection using PNUTS (sort of
JAVA). Here is the code:

function createJDBCDataSet()
{
import("sun.jdbc.odbc.JdbcOdbcDriver")
import("sun.jdbc.odbc.Embeddedata")
dbName = "SATAPP1"
tableName = "STResult";
ds = embeddedDataSource();
ds.setDatabaseName(dbName);

con = ds.getConnection();
stmt = con.createStatement();
rs = stmt.executeQuery("select * from STResults");
}

I get an error when I run it "pnuts.lang.PnutsException :
embeddedDataSource is not defined".
I'm sure the issue is with the import of the Embedded data class (I
guessed at what it was called).

Anyone have any ideas?
TIA
Wes
Lew - 23 Apr 2007 15:18 GMT
> Hello group,
> I am trying to creata a DSN less connection using PNUTS (sort of
[quoted text clipped - 18 lines]
> I'm sure the issue is with the import of the Embedded data class (I
> guessed at what it was called).

This is a Java newsgroup  What you posted is not Java.  What language is it?

Signature

Lew

txtaz - 23 Apr 2007 16:02 GMT
PNUTS is based on JAVA

> > Hello group,
> > I am trying to creata a DSN less connection using PNUTS (sort of
[quoted text clipped - 25 lines]
>
> - Show quoted text -
Lew - 24 Apr 2007 03:02 GMT
> PNUTS is based on JAVA

Please do not top-post. And the name of the languages are "Pnuts" and "Java".

According to pnuts.org,
> Pnuts is a script language which can access Java APIs interactively. Pnuts can be embeded in a Java program as a scripting engine and be called easily from Java.

And Pnuts has a "different syntax than [sic] Java".

There must be specific setup procedures and requirements for Pnuts on their
website, in particular how Pnuts wants its "embeddedDataSource ... defined",
isn't there?  At least something mentioning the "pnuts.lang.PnutsException",
the error you quoted.

It is just possible that someone who knows Pnuts might surf the Java
newsgroups, too, but aren't there resources more specific to it?

Signature

Lew

toyokazu.tomatsu@gmail.com - 25 Apr 2007 00:46 GMT
> ...
> It is just possible that someone who knows Pnuts might surf the Java
> newsgroups, too, but aren't there resources more specific to it?

http://groups.yahoo.com/group/pnuts-interest/ would help.

---
Toyokazu Tomatsu


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.