• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

No SQL

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you, like me, hate the archaic and difficult to run MySQL stuff, let me know.
I'm going to write Xml:DB drivers for JForum so we can have a pure Java servlet!
Will allow us to use either Xindice or eXist XML database instead of this nasty SQL stuff.


Any help would be appreciated, I'll post a patch once it's ready.

WH
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go ahead ;)

Soon I'll release the Prevayler driver too.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way, what build system does the author use?
I don't see any ant build files! :O

Don't tell me he fakes it with that very heavy Eclipse crap...



[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anonymous wrote:By the way, what build system does the author use?
I don't see any ant build files! :O

Don't tell me he fakes it with that very heavy Eclipse crap...



You asked me to not tell you, so I don't

BTW, Eclipse rocks!!!

The build systes is exactly the one you're thinking and doesn't want to accept: javac :P ( or the Eclipse compiler, whatever ).

You wont find any test cases as well... ( ugh ).. My fault, sorry. I wish to have them someday

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm busy writing the driver code, but but I'm blocked on some of your code. difficult.
Although you have seperated the driver into the drivers/mysql package, for
some reason you forgot to remove all the SQLException's from the model/* objects, so for the moment there is no way to plug a new driver, unless it throws the SQLException as well!

Please replace any referece to SQLException outside the mysql package with something like Exception or Throwable.
Check no other code outside the mysql package uses any SQL code either.


Let me know when you fix this, and I'll continue with my driver.

Thanks
WH
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, you could simply change SQLException to Exception. In the next release I'll have it changed as well.

Rafael
(ps: please register ;) )
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anonymous wrote:By the way, what build system does the author use?
I don't see any ant build files! :O

Don't tell me he fakes it with that very heavy Eclipse crap...




You can always make up some build files and submit them to the project for those of us who don't use Eclipse..

Once I get some more free time and I am able to dabble with some of the code, I am planning on making up some build files, but from the looks of things I won't have any free time until April

Ken
[originally posted on jforum.net by kencochrane]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, you're right.

I've added this to my TODO list. Thanks.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:Yeah, you're right.

I've added this to my TODO list. Thanks.

Rafael



Rafael,

I didn't mean for you to write the script, I was talking to the anonymous user. Since they was complaining, I figured they should write the build script if they wanted it so bad. You do so much as it is, and I am sure someone else can write the build script. I will do it, but unfortunately I won't have time until my house is all finished, and I am all moved in. So it might not get done for a few weeks.

Ken


[originally posted on jforum.net by kencochrane]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd like to have a crack at a hibernate persistence layer instead of the mysql code. I haven't spent very long reading the existing code, but http://hibernatesynch.sf.net would make short work of creating the DAO's and domain objects. The next job would be merging the domain objects with your existing code.

How is work coming along with the prevayler driver, I'd be interested to hear of your experience of using it in web-apps as I've only ever used it in small demo apps.
[originally posted on jforum.net by analogueboy]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

analogueboy wrote:I'd like to have a crack at a hibernate persistence layer instead of the mysql code. I haven't spent very long reading the existing code, but http://hibernatesynch.sf.net would make short work of creating the DAO's and domain objects. The next job would be merging the domain objects with your existing code.



I suggest you to go looking the code to see the possibilities of how to do the work, to getting ideas for some possible ( but imminent ) refactoring in jforum's core etc... As long I guess the port to any kind of data persistence can be done without much effort, I already now that there are somethings here and there that should be written using another approach.

analogueboy wrote:
How is work coming along with the prevayler driver, I'd be interested to hear of your experience of using it in web-apps as I've only ever used it in small demo apps.



So far I just have some kind of conceptual code and minor implementation tests. Prevayler forces you to usy trully OO, and this is a bit difficult in the beggining, because you figure out that you are atrophic with the relational thing.
As in Hibernate, I need to refactor some piece of code to make the system "good" to code using non-relational approaches. This will increase the code quality, anyway.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic