Network communication Xacute applets client - Mii server
Hi all,
I have a rather technical question.
Does anybody know what goes on from a network communication point of view when an applet on a irpt-page gets executed and fetches data from the Mii server?
Do these applets use RMI or some other method?
It's because we might have network issues, and I would like to know how the applets work on network level.
Our architecture is as follows:
On the client an irpt page is displayed in a browser (MSIE). The irpt page contains applets generated by Xacute queries. We also rely a lot on JS.
The client application communicates with the Mii server over the WAN.
So if someone can tell me which ports are used by the applets, would be great!
W.
Ok, on the server side indeed the applets connect to 5nn00. I love the debug option!
Now, on our WAN we have defined a QoS, for traffic prioritizing. So certain port numbers (or ip-adresses) get priority over the network. We added port 52000 (used by Mii) to this QoS, but unfortunately the traffic does not get prioritized.
The problem is that on the client side (Mii HTTP application), we cannot control which ports are opened (that's the OS).
On client side it could be port 4000 to 65999 or something. When we do port-prioritizing, this can never work.
So how do we configure our QoS? Prioritize everything going to and coming from the Mii server?
Anyone experience with that? I know it's not directly related to SAP and Mii, but when working with Mii one stumbles onto all kind of technologies
cheers!
Similar Messages
-
Communication between client and server
I am using sockets for communication between the client and the server. is there any other way that i can use for communication between the client and server???
Plenty of ways: JMS, SOAP, RMI, a RESTful API, writing-files-to-a-shared-directory-on-the-disk, Sneakernet, ...
Some of them use sockets (or better TCP/IP) as the underlying protocol.
But to give you a good answer, you would have to tell us why you want a different way. I hope you're not searching for a different way just for the sake of being different. -
Communication between two jvm (client and server)
Hi ,
I want to access the UME service of the SAP J2EE Container using a stanalone client application.
So the client would be running on remote JVM.
Here we use the JNDI service to communicate between the client and server.
p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
p.put(Context.PROVIDER_URL, providerURL.trim());
p.put(Context.SECURITY_PRINCIPAL, securityPrinciple.trim());
p.put(Context.SECURITY_CREDENTIALS, securityCredentials.trim());
Context ctx = (Context) new InitialContext(p);
Object objRef = ctx.lookup(ejbName.trim());
I want to know that is the communication between the client and server secured in this scenario
Best Regards
ManojOkay, the client and server VMs are different implementations of the Hotspot engine. Hotspot basically takes the Java bytecode from your .class files and turns it into native machine instructions at runtime. (The optimizations are actually much more complex than that, but that's the basic concept.)
The client VM is so named because it's designed to be used for GUI-type applications interacting with the user. It is designed to have a quicker startup and smaller memory footprint.
The server VM uses more memory and is typically slower at starting up than the client VM, but can often perform ridiculously fast. This of course depends completely on the particular code being run, and you should probably profile and see which VM works better for your application.
Some interesting optimizations are performed by the 1.4.1 server VM, such as: removal of array-bounds checks (when it determines that the index can't become out of bounds), inlining of methods, and more.
Here is a link to more info if you're interested:
http://java.sun.com/products/hotspot/docs/whitepaper/Java_HotSpot_WP_Final_4_30_01.html -
Client to Server upload: File size limit
Hi,
I am utilising java sockets to set up 2 way communication between a client and server program.
I have successfully transferred files from the client to the server by writing/using the code shown below.
However I now wish to place a limit on the size of any file that a user can transfer
to the server. I think a file size limit of 1 megabyte would be ideal. Does anyone know a straightforward
way to implement this restriction (without having to perform major modification to the code below)?
Thanks for your help.
*****Extract from Client.java******
if (control.equals("2"))
control="STOR";
System.out.print("Enter relevant file name to be sent to server:");
String nameOfFile = current.readLine(); //Read in the name of the file to be sent, store in a
addLog("File name to be sent to server: " +nameOfFile);
if(checkExists(nameOfFile)) //Call the checkExists method to make sure the user is sending a
infoOuputStream.writeUTF(control);
infoOuputStream.writeUTF(nameOfFile); //write the file name out to the socket
OutputStream out = projSocket.getOutputStream(); //open an output stream to send the data
sendFile(nameOfFile,out);
addLog("File has been sent to server " +nameOfFile );
else
System.out.println("Error: The file is invalid or does not exist");
addLog(" The user has attempted to send a file that does not exist" +nameOfFile);
private static void sendFile ( String file, OutputStream output ) {
try {
FileInputStream input = new FileInputStream ( file );
int value = input.read();
while ( value != -1 ) {
output.write ( value );
value = input.read();
output.flush();
catch ( Exception ex ) {
*****Extract from Server.java******
if (incoming.equals("STOR"))
String filename = iStream.readUTF(); //read in the string object (filename)
InputStream in = projSock.getInputStream();
handleFile ( in, filename ); //read in the file itself
addLog("File successfully sent to server: " +filename); //Record the send event in the log file
System.out.println("Send Operation Successful: " + filename);
private static void handleFile ( InputStream input, String file ) {
try {
FileOutputStream output = new FileOutputStream ( file );
int value = input.read();
while ( value != -1 ) {
output.write ( value );
value = input.read();
output.flush();
catch ( Exception ex ) {Thanks for the advice. Have it working perfectly nowGlad it helped. You have no idea how refreshing it is that you didn't respond with, "Can you send me the code?" Nice to see there are still folk posting here who can figure out how to make things work with just a pointer or two...
Grant -
Client /server model of network communication
can some some tell me what is meant by the client / server model of network communication?
See this networking tutorial
http://java.sun.com/docs/books/tutorial/networking/index.html
You could have asked both questions in the same post, as they are related. -
Certificate Exception - applet client to java server with SSL
Hi,
I'm having some trouble getting SSL working and hope
someone can shed some light. I've been plowing through
these forums for a couple of days - seems lots of folks
have had this problem but I can't find a clear solution.
I've written a server in java. The client is an applet.
This is an internet app so I have no control over
configuring clients. I'm trying to prove SSL communication from the applet to my server. This is
commercial software so the customer would put their own
keys on the machine and resign the applet before deploying.
I've created a keystore with keytool. Then I self-
signed it. Then I signed my applet jarfile. I've even tried exporting the certificate and importing using the java plug-in control panel
(obviously not something I can do in the real world but
just wanted to see if that was it). I start up my server
and navigate to a web page to start the applet. For
development purposes, I'm doing this all on one machine. I'm running jdk 1.4.1_02. We're requiring the
Sun plug-in as our client java VM.
Once the client starts to connect, I get this error in
the plug-in console:
java.security.cert.CertificateException: Couldn't find trusted certificate
On my server, I get:
Wed May 14 16:27:46 EDT 2003 [EXCEPTION]: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at com.pactolus.webBroker.psWebLegClientThread.run(psWebLegClientThread.java:130)
at java.lang.Thread.run(Thread.java:536)
The client code is pretty simple:
SSLSocketFactory factory = (SSLSocketFactory)
SSLSocketFactory.getDefault();
tcpSocket = (SSLSocket) factory.createSocket(addr,
iPortNbr);
tcpSocket.setUseClientMode(true);
tcpSocket.startHandshake();followed by a thread kick-off which will listen on the
socket for incoming messages.
The server code is:
SSLContext sslCtxt = SSLContext.getInstance("SSL");
KeyManagerFactory kmf = KeyManagerFactory.getInstance
("SunX509");
KeyStore ks = KeyStore.getInstance("JKS");
char[] password = keyPassword.toCharArray();
ks.load(new FileInputStream(keyFile), password);
kmf.init(ks, password);
sslCtxt.init(kmf.getKeyManagers(), null, null);
SSLServerSocketFactory factory =
sslCtxt.getServerSocketFactory();
secureTCPSocket = (SSLServerSocket)
factory.createServerSocket(port);
secureTCPSocket.setNeedClientAuth(false);followed by a thread kick-off which will listen for
connections and spin-off other threads to manage each
client socket.
I'm pretty much at my wits end. As I said, seems lots of
folks have had this problem but I haven't yet seen a
firm answer.
If anyone can shed some light on this so I can get my
proof of conecept going, I would really appreciate it -and buy you a couple of beers!
Thanks,
Scott JohnsonProblem resolved! It was the certificate. I can get it working in a test scenario by using the test certs file
provided with the jdk on the client and server sides.
So, does this mean that I MUST use a certificate from
one of the known authorities as delivered with the JDK?
My applet will be used by internet clients. I'm requiring
the sun plug-in. Is it true there is no way to get
a certificate I've created to be presented to the client
so it can choose to add it to it's trusted authorities?
I am required to use, say, a Verisign certificate?
I can get my sample working but only if I place a
jssecacerts (a copy of the samplecacerts) where both the client and server can get at it. In the real world, I can't do that on the client.
Presumably the client will only have the cacerts that was delivered with the Sun plug-in. I'm restricted, then, to using a server key file signed with a certificate from
one of the providers found in the cacerts file? Or, can
I present to the client a certificate which it can
choose to accept as trusted and place in it's cacerts file? Any info would be appreciated - I've already
committed those duke bucks!
Scott
Hi,
I'm having some trouble getting SSL working and hope
someone can shed some light. I've been plowing
through
these forums for a couple of days - seems lots of
folks
have had this problem but I can't find a clear
solution.
I've written a server in java. The client is an
applet.
This is an internet app so I have no control over
configuring clients. I'm trying to prove SSL
communication from the applet to my server. This is
commercial software so the customer would put their
own
keys on the machine and resign the applet before
deploying.
I've created a keystore with keytool. Then I self-
signed it. Then I signed my applet jarfile. I've
even tried exporting the certificate and importing
using the java plug-in control panel
(obviously not something I can do in the real world
but
just wanted to see if that was it). I start up my
server
and navigate to a web page to start the applet. For
development purposes, I'm doing this all on one
machine. I'm running jdk 1.4.1_02. We're requiring
the
Sun plug-in as our client java VM.
Once the client starts to connect, I get this error
in
the plug-in console:
java.security.cert.CertificateException: Couldn't find
trusted certificate
On my server, I get:
Wed May 14 16:27:46 EDT 2003 [EXCEPTION]:
javax.net.ssl.SSLHandshakeException: Received fatal
alert: certificate_unknown
javax.net.ssl.SSLHandshakeException: Received fatal
alert: certificate_unknown
at
com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(Dasho
6275)
at
com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(Dasho
6275)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA627
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA627
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA627
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA627
at
com.sun.net.ssl.internal.ssl.AppInputStream.read(Dasho
6275)
at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDec
der.java:406)
at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDeco
er.java:446)
at
sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
at
java.io.InputStreamReader.read(InputStreamReader.java:
67)
at
java.io.BufferedReader.fill(BufferedReader.java:136)
at
java.io.BufferedReader.readLine(BufferedReader.java:29
at
java.io.BufferedReader.readLine(BufferedReader.java:36
at
com.pactolus.webBroker.psWebLegClientThread.run(psWebL
gClientThread.java:130)
at java.lang.Thread.run(Thread.java:536)
The client code is pretty simple:
SSLSocketFactory factory = (SSLSocketFactory)
SSLSocketFactory.getDefault();
tcpSocket = (SSLSocket) factory.createSocket(addr,
iPortNbr);
tcpSocket.setUseClientMode(true);
tcpSocket.startHandshake();followed by a thread kick-off which will listen on
the
socket for incoming messages.
The server code is:
SSLContext sslCtxt = SSLContext.getInstance("SSL");
KeyManagerFactory kmf = KeyManagerFactory.getInstance
("SunX509");
KeyStore ks = KeyStore.getInstance("JKS");
char[] password = keyPassword.toCharArray();
ks.load(new FileInputStream(keyFile), password);
kmf.init(ks, password);
sslCtxt.init(kmf.getKeyManagers(), null, null);
SSLServerSocketFactory factory =
sslCtxt.getServerSocketFactory();
secureTCPSocket = (SSLServerSocket)
factory.createServerSocket(port);
secureTCPSocket.setNeedClientAuth(false);followed by a thread kick-off which will listen for
connections and spin-off other threads to manage each
client socket.
I'm pretty much at my wits end. As I said, seems lots
of
folks have had this problem but I haven't yet seen a
firm answer.
If anyone can shed some light on this so I can get my
proof of conecept going, I would really appreciate it
-and buy you a couple of beers!
Thanks,
Scott Johnson -
Socket communication between client and server
Hi all,
I am doing an assignment for communication between java client and java server using sockets. This communication is in the form of XML documents. I am facing a problem in this communication.
Actually at Server side I'm creating an XML document(Document type object) using DocumentBuilderFactory in javax.xml.parsers package and transforming this Document into a stream using StreamResult.
My code is :
Transformer xmlTransformer = TransformerFactory.newInstance().newTransformer();
StreamResult xmlString = new StreamResult(currentClientHandler.getSocketOutputStream());
DOMSource xmlDocSource = new DOMSource(xmlDocument); // xmlDocument is Document type reference
xmlTransformer.transform(xmlDocSource, xmlString);
so, this xmlString(i.e. StreamResult) is passed directly into the output stream. Here I need to close() output stream after transform() call to help SAX parser to know about end of stream.
Now at Client side, I am parsing this stream using SAX parser. It parses this correctly. But when sending some another data back to Server when client opens output stream, it given Socket closed exception. I know that closing input or output stream closes socket. But in my problem, I have to send data in streams and not by using files or byte[] etc.
So what is nearest solution to problem ??
Plz help me. Any kind of help will be greatly appreciated.hi
thanks for ur reply.
I didnt get any error msg while getting the back the datas.
Actually i divided my application into two parts.
My application will act as both server and client.
server ll get the browser request and send to the client and the client will send that data to the c++ server.
Im able to do that.and unable to get the data from server.
Didnt get any error.
can u tell me how to make an application to act as both client and server.
I think im wrong in that part.
thanks a lot -
Client Applet and EJB Server problem
Hi,
I developed a applet client that tries to connect to an EJB on the server side. The Applet runs okay in JDev3 but if I deploy it and test it outside the JDev tool I get an error. I tracked the problem to the following line of code:
ic = new InitialContext(environment);
Do I run into an applet security problem? If so what do i have to do to allow the applet to read/write to the local system?
Thanks for any hints!
Peter
Error I get
JAR cache enabled.
Opening http://pete/gateway/clientmanagement.jar no proxy
CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\clientmanagement[1].jar
Creating an initial context
Opening http://pete/gateway/oracle/oas/container/nls/Version_en_US.class no proxy
CacheHandler file name: null
nullHi,
I have still problems getting the client applet running. I tested it with the appletviewer and I modified the security.policy file. I allow the applet to almost everthing but i still get the following error:
What do I do wrong? Do I really have to sign the jar file? Do I miss some stub classes?
Thanks for any hints...
Peter
JAR cache disabled.
Opening http://pete/Gateway/. no proxy
Opening http://pete/Gateway/. no proxy
Opening http://pete/Gateway/test/Client.class no proxy
CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client[1].class
Opening http://pete/Gateway/test/Client$1.class no proxy
CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client$1[1].class
Creating an initial context
Looking for the EJB published as 'Gateway/GatewayProcessorRemote'
Opening http://pete:80/_RMProxyURL_ no proxy
Naming exception!
[Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265)
at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
at oracle.oas.jndi.oas.BeanInitialContext.resolve(BeanInitialContext.java:265)
at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
at oracle.oas.jndi.oas.BeanInitialContext.lookup(BeanInitialContext.java:165)
at oracle.oas.jndi.oas.WrapperContext.lookup(WrapperContext.java:78)
at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:422)
at javax.naming.InitialContext.lookup(InitialContext.java:288)
at test.Client.initializeEJB(Client.java:104)
at test.Client.startButton_actionPerformed(Client.java, Compiled Code)
at test.Client$1.actionPerformed(Client.java:55)
at java.awt.Button.processActionEvent(Button.java:308)
at java.awt.Button.processEvent(Button.java:281)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
null -
How to get started on java applet client/server game?
Hi,
I've googled, but didn't find any useful information about creating java applet client/server game. I've followed the example of Client/Server Tic-Tac-Toe Using a Multithreaded Server in Java How to Program from Deitel, but I when I tried on Applet, my cliet doesn't communicate with the server at all. Any help to get started with Applet would be great. Thanks!well, i decided to put in portion of my codes to see if anyone can help me out. the problem I have here is the function excute() never gets called. here is my coding, see if you can help. Notice, I'm running this on Applet thru html page. This shouldn't be much different than running JFrame in term of coding right?
Server.java
public void init()
runGame = Executors.newFixedThreadPool(2);
gameLock = new ReentrantLock();
otherPlayerConnected = gameLock.newCondition();
otherPlayerTurn = gameLock.newCondition();
players = new Player[2];
currentPlayer = Player1;
try
server = new ServerSocket(12345, 2);
catch (IOException ie)
stop();
message = "Server awaiting connections";
public void execute()
JOptionPane.showMessageDialog(null, "I'm about to execute!", "Testing", JOptionPane.PLAIN_MESSAGE);
for(int i = 0; i < players.length; i++)
try
players[i] = new Player(server.accept(), i);
runGame.execute(players);
catch (IOException ie)
stop();
gameLock.lock();
try
players[Player1].setSuspended(false);
otherPlayerConnected.signal();
finally
gameLock.unlock();
Client.java
public void init()
startClient();
public void startClient()
try
connection = new Socket(InetAddress.getByName(TienLenHost), 12345);
input = new Scanner(connection.getInputStream());
output = new Formatter(connection.getOutputStream());
catch (IOException ie)
stop();
ExecutorService worker = Executors.newFixedThreadPool(1);
worker.execute(this);
}So after worker.execute(this), it should go to Server.java and run the function execute() right? But in my case, it doesn't. If you know how to fix this, please let me know. Thanks! -
How can an client-applet connect to server-DB?
as the subject.
I want the applet@client-side connect to DataBase@server-side,
I am using Tomcat as engine & JDBC-mysql as tools
where should the jdbc class placed in? WEB-INF/classes ? WEB-INF/lib ?? or others?
now i am facing the problem that the applet seems cannot access WEB-INF and cannot locate the jdbc driver.
could anybody give me some hints?
thank you very muchHello
I don't know the answer, sorry. This is the jdb (java debugger) tool forum.
You might want to post your question over on the JDBC forum.
Try this link:
http://forum.java.sun.com/forum.jsp?forum=48 -
JSSE Client and server communication problem .err:untrusted server cert
Hai all,
I am trying to communicate JSSE client and server.
I have created root.cert(CA),root.key,server.cert,server.key , client.cert and client.key. All these certificates are created using openssl.
I have placed root.cert in default keystore cacerts.
I have created a keystores(server & client) name mykeystore.
I have placed root.cert and client.cert in the client keystore.
I have placed root.cert and server.cert in the server keystore.
But during the run time i am getting javax.net.ssl.SSLException: untrusted server cert chain.
please suggest the modifications needs to be done to fix the error.
please tell me In the client keystore and in the server keystore....what certificates we need to put?
whether my approach as said above is correct or not?
In java code how to specify this particular certificate we are referring?
I have coded in this way ....
SSLContext ctx;
KeyManagerFactory kmf;
KeyStore ks;
char[] prasad = "prasad".toCharArray();
ctx = SSLContext.getInstance("SSLv3");
kmf = KeyManagerFactory.getInstance("SunX509");
ks = KeyStore.getInstance("jks");
ks.load(new FileInputStream("mykeystore"), prasad);
kmf.init(ks, prasad);
ctx.init(kmf.getKeyManagers(), null, null);
factory = ctx.getSocketFactory();
But my doubt is we are specifying only keystore name with that how it will check root.cert(ca) and client.cert and server.cert?
Is there any modifications need in my code?
Please tell me some way ...
Thanks ,
Prasad.Hi prasad,
There will be a problem with the certificates being received from thr remote server or client. Check that your trust store contains the certificate of the remote machine or the CA that signed it and that the certificate has not expired.
Also be sure that both machines are using the latest version of the JSSE.
Hope this will help you.
Regards,
Anil.
Technical Support Engineer. -
Socket Communication between java client and c++ server
HI,
In my project,I want to do the following:
1.Sending datas from client to server.
2.Getting the response from server to client.
I written the client in java.but the server is in c++.
Is it possible to communicate with the server using java codings itself?
Im able to send the data from my java client to the server.
but unable to get back the datas from server to client.
Can anyone tell me how to do this?
thanks a lothi
thanks for ur reply.
I didnt get any error msg while getting the back the datas.
Actually i divided my application into two parts.
My application will act as both server and client.
server ll get the browser request and send to the client and the client will send that data to the c++ server.
Im able to do that.and unable to get the data from server.
Didnt get any error.
can u tell me how to make an application to act as both client and server.
I think im wrong in that part.
thanks a lot -
Communication between two clients
In Java Networking, communication between server-client or bwtween server-multiple clients is general. But How will be the communication between two cients, means two clients can send & receive messages to & from each other(being guided by server).
Sorry,
I didn't get your reply clearly.
I want, if Server is running, and two clients(two instance of a same program) are opened, whatever message(string)client1 send to Server,then the Server needs to send those to client2.Again, the some response should come from client2 to client1 thru Server.
How can I implement this?
If you have idea, or some sample code about this, please let me know.
Regards. -
Servlet Transaction engine for 5000 Applet Clients
Hi,
We want to develop transaction server for 5000 client terminals using java client and server based method.
That means, there 5000 numbers of terminals will send request to server frequently and get the response also.
The transaction data will be stored in the oracle database also. For this needful how do I architech the system.
We prefer Applet (Swing) will be the client application and servlet will be the server application which will run inside the application server.
So if any one have experience on this kind of project please guide me system design.
Apart from this Applet & Server communication, is there any framework which will give the best solution for our requirement.
Our application is same like ATM machine transaction. Like ATM machine, how should i define the server engine and client tier application.
by
dhayaHi,
We want to develop transaction server for 5000 client terminals using java client and server based method.
That means, there 5000 numbers of terminals will send request to server frequently and get the response also.
The transaction data will be stored in the oracle database also. For this needful how do I architech the system.
We prefer Applet (Swing) will be the client application and servlet will be the server application which will run inside the application server.
So if any one have experience on this kind of project please guide me system design.
Apart from this Applet & Server communication, is there any framework which will give the best solution for our requirement.
Our application is same like ATM machine transaction. Like ATM machine, how should i define the server engine and client tier application.
by
dhaya -
after some year work with SQL server 2005,i decide change to SQL server 2008 R2.
When i completed install SQL 2008 R2,i can't connected to SQL server due to this following error
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (.Net SqlClient Data Provider)
And when i click to technical details,i take some thing like this
===================================
Cannot connect to HUY-PC\SQLEXPRESS.
===================================
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (.Net SqlClient Data Provider)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476
Error Number: -1
Severity: 20
State: 0
Program Location:
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
Please!!!Some body help me solve this problem(except format my computer),i really really need your advice.Hi huydaibang,
The older version SQL Server 2005 could be installed with SQL Server 2008 R2 side-by-side. It could not be the problem.
The reason that we get this error message is the client stack could not receive SSRP response UDP packet from SQL Browser.
Here are the steps:
1) Make sure your server name is correct, e.g., no typo on the name.
2) Make sure your instance name is correct and there is actually such an instance on your target machine.
3) Make sure the server machine is reachable, e.g, DNS can be resolve correctly, you are able to ping the server (not always true).
4) Make sure SQL Browser service is running on the server.
5) If firewall is enabled on the server, you need to put sqlbrowser.exe and/or UDP port 1434 into exception.
For more information, please refer to
http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx.
Thanks,
Maggie
Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
TA44551 The charger cable doesn't go in the iPod
Why is the charger cable thing not going in the iPod touch
-
Table name for the field FAEDT(net due date)
hi every body, plz can any body tell me the table name for the field net due date(FAEDT). its very very urgent thanq.
-
PLEASE HELP!!!! 4S wont send messages and call, was working fine!
Was working fine this morning but when i went to send a text message at lunch they wont send! its as if i dont have any credit but i know i do! If i try to call #125# which is my providers homepage it wont work but if i miss the last # it will ring!
-
Applications and multilanguage
I want to develop an application, which will be placed on a dutch language site. I was told the development of the application was best done while the browser was set to english, to prevent me from running into some language related bugs. As I unders
-
Red Snow on black areas of the LCD screen
Hello, last week my MacBook Pro 13" fell on the floor and got a hit on the side of the LCD screen. Now the LCD screen is showing a sort of red snow (like the snow on an untuned tv) on the black parts of the screen. As far as I can understand it's eit