client

osgi - multiple instances of a service

落花浮王杯 提交于 2019-12-12 05:14:18
问题 How can I create multiple instances of a bundle that consumes an external webservice? An external webservice requires clients to logon before using the services. I have multiple accounts. The problem is I want to be able to add multiple instances; one for each account. Each instance is an osgi declarative service that consumes the external service. Do I have to deploy a new bundle for each account? This does not feel like the right way to solve this. 回答1: Is that bundle under your control -

Show only some contents of a folder in a client/server in C

混江龙づ霸主 提交于 2019-12-12 04:54:45
问题 I'm developing a client/server program in C where I want to see the file contents in a folder. The program works, but I would to see only a .txt file, not all the files. How can I do this? Thank you! DIR *dp; int rv,rv1,stop_received,nread2; struct dirent *ep; char buffer[300],appoggio[1000],buffer2[300]; dp = opendir ("./"); if (dp != NULL){ while (ep = readdir(dp)){ if ((strcmp(ep->d_name, ".") == 0) || (strcmp(ep->d_name,"..") == 0) || (strcmp(ep->d_name, "SERVERD.c\0") == 0) ||(strcmp(ep-

Sorting items in OPC Server

我只是一个虾纸丫 提交于 2019-12-12 04:53:40
问题 We are trying to implement an OPC Server, with a specific objects structure, as you can see in the following example: Node X Item 1 Item 2 Item 3 Item 4 Item 5 Item 6 Item 7 ... (till 300) Node Y ... But, for some strange reason, in several OPC clients the items are shown like this: Node X Item 3 Item 11 Item 22 Item 33 Item 44 Item 55 Item 4 ... (till 300) Node Y ... Our main problem is about sorting the items in the list. As you can see in the screenshot the items are not shown sorted in

Server/client not sending or receiving data through socket [Java]?

旧街凉风 提交于 2019-12-12 04:43:26
问题 I set up a server/client chat program. What's supposed to happen is a server is setup that can A) read from clients, A2) take what's read from clients and send it to all other clients or B) take input from the console to write to clients. The clients can read from the server and ask it to send messages (which are also read from the console). There are three files : Maim.java (will be used for other purposes later; now is just boilerplate for the Server class) Host.java (server) Client.java

EXCEPTION: java.nio.channels.NotYetConnectedException for a socket client with netty 3.10.6

↘锁芯ラ 提交于 2019-12-12 04:29:54
问题 i need to connect to a server and i'm following the code below for same: package SocketServer; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.InetSocketAddress; import java.nio.channels.Channel; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import org.jboss.netty.bootstrap.ClientBootstrap; import org.jboss.netty.channel.ChannelFactory; import org.jboss.netty.channel.ChannelFuture; import org.jboss

Oracle instant client status

六眼飞鱼酱① 提交于 2019-12-12 04:24:46
问题 I saw some presentations about a very promising product "Oracle Instant Client". Could you tell me what is the status of this product? Is it really used? How is the support from Oracle? It seems to be kind of equivalent to the thin driver for Java. Is it really something as simple as unzip, modify 1 or 2 environment variables and run your client application? http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html http://www.dbatoolz.com/t/installing-oracle

Python Client Server Transfer .txt Not Writing to File

喜夏-厌秋 提交于 2019-12-12 04:07:54
问题 I'm trying to write a simple client/server in Python using a TCP socket but I can't seem to figure out why the file is not transferring. Client: import socket HOST = '' #server name goes in here PORT = 3820 socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) socket.connect((HOST,PORT)) fileToSend = open('myUpload.txt', 'rb') while True: data = fileToSend.readline() if data: socket.send(data) else: break fileToSend.close() print 'end' socket.close() exit() The print end is just to tell

Correct use of SOAP WS services

寵の児 提交于 2019-12-12 04:06:27
问题 I'm deploying a SOAP WS service using AXIS2 as a framework on top of Tomcat. package serverPerson; public interface PersonService { public Dipartimento getPersonInfo(Person p); public double multiply(float d1, float d2); } implementation: package serverPerson; public class PersonServiceImpl implements PersonService { //method implementations omitted } I'm trying to use this services in the following way: package com; import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; import serverPerson

How to multiplie clients [closed]

夙愿已清 提交于 2019-12-12 03:46:42
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year . This is a part from a code that make connection between server to client. i want to multiplie the client. appriciate help. import socket, pickle import threading BUF_SIZE = 8192 class Network(threading.Thread): def __init__(self,frame): threading.Thread.__init__(self) self.frame = frame self.server

Using A Third Party Application To Send Data To An Already Open TCP Connection?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 03:45:23
问题 I am running a client program that communicates with a server using TCP sockets. When I start the client it immediately creates a socket connection with the server and does not close the connection. What I am wondering is, can I create another application (independent of the client/server apps) that sends data on this already open socket? I know of a program that seems to do exactly this. The program is designed to sniff packets between the client and server and also allow you to send data on