Topic: 糊涂了---C/S模式的困惑

  Print this page

1.糊涂了---C/S模式的困惑 Copy to clipboard
Posted by: wind520sand
Posted on: 2005-12-16 19:59

我们要搞个图书馆系统.一部分用C/S模式,一部分用B/S模式.现在我就考虑一个问题.就是假如我现在把整个系统搞顶了.那么在C/S的那部分怎么进行通信呢?我知道在B/S下利用网络http协议就可以在不同的地方实现通信了.但是在C/S模式下,我把该系统装在不同的地方,假设在同一个局域网中,无论是B/S还是C/S他们的服务器端是相同的,那么对于C/S来说.怎么实现呢?

2.Re:糊涂了---C/S模式的困惑 [Re: wind520sand] Copy to clipboard
Posted by: cjyzpcl
Posted on: 2005-12-30 13:07

在服务器上建立soap服务,用web service,或者直接模拟实现http协议,推荐第一个。

3.Re:糊涂了---C/S模式的困惑 [Re: wind520sand] Copy to clipboard
Posted by: ken0719
Posted on: 2005-12-31 09:17

Messages are sent with socket in the c/s application.

4.Re:糊涂了---C/S模式的困惑 [Re: wind520sand] Copy to clipboard
Posted by: icystorm
Posted on: 2006-01-05 12:19

假如你的数据库是sql 2000,安装SQL Server Type4这个驱动,将安装后得到的三个jar文件添加到你的工作环境中
try{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
}
catch (ClassNotFoundException ee)
{
}
public static Connection getconn() throws SQLException {
return DriverManager.getConnection(jdbc:microsoft:sqlserver://local:1433;"DatabaseName=North;User=sa;Password=sa");
}

可以将jdbc:microsoft:sqlserver://local,写到一个文本中,在客户端中将local改成目标源的名称,这样可以在同一个局域网内访问主机了

5.Re:糊涂了---C/S模式的困惑 [Re: wind520sand] Copy to clipboard
Posted by: blueoxygen
Posted on: 2006-01-06 17:22

http://202.103.54.4/jws/demo.jnlp
web start解决广域网部署.
你想做的是谁和谁通信啊?没听明白

6.Re:糊涂了---C/S模式的困惑 [Re: icystorm] Copy to clipboard
Posted by: cjyzpcl
Posted on: 2006-01-07 20:31

icystorm wrote:
假如你的数据库是sql 2000,安装SQL Server Type4这个驱动,将安装后得到的三个jar文件添加到你的工作环境中
try{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
}
catch (ClassNotFoundException ee)
{
}
public static Connection getconn() throws SQLException {
return DriverManager.getConnection(jdbc:microsoft:sqlserver://local:1433;"DatabaseName=North;User=sa;Password=sa");
}

可以将jdbc:microsoft:sqlserver://local,写到一个文本中,在客户端中将local改成目标源的名称,这样可以在同一个局域网内访问主机了

我估计他要的不是这个.


   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