• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What is the connection between the WO and the java file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the connection between the WO and the java file?


  • Subject: Re: What is the connection between the WO and the java file?
  • From: Matthew Kidd <email@hidden>
  • Date: Tue, 5 May 2009 09:33:22 -0500


It seems like no matter what I will have to open up the jar and adjust the class file either via a recompile of the decompiled java file or by using javaassist.



Q <email@hidden>

05/04/09 08:32 PM

To
Matthew Kidd <email@hidden>
cc
Chuck Hill <email@hidden>, email@hidden
Subject
Re: What is the connection between the WO and the java file?





You generally wouldn't integrate it into your application for what you are trying to do. You would use it offline as part of the build/deployment process.

From what you have described, you should be able to either simply replace the existing component class with a new one or rename the existing class (you can do this using javaassist) and subclass it with a new class of the same name to achieve what you want to do.

On 05/05/2009, at 8:36 AM, Matthew Kidd wrote:


With regards to javaassist, how would I integrate this into an already established WebObjects application?



Chuck Hill <email@hidden>

04/15/09 09:44 PM


To
Matthew Kidd <email@hidden>
cc
email@hidden
Subject
Re: What is the connection between the WO and the java file?








On Apr 15, 2009, at 5:51 PM, Matthew Kidd wrote:

>
> I ask this because in my efforts to decompile a webobjects  
> application from circa 2002 or 2003 I've encountered more errors  
> than I care to deal and then I had an idea. If I could compile one  
> java file, the only one I actually need to change, via commandline  
> and swap the resulting .class files would the associated WO file be  
> able to use it?

Yes, if you don't change the API.


> Or, is something done behind the scenes that I'm not readily able to  
> see that connects the method calls in the WO to the methods in the  
> java and .class file?

No, it is just done by name and visibility.


> I realize I would need the same jdk but I'll attack that hurdle next  
> if this is a plausible solution.
>
> Thanks for any help or ray of hope you may be able to provide.

Hope that helps.  If you get extra desperate, you could get all  
medieval on it:
http://www.csg.is.titech.ac.jp/~chiba/javassist/

Where there is a will....

Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects








------------------------------------------------------------------------
Disclaimer
The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete ------------------------------------------------------------------------
Disclaimer
The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: What is the connection between the WO and the java file? (From: Q <email@hidden>)

  • Prev by Date: Re: Graceful shutdown of WO apps + monitor + wotaskd
  • Next by Date: Re: Need some advice for integrating a Cocoa and WO app
  • Previous by thread: Re: What is the connection between the WO and the java file?
  • Next by thread: Wonder Integration on Existing XCode project failed
  • Index(es):
    • Date
    • Thread