由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - help!!
相关主题
Java能帮我做这个project吗?Fatal Error怎么回事?
请教若干问题Re: JAVA中测时间的方法?
什么应用需要几百个节点的java呢java可以调用dll吗?
迷惑了很久,java 和 c++ 到底谁快?NoClassDefFoundError
Java会产生更多的page fault导致速度变慢sigh, Java needs arraycopy for imaging
你们谁去劝一下goodbug要点脸?怎么返回一个变量的地址?
JVM crashes on Linux请教大牛:java可以做这件事情吗
问一个Java题Re: 问一个关于Java Native Interface的问题
相关话题的讨论汇总
话题: c++话题: java话题: develop话题: jni话题: tool
进入Java版参与讨论
1 (共1页)
l******o
发帖数: 10
1
Crrently we try to develop a library (utility) that needs to connect oracle
database. We already have a bunch of C++ libraries. For future and purpose, we
want to develop in both C++ and JAVA. If we develop two sets, we will need to
maintain and update both in the future. Antoher choice is we develop this tool
in JAVA using JDBC and C++ wrapper to call JAVA code (I don't know whether
there exist some open source available) or we develop this tool in C++ to
connect database and call C++ by JNI (m
F****n
发帖数: 3271
2
Surely you should use Java to call C++ library.

we
to
tool

【在 l******o 的大作中提到】
: Crrently we try to develop a library (utility) that needs to connect oracle
: database. We already have a bunch of C++ libraries. For future and purpose, we
: want to develop in both C++ and JAVA. If we develop two sets, we will need to
: maintain and update both in the future. Antoher choice is we develop this tool
: in JAVA using JDBC and C++ wrapper to call JAVA code (I don't know whether
: there exist some open source available) or we develop this tool in C++ to
: connect database and call C++ by JNI (m

e***g
发帖数: 158
3
CORBA over RMI works for you first option.
the connectivity of two system is kind of trivial and established,
I would definitely choose java for database access.

【在 l******o 的大作中提到】
: Crrently we try to develop a library (utility) that needs to connect oracle
: database. We already have a bunch of C++ libraries. For future and purpose, we
: want to develop in both C++ and JAVA. If we develop two sets, we will need to
: maintain and update both in the future. Antoher choice is we develop this tool
: in JAVA using JDBC and C++ wrapper to call JAVA code (I don't know whether
: there exist some open source available) or we develop this tool in C++ to
: connect database and call C++ by JNI (m

w******n
发帖数: 692
4
Your solution is smart. But too much hassle in deployment. I remember
there are some open source projects to connect COM+ from Java. You could
try JACE.

oracle
purpose, we
to
tool

【在 e***g 的大作中提到】
: CORBA over RMI works for you first option.
: the connectivity of two system is kind of trivial and established,
: I would definitely choose java for database access.

F****n
发帖数: 3271
5
I would say use JNI. These COM-Java bridge stuffs are really buggy. I have
used them before one time and will never touch them. Actually JNI is very good
and powerful from the functional perspective.

need
this
whether
to

【在 w******n 的大作中提到】
: Your solution is smart. But too much hassle in deployment. I remember
: there are some open source projects to connect COM+ from Java. You could
: try JACE.
:
: oracle
: purpose, we
: to
: tool

c*****a
发帖数: 15
6
I think it is the best to just keep the two independent.
If I am your product user, I don't want to install the whole JRE and JDBC
drivers stuffs just for using your c++ library.
Same thing if you give me a java solution, if would be really wired if I still
have to install a dll or something like that.
If a good service layer is defined between your domain model and database. The
maintainence perhaps not that difficult. The domain logic parts which are the
most difficult to develop are going to

【在 l******o 的大作中提到】
: Crrently we try to develop a library (utility) that needs to connect oracle
: database. We already have a bunch of C++ libraries. For future and purpose, we
: want to develop in both C++ and JAVA. If we develop two sets, we will need to
: maintain and update both in the future. Antoher choice is we develop this tool
: in JAVA using JDBC and C++ wrapper to call JAVA code (I don't know whether
: there exist some open source available) or we develop this tool in C++ to
: connect database and call C++ by JNI (m

B******N
发帖数: 445
7
你这叫杀鸡用宰牛刀。Corba基本要死掉了个人觉得。
如果不想分开的话。当然用JNI call dll。复杂的business logic要在dll里。调用不能
太频凡。JNI还是expensive的。

oracle
purpose, we
to
tool

【在 e***g 的大作中提到】
: CORBA over RMI works for you first option.
: the connectivity of two system is kind of trivial and established,
: I would definitely choose java for database access.

F****n
发帖数: 3271
8
RMI就用CORBA, 会死吗


need
this
whether
to

【在 B******N 的大作中提到】
: 你这叫杀鸡用宰牛刀。Corba基本要死掉了个人觉得。
: 如果不想分开的话。当然用JNI call dll。复杂的business logic要在dll里。调用不能
: 太频凡。JNI还是expensive的。
:
: oracle
: purpose, we
: to
: tool

1 (共1页)
进入Java版参与讨论
相关主题
Re: 问一个关于Java Native Interface的问题Java会产生更多的page fault导致速度变慢
need help from the J2EE expert你们谁去劝一下goodbug要点脸?
Calling Java from C/C++JVM crashes on Linux
[转载] using C++ dll library from java问一个Java题
Java能帮我做这个project吗?Fatal Error怎么回事?
请教若干问题Re: JAVA中测时间的方法?
什么应用需要几百个节点的java呢java可以调用dll吗?
迷惑了很久,java 和 c++ 到底谁快?NoClassDefFoundError
相关话题的讨论汇总
话题: c++话题: java话题: develop话题: jni话题: tool