Re: Tutorials

2006-03-23 Thread Stas Ostapenko
Take a look at this http://apache.org/dist/db/ojb/db-ojb-1.0.4/webapp-sample.jar. This is a good example of using OJB, Struts and JSP all together. On 3/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey everybody, are there any Tutorials that you can advice for learning to use the OJB

Re: MetadataException

2005-12-23 Thread Stas Ostapenko
I'm agree with Thomas. I have seen such error. In my case all the things become working after iconv -f cp1251 -t utf-8 repository.xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

reusing db connection in multithreaded environment

2005-07-26 Thread Stas Ostapenko
Hello ! The situation is the following.I need to reuse db connection which is used by PB in per thread mode. It`s need for example for paging query results from embedded RDBMS when only one connection is allowed (limited by caller thread). So, the best thing I`ll want to see is some object which

repository.xml extending

2005-06-15 Thread Stas Ostapenko
Hi ! I need to add some custom XML code into repository.xml. OJB begin to work without problems only after patching org.apache.ojb.broker.metadata.RepositoryTags. What is the best way to implement it ? Thanks.

Re: hsqldb setup problem

2005-06-05 Thread Stas Ostapenko
Hi ! Ok, thanks. hsqldb.jar came from OJB distribution works fine. But can I use it in production ?

hsqldb setup problem

2005-06-03 Thread Stas Ostapenko
Hi ! I have problems with setting up hsqldb 1.8.0 RC10 to work with OJB 1.0.1. Hypersonic SQL is supported platform, but how about hsqldb ? When I do ant prepare-testdb I get such exception : - insert-sql: [torque-sql-exec] Our new url - jdbc:hsqldb:/temp/SearchReporting/HSQL_OJB_Files

Re: MetadataManager.copyOfGlobalRepository problem

2005-04-30 Thread Stas Ostapenko
be added to javadoc and tutorial for the MetadataManager. On 4/29/05, Martin Kalén [EMAIL PROTECTED] wrote: Stas Ostapenko wrote: So, here is new code public class Domain implements java.io.Serializable SerializationUtils needs Serializable classes by contract, this should probably

Re: MetadataManager.copyOfGlobalRepository problem

2005-04-28 Thread Stas Ostapenko
Hi ! Are you sure that Domain.class contains no package declaration in Java? (As Armin already pointed out.) Yes. here is Domain.java public class Domain { public Integer Id; public Integer Status; public String Domain; public String Comment; public Domain(Integer Id,Integer Status,String

Re: MetadataManager.copyOfGlobalRepository problem

2005-04-28 Thread Stas Ostapenko
So, here is new code public class Domain implements java.io.Serializable { public Integer Id; public Integer Status; public String Domain; public String Comment; public Domain(){}; public Domain(Integer Id,Integer Status,String Domain,String Comment) { this.Id = Id; this.Status = Status;

MetadataManager.copyOfGlobalRepository problem

2005-04-27 Thread Stas Ostapenko
Hi! I have problem with this very simple code. When I try to run it I have an strange exception. import org.apache.ojb.broker.metadata.DescriptorRepository; import org.apache.ojb.broker.metadata.MetadataManager; public class test_copyOfGlobalRepository { public static void main(String

MetadataManager.copyOfGlobalRepository problem

2005-04-27 Thread Stas Ostapenko
Hi! I have problem with this very simple code. When I try to run it I have an strange exception. import org.apache.ojb.broker.metadata.DescriptorRepository; import org.apache.ojb.broker.metadata.MetadataManager; public class test_copyOfGlobalRepository { public static void main(String

Re: partial materialization?..

2005-04-12 Thread Stas Ostapenko
Using of Report Queries may help, I think. From /doc/site.html#Report+Queries : Report queries are used to retrieve row data, not 'real' business objects. A row is an array of Object. With these queries you can define what attributes of an object you want to have in the row. The attribute names

Re: mapping one object in different RDBMS - source

2005-04-11 Thread Stas Ostapenko
to be changed at runtime is table name. Is it possible in fact to work with big data sets in few RDBMSs ? Anyone have such expirience ? Thank you. On Mon, 11 Apr 2005 11:40:16 +0200, Armin Waibel [EMAIL PROTECTED] wrote: Hi, Stas Ostapenko wrote: I have a problem with inserting all table data of one

mapping one object in different RDBMS

2005-04-07 Thread Stas Ostapenko
I`m trying to do mapping one object in two RDBMS and different tables. How can I create mapping and access SAME objects in different db`s on the fly ?.For example to store search results of databaseA in databaseB ? I use PB API.

mapping one object in different RDBMS - source

2005-04-07 Thread Stas Ostapenko
I have a problem with inserting all table data of one table to another table in other RDBMS. Following code works, but it stores not all the data, but only first object. Where I`m wrong ? Please help. import org.apache.ojb.broker.PersistenceBroker; import