Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-23-2005
seth.piezas seth.piezas is offline
Registered User
 
 
Join Date: Feb 2005
Posts: 15
Ice and Java JDO

does anyone know if there are huge roadblocks to persisting Ice classes with JDO? generating the ice classes from slice and then bytecode enhancing the relevant files?

thanks,
Reply With Quote
  #2 (permalink)  
Old 02-24-2005
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,533
I can't think of any reasons why this wouldn't work. You can also try to convince yourself by looking at the generated code for a Slice class. The generated Java class extends Ice.ObjectImpl which only contains static attributes. Attributes defined in the Slice class will be mapped according to the Slice to Java mapping to public attributes in the Java class.

The best is simply to try, let us know if you encounter any troubles!

Benoit.
Reply With Quote
  #3 (permalink)  
Old 02-24-2005
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 813
Hi Seth,

I don't see any issue. The only data members of a Slice-generated class are the mapped slice-declared data members. If you want to use these objects as servants, it would probably make sense to write your own servant locator to locate these objects in your database.

Cheers,
Bernard
Reply With Quote
  #4 (permalink)  
Old 02-24-2005
seth.piezas seth.piezas is offline
Registered User
 
 
Join Date: Feb 2005
Posts: 15
tanx

thanks, guys. i'm mid implementation to see how well it works.

let you know if anything pops up problematic.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceV3.11 java client and vc7.0Server : java.lang.NullPointerException? zhoubin Help Center 2 11-24-2006 04:03 AM


All times are GMT -4. The time now is 04:58 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.