InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InstantDB: InstantDB table access from CMP EJB


Not sure which list this belongs on...

I have a simple Java client that creates CMP EJBs (using latest versions
of EnhydraEnterprise and InstantDB). I've found that if I use
org.enhydra.instantdb.ScriptTool to create the table, using a file with
the following code:

---------------------------------------------------
; First load the JDBC driver and open a database.
d org.enhydra.instantdb.jdbc.idbDriver;
o jdbc:idb=<full_path_to_file>/NE.prp;

e drop table ne_sample;
e create table ne_sample (
  name	       varchar(30) unique primary key
);
e insert into ne_sample values("foo");
e insert into ne_sample values("bar");

c close;
----------------------------------------------------

that I can't access the tables from my bean. However, if I use a servlet
(using JDBC/Datasource; specifically a modified version of InitServlet,
found in EETest) to do the same table creation steps, the beans then
have access to the table, even with server restarts. In both cases, I
can use DBBrowser to view the table contents.

Any thoughts? I'm new to Enhydra/InstantDB so I'm not sure if there are
file permission issues (I'm grasping here!) that I might be missing, or
something....

Thanks --
Cindy
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.