Signal tranmission between client and server through tcp/ip
Hi everyone,I want to transmit analog signal from server to the client,I enclosed one file which is used to transfer an array of string,how can I modify the enclosed example for analog signal tranmission(numeric) and save the signal into a file "load to an ASCII file"".kindly help me to modify this code.
Thanks
regards,
Khan_khan
Attachments:
ConcatenatedStringToArray.vi 11 KB
Simple Data Client.vi 20 KB
Simple Data Server.vi 19 KB
Dear thanks for your reply and suggestion.I solve somehow the problem as enclosed in the zip file but now there is one problem that i am not getting with. When I run the project, the first array with the name of "array" gives the wrong result in some position.First all slots of array are filled with the right data but then the first index and few other index gives the wrong result.Kindly correct my error.
The second problem is ,when i increase the frequency of the signal considering also the sampling rate, it gives me unexpected data at multiple locations.Kindly correct my design so that it should work perfectly.I shall be very thankful.
Attachments:
ConcatenatedStringToArray.vi 13 KB
Simple Data Client.vi 23 KB
Simple Data Server.vi 27 KB
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. -
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 -
Oracle returns redicrect when there is NAT between client and server
I have Oracle 8i on Linux sitting behind a firewall/NAT. I have two Apache webservers that run both Tomcat and WebLogic webapps, also behind the NAT. One of them is on the same machine as the Oracle server. Those all connect just fine. I recently had to load a JBoss/Tomcat webapp (no Apache) outside the NAT which needs to talk to the Oracle server. It's using a JDBC driver, I believe calling on this class: oracle.jdbc.driver.OracleDriver. The configured URL is "jdbc:oracle:thin:@localhost:1521:qlink". Using ethereal (A GUI frontend to the packet sniffer tcpdump, which understands the TNS protocol) showed me that this is the connection request being made: "(DESCRIPTION=(CONNECT_DATA=(SID=qlink)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle)))
(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))))". I notice it uses SID, where it seems everything else I've analyzed with Ethereal is using SERVICE_NAME. I was first trying to pipe the data through an SSH tunnel. This technique works with all of Oracle's tools that I have tried it with, and with TOAD. I can connect to this Oracle server with the DBA Studio and sqlplus, over an ssh tunnel. But as soon as this JBoss/Tomcat webapp tries, Oracle returns a REDIRECT message. There are two things that strike me as odd: The REDIRECT message returns the hostname of the Oracle server and a nonstandard port; and the JBoss/Tomcat webapp doesn't seem to do anything about it. I has assumed the TNSLSNR forwarded data between 1521 and the appropirate port for requested databse. The port is the same every time, so I made sure that the hostname/port returned was reachable from the client side. But like I said, the client seemed to just ignore it and hang. Getting desparate, I then tried to open up the Oracle ports on the NAT, and use ipchains to restrict what IPs could connect to it, that yielded the same results. I've seen this webapp work with Oracle running on the same machine, both configured identically. (Running Oracle behind the NAT and using SSH tunnels gives the same configuration for JBoss/Tomcat as if I was running Oracle on the same machine)I'm pretty uninitiated with Oracle. I don't know how to verify/disprove your guess about the shared server dispatcher, or even what it means. Should I try to pursue the observation that the JDBC client specifies a SID to connect to and everything else specifies a SERVICE_NAME, or is that of little consequence? I'm not sure how to interpret the output from 'lsnrctl serv'. Here's the chunk pertaining to the database in question:
qlink has 3 service handler(s)
DISPATCHER established:120 refused:0 current:120 max:254 state:ready
D000 <machine: sark.unboundtech.com, pid: 15801>
(ADDRESS=(PROTOCOL=tcp)(HOST=sark.unboundtech.com)(PORT=41714))
qlink has 3 service handler(s)
DEDICATED SERVER established:46 refused:0
LOCAL SERVER
DISPATCHER established:0 refused:0 current:0 max:254 state:ready
D001 <machine: sark.unboundtech.com, pid: 15803>
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sark.unboundtech.com)(PORT=41716))(PRESENTATION=oracle.aurora.server.SGiopServer)(SESSION=RAW))
Presentation: oracle.aurora.server.SGiopServer
The (ADDRESS=...) is what is returned in the redirect. I created the database with dbassist using the default setup type. I'll have a look at listener.log (the name/location of a log file is actually a question I had but forgot to ask, so thanks), I don't know how to check trace output. The webserver is able to resolve the hostname being returned, and knows how to route to it.
Localhost is the correct entry. If you've never used SSH tunnels here's a quick rundown. You can tell most SSH clients to listen on an arbitraty port on your machine, and forward data to a remote IP/port from the other side. So from the webserver, I would say to forward localhost:1521 to localhost:1521 on the oracle server. So for sqlplus, for example, I setup tnsnames.ora to route connections to a particular SERVICE_NAME to localhost:1521, which is forwarded through my SSH connection, to localhost:1521 on the Oracle server. This lets gains me two things, all connections look like localhost, making my firewall rules simpler, and I get encryption through SSH (I know Oracle can do encrypted connections, but some clients might not support it, and I don't know how to set it up yet.) I am able to connect to the database over an SSH tunnel using sqlplus, from the webserver (since I ended up installing Oracle on it), so I know the connection is possible.
After reading that, you might wonder if the hostname:port returned in the redirect were accessible from the web server. They weren't at first, but opening port 1521 and 41714 for sark.unboundtech.com at the NAT, and firewalling requests from IPs other than the webserver, then giving the JDBC config sark.unboundtech.com instead of localhost with an SSH tunnell yielded identical behavior. After recieving the REDIRECT, the JDBC code doesn't seem to do anything except hang, nothing is sent to the location given in the REDIRECT response. -
Using ACE to load balance HTTP/S traffic between client & proxy server using tcp 8080
Folks,
I have a scenario where ACE is in load balancing connections to a bunch of Websense servers in a one-armed topology. ACE presents a single VIP to web browser clients and each client's browser proxy configuration is populated with the VIP DNS name. Traffic then gets load balanced between the Websense servers. The problem arises due to Websense requiring the 'X-Forwarded-For' HTTP header in order to obtain the source IP of the client.
ACE inserts this header into the standard HTTP 'proxied' traffic but doing this for HTTPS traffic has required the configuration of the ACE SSL proxy client server.
So the problem I have is this:
How to configure ACE to load balance both HTTP & HTTPS applications using a single VIP and tcp port number ie tcp 8080
The ACE hardware being used is ACE20-MOD-K9 - MODULE
I have attempted to use a L7 class map to match all ciphers and attach this to a L7 Policy-Map but the documentation highlights the fact the 'match cipher' configuration is only available on the ACE appliance.
I believe I am on the correct track. The HTTPS traffic must be identified and used to match against PolicyA and HTTP traffic matched against PolicyB
I'm looking for ideas! I'm hopeful someone must have solved this problem previously!!
Regards,
SimonHi Simon,
The classification has to work on different ports. Whether client types http or https doesn't matter to client. His request will reach VIP which will classify the traffic based on port, protocol first and then it can look into further detail to send the traffic to appropriate serverfarm.
You can class-map match-any xxxxx
2 match virtual-address x.x.x.x tcp any
and then you configure further classification on the basis of L7 like url, header etc.
But again, you will still need SSL termination on ACE.
Regards,
Kanwal
Note: Please mark answers if they are helpful. -
XML over HTTP between client and server
We are trying to pass XML between a client and servlet over HTTP.
We used the code from the StockClient/StockServlet examples as a
starting point but cannot get it to work. Basically we
have a simple command line java client that is trying to access
a VERY simple servlet. When the client tries to write data into
the output stream associated with the connection I get:
"Connection rejected: 'Login timed out after: '15000' ms....."
I have read several postings that instruct me to raise the
timeout limit, but as you can see, I surely don't need 15 seconds
to write this data out! Is there something special I need to do?
Does this have anything to do with known issue #10065
(http://www.weblogic.com/docs51/release_notes/rn_knownprob51.html)
I have followed all of the instructions in the example code
(http://www.weblogic.com/docs51/classdocs/xml.html)...
Any assistance is appreciated...
here is the client code:
import java.io.*;
import java.net.*;
public class TestClient
public static void main(String aa[])
URL url = null;
HttpURLConnection urlc = null;
PrintWriter pw = null;
file://Commented lines indicate other things I have tried
try
url = new URL("http://localhost:7001/ParserServlet");
file://urlc = url.openConnection();
urlc = (HttpURLConnection)url.openConnection();
file://urlc.setRequestProperty("Content-Type", "text/xml");
urlc.setDoOutput(true);
urlc.setDoInput(true);
file://urlc.connect();
pw = new PrintWriter(new OutputStreamWriter
(urlc.getOutputStream()), true);
pw.println("<?xml version='1.0'?><test>testing123</test>");
pw.flush();
file://urlc.disconnect();
} catch(IOException ex) {
System.out.println(ex.getMessage());
Here is the servlet code:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.net.*;
public class TestServlet extends HttpServlet
public synchronized void init(ServletConfig config) throws
ServletException
super.init(config);
System.out.println("Inside init()");
public final void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
System.out.println("Inside doPost()");
protected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
java.io.IOException
System.out.println("Inside doGet()");
Jon,
One thing is missed in your client code. When you use HTTP POST to send request,
you have two ways to tell the Web server when to stop reading from your input and
to start process your input: the first one is using "Content-Lenght" header property
to specify how many bytes you want to send to your servlet, the seocnd is use "Transfer-Code:
Chunked" and is much more complicated. I didn't see you pass "Content-Length" in
your client code, in which case, the Web server (Weblogic) cannot know the end of
your request data and could keep waiting for last byte to come out or waiting for
the socket time out (that is what you get).
Since you use servlet, not JSP, I would recommend to code in this way (it works fine
for me, no guranttee for your situation):
Client code: Use a big temprary string, or StringBuffer, or StringWriter to store
all the request data (your xml file content) before you send out the request. After
you finish to form your XML string, calculate the number of bytes (should equal to
the length of the string) and add the request header as
urlc.setRequestProperty("Content-Length", bytes_length);
I will not suggest you using PrintWriter. Think use BufferedOutputStream constructed
from URLConnection and write the bytes (use String.getBytes()) to the servlet and
then flush.
Servlet code: in the doPost() of your servlet, try to find the request data length
by calling request.getContentLength(), then open the InputStream (think to use BufferedInputStream
for performance). Read the contents from the InputStream byte by byte and counter
the number of bytes. Once you get the number of bytes as specified via request Content-Length,
break your reading loop and start whatever you want.
Hope it helps.
"Jon Clark" <[email protected]> wrote:
>We are trying to pass XML between a client and servlet over HTTP.
>We used the code from the StockClient/StockServlet examples as a
>starting point but cannot get it to work. Basically we
>have a simple command line java client that is trying to access
>a VERY simple servlet. When the client tries to write data into
>the output stream associated with the connection I get:
>"Connection rejected: 'Login timed out after: '15000' ms....."
>I have read several postings that instruct me to raise the
>timeout limit, but as you can see, I surely don't need 15 seconds
>to write this data out! Is there something special I need to do?
>Does this have anything to do with known issue #10065
>(http://www.weblogic.com/docs51/release_notes/rn_knownprob51.html)
>I have followed all of the instructions in the example code
>(http://www.weblogic.com/docs51/classdocs/xml.html)...
>
>Any assistance is appreciated...
>
>here is the client code:
>import java.io.*;
>import java.net.*;
>
>public class TestClient
>{
> public static void main(String aa[])
> {
> URL url = null;
> HttpURLConnection urlc = null;
> PrintWriter pw = null;
>
> file://Commented lines indicate other things I have tried
> try
> {
> url = new URL("http://localhost:7001/ParserServlet");
> file://urlc = url.openConnection();
> urlc = (HttpURLConnection)url.openConnection();
> file://urlc.setRequestProperty("Content-Type", "text/xml");
> urlc.setDoOutput(true);
> urlc.setDoInput(true);
> file://urlc.connect();
> pw = new PrintWriter(new OutputStreamWriter
> (urlc.getOutputStream()), true);
> pw.println("<?xml version='1.0'?><test>testing123</test>");
> pw.flush();
> file://urlc.disconnect();
> } catch(IOException ex) {
> System.out.println(ex.getMessage());
> }
> }
>}
>
>
>
>Here is the servlet code:
>
>import javax.servlet.*;
>import javax.servlet.http.*;
>import java.io.*;
>import java.net.*;
>
>public class TestServlet extends HttpServlet
>{
> public synchronized void init(ServletConfig config) throws
>ServletException
>
>
> super.init(config);
> System.out.println("Inside init()");
> }
>
> public final void doPost(HttpServletRequest request, HttpServletResponse
>response)
> throws ServletException, IOException
> {
> System.out.println("Inside doPost()");
> }
>
> protected void doGet(HttpServletRequest req,
> HttpServletResponse resp)
> throws ServletException,
> java.io.IOException
> {
> System.out.println("Inside doGet()");
> }
>}
>
>
>
>
-
Connection between SDM client and server is broken
Dear All,
First of all this is what I have
-NW04 SPS 17
-NWDS Version: 7.0.09 Build id: 200608262203
-using VPN connection
-telnet on port 57018 is succesfull
I can login to SDM server (from NWDS and from SDM GUI) I can see the state of SDM(green light), restart it, can navigate through tabs in GUI, but every time I am trying to deploy an ear i have this error:
Deployment exception : Filetransfer failed: Error received from server: Connection between SDM client and server is broken
Inner exception was :
Filetransfer failed: Error received from server: Connection between SDM client and server is broken
I have already read a lot of topics,blogs,notes but didn't find the solution.
Can anybody help me?
Best RegardsHaving same issue. Nothing helped so far... Using NWDS 7.0 SP18.
I have turned SDM tracing on and this is what I see on client side after sending first data package:
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0280/17 Client: finished sending string part"
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0280/0 Client: receive String part from Server"
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl.receiveFromServer(NetComm ..): Entering method
com.sap.bc.cts.tp.net.NetComm.receive(): Entering method
com.sap.bc.cts.tp.net.NetComm: debug "Method "receive(char[])" could not read all requested bytes. There are still 12 bytes to read"
com.sap.bc.cts.tp.net.NetComm: debug "Caught IOException during read of header bytes (-1, 43):Connection reset"
com.sap.bc.cts.tp.net.NetComm: debug " throwing IOException(net.id_000001)"
com.sap.bc.cts.tp.net.NetComm.receive(): Exiting method
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0281/1 Client: connection was broken"
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0281/0 Client: finshed sendAndReceive"
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
My connection on server is still active so I have to restart SDM server to reset and try it again.
Anyone have idea whats happening?
Edited by: skyrma on Feb 24, 2012 2:46 PM
Edited by: skyrma on Feb 24, 2012 2:47 PM
Edited by: skyrma on Feb 24, 2012 2:47 PM -
Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
I thought I will get an exception if the client or the server is not available but this is not happening.
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
How can I determine that the client or the server is no longer available?
Server
public class Server
private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
private TcpListener tcpListener;
private bool isStarted;
public event Action<string> NewMessage;
public async Task Start(int port)
this.tcpListener = TcpListener.Create(port);
this.tcpListener.Start();
this.isStarted = true;
while (this.isStarted)
var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
var cts = new CancellationTokenSource();
this.cancellationTokens.Add(cts);
await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
public void Stop()
this.isStarted = false;
foreach (var cancellationTokenSource in this.cancellationTokens)
cancellationTokenSource.Cancel();
foreach (var tcpClient in this.clients.Values)
tcpClient.GetStream().Close();
tcpClient.Close();
this.clients.Clear();
public async Task SendMessage(string message, IPEndPoint endPoint)
try
var tcpClient = this.clients[endPoint];
await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
catch (Exception exception)
private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
try
var stream = tcpClient.GetStream();
this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
while (!cancellationToken.IsCancellationRequested)
var data = await this.Receive(stream);
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
private async Task Send(NetworkStream stream, byte[] buf)
await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
await stream.WriteAsync(buf, 0, buf.Length);
private async Task<byte[]> Receive(NetworkStream stream)
var lengthBytes = new byte[4];
await stream.ReadAsync(lengthBytes, 0, 4);
var length = BitConverter.ToInt32(lengthBytes, 0);
var buf = new byte[length];
await stream.ReadAsync(buf, 0, buf.Length);
return buf;
Client
public class Client
private TcpClient tcpClient;
private NetworkStream stream;
public event Action<string> NewMessage;
public async void Connect(string host, int port)
try
this.tcpClient = new TcpClient();
await this.tcpClient.ConnectAsync(host, port);
this.stream = this.tcpClient.GetStream();
this.Process();
catch (Exception exception)
public void Disconnect()
try
this.stream.Close();
this.tcpClient.Close();
catch (Exception exception)
public async void SendMessage(string message)
try
await this.Send(Encoding.ASCII.GetBytes(message));
catch (Exception exception)
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
private async Task Send(byte[] buf)
await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
await this.stream.WriteAsync(buf, 0, buf.Length);
private async Task<byte[]> Receive()
var lengthBytes = new byte[4];
await this.stream.ReadAsync(lengthBytes, 0, 4);
var length = BitConverter.ToInt32(lengthBytes, 0);
var buf = new byte[length];
await this.stream.ReadAsync(buf, 0, buf.Length);
return buf;Hi,
Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
Console.WriteLine(exception.Message);
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
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 -
Abap proxies ( Client and Server proxies)
Hi Team
Good day to you. I am now started doing some example scenarios on ABAP proxies(ie Client and Server proxies). After going through the blogs which are avialable, i am writing this question to you for clarification.
As per my understanding, the below are the required predefined settings which i need to do in my landscape to generate abap proxies(ie client and server proxies).
My landscape includes the below systems.
System A : SAP XI 3.0 system and
System B : SAP R/3 on WAS 620
SAP R/3 predefined Steps
1.Create HTTP connection in the business system.
2.Configuration Business system as local Integration Engine.
3. Connection between Business System and System Landscape Directory.
4. Maintaining the SAP J2EE Connection Parameters for LCRSAPRFC and SAPSLDAPI in SAP J2EE engine
(Here in the step 4, i found the below needs to be done)
1. Goto J2EE Engine
2. Choose Cluster --> Server --> Services. JCo RFC provider
3. Under RFC destination specify the following:
Program ID: LCRSAPRFC
Gateway Host: <Integration Server host>
Gateway Service: <Integration Server gateway service>
Number of process: 3
4. Under Repository specify the following:
5. Choose Set.
Application Server: <Integration Server host>
(i am not able to perform the steps which comes under point 4. so please Guide me how to goto J2EE engine and configure accordingly.
5. Maintain SLD access details in Transaction SLDAPICUST.
As per my understanding, i need to do the above predefined configuration steps in SAP R/3 system (ie bussiness System) for doing Abap Client or Server proxies.
And in the meantime, i would like to know whether i need to do any predefined configuration steps in XI 3.o system also. Please check and suggest me accordingly.
Once i get clarification on predefined configuration steps, i will proceed with the example scenarios on client and server proxies which are already in SDN.
Thanks in advance.
Regards
RajHello Pavan
thanks for your response. you said that for the connection type 'H' we need to provide values for GATEWAY HOST and GATEWAY SERVICE but here i need to create the RFC destination of type 'T'. so please tell me whether i need to give the values for GATEWAY HOST and GATEWAY SERVICE for connection type 'T' also and the second thing is please tell me the difference between Application system and bussiness system accordingly to my landscape which i mentioned in my question.
I am in little confusion because as per the requirement for abap proxies in the blog they mentioned that all these setting should be done in the bussiness system (ie SAP R/3) but you are saying that Application system. so please clarify.
My landscape which i am going to use in Abap proxy generation
System A: XI 3.0
System B: R/3
Here which is bussiness system and which is application system. Pls calrify.
Thanks in advance.
Regards
Raj -
Hi ,
Iam trying to configure client and server on OEL5.5 on vmware server i ahve 2 virtual machines which are on network i want to make one machine as server and another as client so on server machine i have a database called as SERVER and iam creating a listerner for it and my listener is created i chked my listener.ora files but on termianal when i execute
LSNRCTL> STATUS LISTENER1
TNS-01101: Could not find service name
LSNRCTL>
LSNRCTL> START LISTENER1
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener1.log
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g.home.com)(PORT=2525)))
TNS-12542: TNS:address already in use
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
Linux Error: 98: Address already in use
Listener failed to start. See the error message(s) above...
and copying and pasting the contents of listener.ora file
# listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 2525))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = server)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(SID_NAME = server)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 1521))
so as there is only 2 listeners on my machine named as listener which listens at 1521(default) and another which i created listener2 listens as 2525
so please help me and let me know where iam going wrong
Thanks in advance ....
with Regards
Kavitauser12665759 wrote:
Hi ,
Iam trying to configure client and server on OEL5.5 on vmware server i ahve 2 virtual machines which are on network i want to make one machine as server and another as client so on server machine i have a database called as SERVER and iam creating a listerner for it and my listener is created i chked my listener.ora files but on termianal when i execute
LSNRCTL> STATUS LISTENER1
TNS-01101: Could not find service name
LSNRCTL>
LSNRCTL> START LISTENER1
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener1.log
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g.home.com)(PORT=2525)))
TNS-12542: TNS:address already in useThose last two lines tell the tale. Something else is running on port 2525. Why are you trying to use that port for your listener?
Use netstat to find out what process is using the port.
And as a follow-up, why configure two listeners?
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
Linux Error: 98: Address already in use
Listener failed to start. See the error message(s) above...
and copying and pasting the contents of listener.ora file
# listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 2525))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = server)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(SID_NAME = server)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 1521))
so as there is only 2 listeners on my machine named as listener which listens at 1521(default) and another which i created listener2 listens as 2525
so please help me and let me know where iam going wrong
Thanks in advance ....
with Regards
Kavita -
To_char displays different results on sql client and server
Hi,
I am executing the below query on my database with 8.1.7.4 version:
SQL> select to_char(to_date('20-OCT-07'),'D') from dual;
The following result is displayed:
T
7
When the same query is being run through sqlplus client(9.2.0.3) connecting to the same database, following result is being displayed:
SQL> select to_char(to_date('20-OCT-07'),'D') from dual;
T
6
Could anyone please explain me why is this difference and what parameter setting needs to be made to get the same result.
Thanks in advance,
VishwanathOr from the territory part of NLS_LANG OS variable :
oracle@xxx:/home/oracle# echo $NLS_LANG
AMERICAN_AMERICA.UTF8
oracle@xxx:/home/oracle# sqlplus '/ as sysdba'
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Oct 22 10:44:59 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> select to_char(to_date('20-OCT-07'),'D') from dual;
T
7
SQL> quit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
oracle@xxx:/home/oracle# export NLS_LANG=AMERICAN_FRANCE.UTF8
oracle@xxx:/home/oracle# sqlplus '/ as sysdba'
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Oct 22 10:45:38 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> select to_char(to_date('20-OCT-07'),'D') from dual;
T
6
SQL>Check it on both sites (client and server).
Nicolas. -
Differences between Dektop and Server - JS
Hello All,
Could anyone help me to have the list of differences (as an documentation) between Dektop and Server version to write JS?
Thanks,
PraveenHi Gejaraja,
I would suggest please go through the below link.
https://www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/InDesignServer/ids-sc riptingguide.pdf
thx,
csm_phil -
Hi,
I have installed FIM CM Client on one machine and FIM CM update service on another machine. Both are windows server 2008 r2 machines.
When i try to enroll a permanent smart card for a user, its shows me the following error:-
The version of OLE on the client and server machines does not match. (Exception from HRESULT: 0x80010110)
Also there is no logging done for the particular event.
I am able to change my smart card pin and view my smart card info. through the FIM CM client.
Is there a compatibility issue of FIM CM 2010 with Windows server 2008 r2?
ThanksHi,
Sorry for the delay in reply.
Please try the following steps first:
Open Powershell as Administrator
Go to Start--> Run and type wbemtest.exe.
•Click Connect.
•In the namespace text box type "root" (without quotes).
•Click Connect.
•Click Enum Instances…
•In the Class Info dialog box enter Superclass Name as "__ProviderHostQuotaConfiguration" (without quotes) and press OK. Note: the Superclass name includes a double underscore at the front.
•In the Query Result window, double-click "__ProviderHostQuotaConfiguration=@"
•In the Object Editor window, double-click HandlesPerHost.
•In the Value dialog, type in 8192
•Click Save Property.
•Click Save Object.
Under properties find the property "MemoryPerHost" or any other ones you need to modify and double click it
Change the value from 512 MB which is 536870912 to 1GB which is 1073741824
Click Save Property
Click Save Object.
•Close Wbemtest.
•Restart the computer.
And if all nodes are Windows server 2012, install the following update rollup as well:
Windows RT, Windows 8, and Windows Server 2012 update rollup: August 2013
http://support.microsoft.com/KB/2862768
If you have any feedback on our support, please send to [email protected] -
Client and Server in one process
Hi all,
I am trying to create a process which can act as both Client and Server.
How can I do this?
Thanks!AH. That's a better definition or explanation. Thanks.
This smells of a single process with multiple threads, each thread handling the basic needs of your requirements. In other words, have a thread deal with making one or more client type connections (use a main thread - the client controller - to spawn client-connection threads. This assumes you need multiplicity in your client-connection model.
Then make another thread - the server controller - to handle inbound connections, spawning a new thread for each inbound connection. Your main thread, the one that contains your main method, can watch everything that's going on and log or report what's going on in your client and server threads.
Going into specifics would be a lot to do here. Maybe someone is up for the challenge. Of course, this being a "New to Java Technology" forum, these concepts may be a bit beyond your skillset.
This is not the only way to go about solving your problem, but it's the only way I can think of at the moment given your requirements.
Hope this helps some.
Maybe you are looking for
-
Safari, still not downloading....
I tried logging in as another account, the app safari is so longer on my mac, yet i am unable to download it....i am running 10.5.5, ran software update, i attempt to download safari, and the red exclamation point shows on my drive, and says i need 1
-
Osx 10.6.8 - how to get legacy motion v5.0.5?
Hi all I am running Mac OSX 10.6.8. I can't upgrade my OSX because I need 10.6.8 to run other custom code. I went to the app store to re-install Motion 5 but the latest version requires OSX 10.9 or higher. I checked another 10.6.8 machine and it i
-
AP-Group vlan in 4.2.207
Hello everyone, I'm trying to assign a separate interface (VLAN) to the same SSID on different APs. For this I have defined a new dynamic interface with a new vlan, I also defined an additional AP group has the same default SSID but changing the inte
-
Is there a way to recover library following hard drive replacement. No backup
Is there a way to recover library following hard drive replacement? No back up.
-
Update 10.3.1.1779 - Keeps Downloading
Just changed to a Blackberry Classic and updated to the latest version of software one of which was 10.3.1.1779. I downloaded the update and restarted. Since then I have constant requests to download and install the same update. Not sure if this is a