Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

COM objects in Java

Thread view: 
aba955@agora.ulaval.ca - 16 Jun 2005 16:11 GMT
Hello,

I didn't find much information about building COM objects in Java. I
just found few links talking about the MS javareg utility. Am I missing
something obvious like "COM objects are contrary to the Java
philosophy" or "Java does it differently and call it X"? It could be
the case since I am not an advanced Java programmer and I want to write
a COM object for the first time.

Hence, feel free (of course!) to answer one or more of my following
questions:

a) Are COM objects implementable with Java?
b) Is there an online tutorial I could read?
c) Is there a book I could read (I already have "Essential COM")?.

Thanks in advance for all the answers.

Divan
Andrew Thompson - 16 Jun 2005 16:19 GMT
> I didn't find much information about building COM objects ..

What's a 'COM object'?

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Aquila Deus - 16 Jun 2005 16:33 GMT
> > I didn't find much information about building COM objects ..
>
> What's a 'COM object'?

like CORBA, but windows-specific.

If he really wants COM, it's better to use .NET.
aba955@agora.ulaval.ca - 16 Jun 2005 16:33 GMT
I mean a Component Object Model. Something which has been called a long
ago, apparently, ActiveX and OLE by Microsoft. It is supposed to be
interfaced objects, registered on a computer, with which other
applications can interact. I say "supposed" because I am new at this
and it is my actual understanding of it...
Aquila Deus - 16 Jun 2005 16:37 GMT
aba...@agora.ulaval.ca wrote:
> I mean a Component Object Model. Something which has been called a long
> ago, apparently, ActiveX and OLE by Microsoft. It is supposed to be
> interfaced objects, registered on a computer, with which other
> applications can interact. I say "supposed" because I am new at this
> and it is my actual understanding of it...

COM was supported by M$'s own java implmentation many years ago, but
not anymore.

If you're looking for similiar tech, CORBA may be a good choice.
aba955@agora.ulaval.ca - 16 Jun 2005 16:42 GMT
Ok, that explains why I didn't find much on the subject. I will read
about CORBA. Thanks for your help.
Paul - 16 Jun 2005 20:45 GMT
>I mean a Component Object Model. Something which has been called a long
> ago, apparently, ActiveX and OLE by Microsoft. It is supposed to be
> interfaced objects, registered on a computer, with which other
> applications can interact. I say "supposed" because I am new at this
> and it is my actual understanding of it...

I have used a package called Jacob which allows Java classes to access COM
objects on Windows. I don't think there is a (nice) way to set up a pure
Java program as a COM object. The platform-specific nature of it is contrary
to Java's platform independence.

--Paul
Roland - 16 Jun 2005 17:23 GMT
> Hello,
>
[quoted text clipped - 15 lines]
>
> Divan

There's the "ActiveX Bridge" which supposedly allows a JavaBean
component to be packaged as an ActiveX control (I've never used it, so I
don't know if and how well it works).
<http://java.sun.com/j2se/1.5.0/docs/guide/beans/axbridge/developerguide/index.html>
Signature

Regards,

Roland de Ruiter
` ___      ___
`/__/ w_/ /__/
/  \ /_/ /  \

Alan Krueger - 16 Jun 2005 22:21 GMT
> I didn't find much information about building COM objects in Java. I
> just found few links talking about the MS javareg utility. Am I missing
> something obvious like "COM objects are contrary to the Java
> philosophy" or "Java does it differently and call it X"? It could be
> the case since I am not an advanced Java programmer and I want to write
> a COM object for the first time.

Java doesn't natively support building COM objects.  COM is a binary
compatibility standard, and Java builds bytecode not native executables.

Stick with Microsoft's Visual Studio to create COM objects.  You can
*call* COM objects from Java with something like this:

http://sourceforge.net/projects/jawinproject/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.