• 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: JavaBeans in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JavaBeans in Cocoa


  • Subject: Re: JavaBeans in Cocoa
  • From: Steve Franks <email@hidden>
  • Date: Tue, 27 Apr 2004 21:31:57 +1000

Yes, its quite possible, I do it frequently!
Basically, just like a Swing client, you need the "client" side JAR library from the EJB application, and maybe the JNDI setup file (properties).

Just working on getting the new "bindings" to work with my Cocoa/Java/EJB, seems like it will be a good for popup menus from a list of EJB value objects.

The JBoss J2EE app server is a custom install on the developer cd (and now a new stand-alone download from apple developer web site)

The biggest "gotcha" for Cocoa/Java imho are:
+ You get some unhelpful error messages sometimes
+ If you pass a Java object over to Cocoa-land (e.g. the owner of a NIB you are loading, or table source) you must make some artificial
java reference to it to prevent it from getting garbage collected, thus causing a seg fault in the cocoa program.




On Apr 26, 2004, at 22:44, Christian Kaiser wrote:

Hi,

I'm quite new to Cocoa, so it might be a stupid question...

Is it possible to integrate JavaBeans into a Cocoa-Java-Application? If
so, does somebody have an example, or documentation?

I've got a huge library in a couple of JAR-files and in this library,
there are some JavaBeans as well.

Thanx!
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



Steve Franks
adenzo software - http://www.adenzo.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: JavaBeans in Cocoa
      • From: John <email@hidden>
References: 
 >JavaBeans in Cocoa (From: "Christian Kaiser" <email@hidden>)

  • Prev by Date: Contains class?
  • Next by Date: Re: Contains class?
  • Previous by thread: JavaBeans in Cocoa
  • Next by thread: Re: JavaBeans in Cocoa
  • Index(es):
    • Date
    • Thread