Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java EE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗?
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-19 14:38 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
sothis



CJSDN高级会员


发贴: 168
积分: 60
于 2003-06-19 14:53 user profilesend a private message to usersend email to sothissearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不是的,用IONA:ORBIX的低版本可以的。
但是BES配合JB最好



天狼星
作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:sothis]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-19 15:03 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sothis wrote:
不是的,用IONA:ORBIX的低版本可以的。
但是BES配合JB最好

谢谢!是否有这方面的资料介绍介绍?
Smile



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re: [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-20 13:49 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
没人理,自己搞吧!


"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
dany





发贴: 214
积分: 33
于 2003-06-20 18:14 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
呵呵,Borland 的Application Server自带的文档就很好啊,不过感觉到对于初学corba的人,还不是很完美,不过已经不错了!


作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
dany





发贴: 214
积分: 33
于 2003-06-20 18:22 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有关corba推荐你看1.Java Enterprise in a Nutshell 2nd Edition里面有关corba的部门作为入
门,非常好,然后可以看看j2sdk 1.4的doc里面guide中有关 idl的部分.www.omg.org上面有关各种service的规范很有帮助。最后还有一本书2.Java Programming with CORBA 3rd很不错的。上面的两本书ftp2上都有。其实我也是初学corba,自己的一点体会吧。感觉到corba这个东西很难应用到网页上面,所有没有EJB流行吧。不过提供分布是的对象共享访问还蛮不错的,没有ejb好学。


dany edited on 2003-06-20 18:41

作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-23 09:18 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢了!
我现在要做一个用JAVA访问CORBA服务的客户端程序。
server: BCB +visibroker (BOA)

client: jbuilder

问题是我找不到服务?

给点提示,不胜感激!

Big SmileWink


jameszhang edited on 2003-06-23 11:20

"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re: [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-23 21:44 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
访问成功!

但是其中的类型转换不知怎么搞?
比如说

C 中 STRUCT---------->corba ? -------------->java (class)
给点提示,不胜感激!



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
sothis



CJSDN高级会员


发贴: 168
积分: 60
于 2003-06-23 22:16 user profilesend a private message to usersend email to sothissearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
IDL里面有struct可以定义。
一般对于CORBA应用惯例是先定义IDL,再考虑分别向各种实现语言做IDL MAPPING。只要使用同一个IDL,C++和Java程序自然可以互相传递



天狼星
作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-06-24 02:47 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
I thought corba is replaced by xml stuff, right?

sothis is getting the point, pay more attention to IDLs, these are the invariants under the change of different languages.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:用JBUILDER开发CORBA应用 [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-25 08:19 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢各位回帖?
CORBA 虽然过时,但用不用我做不了主,呵呵!还请各位帮忙。

比如说:
C++的类 A
IDL中定义为Any
JAVA中我取到 any 怎样用此对象中的值呢?


jameszhang edited on 2003-06-25 10:05

"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
sothis



CJSDN高级会员


发贴: 168
积分: 60
于 2003-06-25 11:45 user profilesend a private message to usersend email to sothissearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
使用any不能逃脱对类A要先有定义的任务。
先在IDL中定义A,让他在C++和Java两侧都可以用,然后就可以插入A到any,用any传送数据,到目的地后展取出来。

XML可以解决CORBA的很多问题比方说动态类型,但是毕竟没有直接使用IIOP包裹效率高(marshal or parse /package size...)



天狼星
作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-25 13:52 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
”在IDL中定义A,让他在C++和Java两侧都可以用“

在JAVA里用不用定义A的对应的JAVA CLASS呢?



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
sothis



CJSDN高级会员


发贴: 168
积分: 60
于 2003-06-25 21:25 user profilesend a private message to usersend email to sothissearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在IDL中定义A,idl2cpp后得到C++中的A类定义;idl2java后得到Java中的A类定义。


天狼星
作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:sothis]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-25 21:50 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sothis wrote:
在IDL中定义A,idl2cpp后得到C++中的A类定义;idl2java后得到Java中的A类定义。


明白了!你已经多次提到了在IDL中定义,可我还在问!呵呵,您千万别跟我急,我问最后一个问题,如果实际中是
先得到C++中的A类定义

然后 在IDL定义是ANY型的。

JAVA中得到ANY,我把A类怎样还原呢?


jameszhang edited on 2003-06-26 09:22

"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-06-25 22:35 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Have you checked the stub and skeleton classes? They are generated by your IDL compiler. Take a look and read a book to understand how they hook together through corba bus. Take a little time to understand the nature of this, it will save you a lot of headache later(I took the shortcut and later had to go back to read them, Sad), especially when something goes wrong.

EJB is java exclusive, but corba is universal, you can put objects from diff language on the bus and use it, like C/C++, java, .... It has more power on those legacy systems. New systems should use XML based components.

头像都没了,咳... Funny. I love those rich-facial-expression figures, get them back and change it everyday.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:用JBUILDER开发CORBA应用一定装BORLAND ENTERPRISE SERVER吗? [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-26 08:03 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list




"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"


flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923