Broadcast to specific client
Hi all,
I would like to know if it's posible to send the same data to many specific clients My goal is to avoid the overhead of copying the data to multiple outputstreams/sockets.
Thanks
There is broadcasting and multicasting.
Broadcasting works over "short distances", i.e. your local network segment. Your firewalls and routers will block it. Google for java udp broadcast. Broadcasting and UDP are inherently unreliable; if a client drops a packet, the sender won't know it. Or a client might receive packets out of order, or duplicated.
For multicasting, google for java multicast socket or even java multicast socket tutorial. Multicasting sends to a given list of clients (the multicast group).
I haven't done multicasting but I suspect multicasts may not get through routers and firewalls unless they support multicasting and have been specifically configured to allow multicast traffic through. Write (or google for) a simple test first and try it in your network environment. And google for multicast firewall etc etc.
Similar Messages
-
Obtaining reference to a specific client
How can we obtain reference to a specific client?
There are five primary ways to obtain a reference to a remote object:
0. It can be returned by a lookup of a remote registry
1. It can be read from an ObjectInputStream
2. It can be the result of a method call
3. It can be passed as a method argument
4. It can be broadcast over the network via UDP
Essentially, a remote object reference is no different than any other serialisable object.
John -
Problems in BroadCast Items to Client
I am implementing Auction System. I saved items on Server in a file called item.txt and i displayed them on Server but now i want to broadcast items on Client side as well so he/she can select items and do bidding on that. Here is piece of code where items are saved and the broadcast method as well.
Now if there are any ideas so items can be sent in anyway on client side.
ObjectOutputStream oos=new ObjectOutputStream(new FileOutputStream("item.txt"));
items=new Item[]{new Item("Troy","Action",200),
new Item("X-Men","Science",100)};
for(i=0;i<items.length;i++)
oos.writeObject(items);
oos.close();
ObjectInputStream ois=new ObjectInputStream(new FileInputStream("item.txt"));
int itemCount=0;
try{
do{
Item it=(Item)ois.readObject();
itemCount++;
System.out.println(itemCount);
System.out.println("ItemName: "+it.getName());
System.out.println("ItemDescription: "+it.getDescription());
System.out.println("ItemPrice: "+it.getPrice());
}while(true);
public synchronized void broadcast(int ID, String input)
{for (int i = 0; i < clientCount; i++){
if(clients[i].getID() != ID)
clients[i].send(ID + ": " + input); // sends messages to clients
}notifyAll();
public void startTime(){}
ActionListener task=new ActionListener()
{public void actionPerformed(ActionEvent evt) {
broadcast(1,"There are # ofitems available Choose ");
startTime();}I've told you before and i'll say it again. This is not the forum to post application design questions. If you have a specific issue with Socket Programming (i.e. you're using sockets in an application and something isnt working as you expect it to) post here, if you have no idea about network programming you'll want to have a look at forums more suitable for that. Try "New To Jave Technology" or "Java Programming" or "Patterns and OO Design".
Like the previous times i'll reply anyway :
{for (int i = 0; i >< clientCount; i++){Is incorrect, should probably be i < clientCount. And i dont see you calling wait() anywhere so what does notifyAll() do for you? Where do you add the action listener and to what?. You try to broadcast your item to client 1, in your test cases this should probably be 0 since your iteration starts at 0.
Your Java basics dont really seem good enough for you to tackle this, you seem to use methods without knowing what they actually do. If this is just a hobby project then i wish you the best of luck, nothing quite as educational as having to figure it all out by yourself. Good luck, but do try to post in the correct forum. -
Designating the specific client certificate to use from within an applet
With JRE 1.4.x, my applet will use a specific client certificate for connection to an https url which requires a client certificate - I did that by defining runtime parameters for the jre (-Djavax.net.ssl.keyStore=...) but with JRE 1.5.x, the same runtime options doesn't seem to have any effect (even if I configure the plugin not to use the browser's store of certificates).
I like the new "use browser certifcate store" feature of the JRE 1.5.x, but can I have a way to designate, programmatically in the code of my applet, which specific certificate to use?With JRE 1.4.x, my applet will use a specific client certificate for connection to an https url which requires a client certificate - I did that by defining runtime parameters for the jre (-Djavax.net.ssl.keyStore=...) but with JRE 1.5.x, the same runtime options doesn't seem to have any effect (even if I configure the plugin not to use the browser's store of certificates).
I like the new "use browser certifcate store" feature of the JRE 1.5.x, but can I have a way to designate, programmatically in the code of my applet, which specific certificate to use? -
How to get no.of users in a specific client
HI,
I need to find the no of users in a specific client , but i don't have accounts to all the clients. I tried from one client where i have the account and executed SE16N and table usr02 got only client specific users list. And as per my understanding USR02 is a client speicific table.
What is the best to find the no of users for all the clients , is it possible from SQL query lik select count(*)from usr02 where mandt etc.. ? or is there any best way ?
Regards
Veeramalla.Hi venkatesh,
Incase you can access the database you can take the dump of user count in all the clients using the below mentioned queries
Select count(bname) from <schema>.usr02 where mandt='xxx';
You need to run this for each client.
Another alternative is to create an aBAP program in the client for which u have access to get the details.
Code could have the following lines
data: number(6); clientno(3);
parameters: clientlist like t000-mandt; //fill in this clientlist parameter with the list of clients u have in ur system
clientno= 1
loop
if clientno < 40
Select count(bname) into number from <schema>.usr02 where mandt= clientlist(clientno);
clientno = clientno + 1
clear number;
else
exit;
endloop. -
What is client specific,client dependent,client in-dependent please explain
Hi,
Could anyone explain below terminologies
client specific,
client dependent,
client in-dependent
Delta -
Thanks.
RAAMHi,
when you log on to SAP you log on to a client.
That client may be sitting on server with other client.
Typically in a development system you will have several clients.
- One for you configuration
- one for your unit testing
- one for your playpen testing
- some even have one just for ABAP developments
There are some configuration setting you do that are client specific (client dependent). I.e it means that your configuration will only be seen in client.
There are some configuration settings and all ABAP developments that are client independent. I.e do the change in one client and that change is automatically, immediatly visible in all other clients.
Hope it clears things up. -
Asking specific client certificate (not certificates trusted by authority)
As I understand from what I read so far, during the handshake negotiation for two way ssl, the server sends the client a list of trusted certificate authorities and say to the client: "hey, those are the authorities I trust. send me a certificate that can be verified by one of them".
I also read how you can customize SSLSocketFactory to, on the client side, look for a specific certificate alias (http://www.ibm.com/developerworks/java/library/j-customssl/). I would like to move this idea further and ask for specific certificates depending on what resources the user is trying to access.
For example:
Let's suppose I have two resources on my server called "bobPrivateStuff" and "alicePrivateStuff". I also have a certificate authority who can validate both Bob and Alice certificates on a custom trust keystore. In a regular scenario, the server will ask for a client certificate and will accept either Alice or Bob certificate, as both can be verified by the custom trust.
But what if Alice can't access "bobPrivateStuff"? What if when trying to open a connection, to say http://myserver.com/services/bobPrivateStuff, the server asks specifically for Bob's certificate? Can I setup the handshake in a way it will actually ask for Bob's certificate instead of only just "any certificated trusted by this CA"?
And what piece of information could be used to distinguish one certificate from another? Is the serial number unique between multiple certificates? Is this pushing the envelop too much and trying to use SSL for more than what it is intended for?I agree 100%. It's just that we want to use certificates to validate the client's identity (instead of relying on username/password).Fine, that's exactly what SSL & PKI will do for you.
It might not be elegantBut it is!
See my point?Of course I see your point. SSL already does that. I said that. You agreed. I agree. What it doesn't do is the authorization part. Because it can't. It isn't meant to. You are supposed to do that.
Instead of the server asking for a specific certificate, it justs checks if the certificate sent by the client has access to the resource.Not quite. It should check if the identity represented by the client certificate (Certificate.getSubjectX500Principal(), or SSLSocket.getSession().getPeerPrincipal()) has access to the resource.
This way, we can leave the server untouchedNo you can't. The server has to get hold of the client principal after the handshake and authorize it against the resource.
if Bob wants to access some resources, Bob has to prove he is who he says he is.You're still confused. That's authentication, and SSL already does that for you. SSLSocket.getSession().getPeerPrincipal() returns you the authenticated identity of the peer. The server then has to check that that identity can access that resource. This is 'authorization'. You can't automate it via keystores and truststores. That's not what they do and it's not what they're for.
So I think it is perfectly plausible to do this kind of verification on the server side (i.e. "hijack" a certificate sent to validate the ssl handshake to also verify if the user has the correct privileges).There's no 'hijacking' about it, but you're concentrating on the certificate instead of the identity it represents. A client could have a large number of certificates that all authenticate the same identity. You need to think in terms of authorizing Principals to access resources. -
Hi,
We are have a quite specific issue. The problem is most likely by design in ADFS 3.0 (running on Windows Server 2012 R2) and we are trying to find a "work-around".
Most users in the organization is using their own personal computer and everything is fine and working as expected, single sign-on (WIA) internally to Office 365 and forms based (FBA) externally (using Citrix NetScaler as reverse proxy and load
balancing with the correct rewrites to add client-ip, proxy header and URL-transformation).
The problem occurs for a few (50-100) users where they are sharing the same computer, automatically logged on to the computer using a generic AD-user (same for all of them). This AD-user they are logged on with does not have any access to Office365
and if they try to access SharePoint Online they receive an error that they can't login (from SharePoint Online, not ADFS).
We can't change this, they need to have this generic account logged on to these computers. The issue occurs when a user that has access to SharePoint Online tries to access it when logged on with a generic account.
They are not able to "switch" from the generic account in ADFS / SharePoint Online to their personal account.
The only way I've found that may work is removing IE as a WIA-capable agent and deploy a User-Agent version string specific to most users but not the generic account.
My question to you: Is there another way? Maybe when ADFS sees the generic user, it forces forms based authentication or something like that?
Best regards,
SimonI'd go with your original workaround using the user-agent and publishing a GPO for your normal users that elects to use a user-agent string associated with Integrated Windows Auth.. for the generic accounts, I'd look at using a loopback policy that overwrites
that user agent setting, so that forms logon is preferred for that subset of users. I don't think the Netscaler here is useful in this capacity as it's a front-end proxy and you need to evaluate the AuthZ rules on the AD FS server after the request has been
proxied. The error pages in Windows Server 2012 R2 are canned as the previous poster mentioned and difficult to customize (Javascript only)...
http://blog.auth360.net -
Information Broadcasting for specific reports on1st, 2nd, 3rd, 4th of month
Hi
I have a multiprover which contains 10 reports .
Out of 10 reports, four reports have the broadcast settings .
But i want to broadcast only two specific reports on 1st, 2nd, 3rd, 4th of each month by using the process chain automatically .
So how can i broadcast those two reports automatically by using the process chain on 1st, 2nd, 3rd, 4th of each month .
Please let me know
Regards
MubeenYou can use RSRD_BROADCAST_FOR_TIMEPOINT or RSRD_BROADCAST_STARTER program for scheduling the broadcast settings.
You can create variants for the broadcast settings using program RSRD_BROADCAST_STARTER and use ABAP type in process chain for progran and variant.
create a event using SM64 tcode and use this event to schedule the process chain. You can create a small program to trigger this event as per your date requirement. You can use function module BP_EVENT_RAISE in the program for triggering the event.
Pravender -
Broadcast to all clients connected to NIO server
I am writing a NIO xml socket server that uses NIO.
My model implemensts a producer / consumer system where client connections are accepted and processed by a specified number of worker threads.
I would like to be able to broadcast a message to all clients that are connected to the server.
Opinions / suggestions I am sure that this is quite a common type of functionality.
Kind RegardsAccendia server allows the server side to invoke callback objects on the client. You can't do real broadcasting, though, you would have to iterate through all client connections. See if it helps:
http://www.accendia.com
If you need real broadcasting you can use datagram or multicast sockets on both the server and client side. -
Legacy Application With Very Specific Client Versions
Hi There,
I am having a frustrating time with an application vendor who is refusing support of a legacy application unless precise Oracle client component prerequisites are met. Specifically they call for:
Oracle ODBC Driver 9.2.0.5.4
Oracle OleDB 9.2.0.4.0
Oracle OO4O 9.2.0.4.4
I can get OO4O by installing the regular Oracle 9.2.0.1.0 client that comes with the Oracle 9i install disk we have, I found an install package for Universal Installer that gets me the ODBC driver to 9.2.0.5.4. The last piece of the puzzle I need to get is the OleDB to 9.2.0.4.0.
So my question is: Is there a particular Oracle 9i Client package that contains this version of the Ole DB provider or a standalone package for it? If so where can I download it?
Thanks in advance...
Mike.Hi,
You can get 9204 OraOLEDB on My Oracle Support as patch number 3262468. Select platform "Microsoft Windows (32-bit)" , not "Microsoft Windows (32 bit) client"
Hope it helps,
Greg -
Hi all,
Can we perform client copy with specific module data? For example, say if I want to copy all HR related data from client 300 to 200. Can I do the same? If yes, how to go about it??
Thanks in advance.
Thanks and regards,
Meghan KHi Meghan,
Client copy with module specific data is not supported by traditional SAP-Client copy tools.
This can be achieved by using SAP-TDMS (Test Data Migration Server).
For information on TDMS, read [www.sap.com/tdms]
Hope this helps.
Regards,
Nirav Shah. -
Credit check and Credit hold not working for 2 specific clients
Hello dear Oracle Support,
I would like to ask for your help in the following subject:
The Credit deppartment assign a Credit Hold and a Credit Check for 2 specific customers, but for some reason, these check boxes are not getting respected by the system, since the sales department are not getting any message or warning when creating an order. I tryed to look at these 2 check boxes at a table but I am affraid that I cant find the field, I am using the RA_CUSTOMERS table, but perhaps it is not the correct one, so I was wondering if you could give me any advice.
ThanksHi
1. IMG -- SD -- Basic funtions -- credit management/risk mgmt -- credit mgmt -- Define credit groups.
Here confirm that you have
01 - credit group sales order
02 - credit group delivery
03 - credit group for GI
2. IMG -- SD -- Basic funtions -- credit management/risk mgmt -- credit mgmt -- Assign sales document type and delivery document type
Here you have to assign
01 - to the sales order(Ex OR) types
02 - to delivery document type (Ex LF) <b>Dlv credit group</b>
03 - to delivery document type (Ex LF) <b>GI credit group</b>
<u><b>For delivery document type we have to assign to credit group one for Delivry another for PGI</b></u>
3. IMG -- SD -- Basic funtions -- credit management/risk mgmt -- credit mgmt -- Define automatic credit control (OVA8)
Maintain new combination for Your credit control area/risk categry of the customer/03 (GI credt group)
Example : 1000/001/03
maintain static/Dynamic credit check for this combination.
Note : give warning at order level (credit grp 01) and delivery level (credit grp 02)... and give error at PGI level (credit grp 03).....
So that you can see difference easyly
4. FD32 - Maintain credit limit and Risk category(001) for your customer
5. order - delivery - PGI
Try this
Hope your problem will be solved
Let me know if you have any problem
Reward points if helpfull
Muthupandiyan -
How to have H-REAP broadcast only specific locally switched SSID's?
I'm new to this H-REAP configuration, but in the main office we have about 6 WLAN's. I have a remote office which I want to have 2 new WLAN's and have them switched locally. How can I only have the H-REAP AP's at this site only broadcast those 2 SSID's vs all 8? I haven't really read anything about using AP Group VLAN's with H-REAP or know if that's even possible, but is this a possibility and if no,t what would you recommend?
Thanks for the help!I may create another topic - but here it goes...
I've decided to try to use an existing WLAN in the H-REAP config...
-I've joined the AP to the remote controller, assigned it an IP, put it in H-REAP mode.
-I chose a WLAN, enabled local switching
-I went into the AP, configured the native VLAN, however, I CAN NOT change the vlan of the WLAN listed. It always goes back to default.
I verified the vlan exists on the switch, is routable, etc, the switch port is a member of that vlan, it is set as a trunk w/ 802.1q, etc.
Any ideas on what would cause this?
I am SOO close Thanks! -
Specific Clients Taking up Multiple RDS CALs
We use per device CALs on our Windows 2012 License server. We have 150 device CALs installed. We have about 45 thin clients logging into Windows 2012 server to get to their point of sale software. Our problem here is not the thin clients taking multiple
licenses but it's the administrator's computers taking multiple licenses. I use RDC Manager to attach to the terminal servers on Windows 8. Other Admins here don't use RDC Manager, just the RDP app. They are using Windows 7. We are all getting multiple
RDP CALs assigned to them.
My computer has over 30 permanent CALs assigned to it. There are days when my computer will take up 7 or 8 licenses. I have over 100 temporary licenses assigned to my computer!!
If a user calls and their terminal is getting a license error, I can go in and revoke one of the licenses for my computer, they get logged in fine. Do a refresh of the RD License Manager and I can see the terminal that user was having license problems on
has a license from a week ago and the only new license handed out at that time is issued BACK to my computer!!!
If I install more licenses, our computers start eating them up. We had MS look into this about 2 months ago and they rebuilt the server and now we are back where we were at 2 months ago. Tried to re-contact MS on this but I have been waiting for 2 weeks
for them to call back.Hi Danny,
Thank you for posting in Windows Server Forum.
As suggested by TP earlier, have you tried to rebuild the RD License server with its database?
In addition, you can refer following article for information.
RD Licensing Configuration on Windows Server 2012
http://blogs.technet.com/b/askperf/archive/2013/09/20/rd-licensing-configuration-on-windows-server-2012.aspx
Apart suggest you to still contact MS clearing house for further help as they are best person for license related information.
Hope it helps!
Thanks.
Dharmesh Solanki
TechNet Community Support
Maybe you are looking for
-
DECLARE fileID UTL_FILE.FILE_TYPE; FILE_DIR_OUT CONSTANT VARCHAR2(100) := 'MyDir'; BEGIN fileID := UTL_FILE.FOPEN (FILE_DIR_OUT, 'DFD.dat', 'W'); UTL_FILE.PUT_LINE (fileID,'voucherno'|| invoiceno ); FOR crec IN (select v
-
Where is status bar when running iphone app
I've updated my iPad Mini to iOS 7 and now when I run iPhone apps I don't see the status bar (time and battery level etc). It used to show in iOS 6. I see the status bar fine when running iPad apps, just not iPhone apps. Any ideas?
-
Any working example or VersionedBacking map?
Appreciate if anyone has the working example on VersionedBackig Map? How can i retrieve list of objcts (EX:Result set returns say 100 records, and each row is an object). Does tangosol has any api or have to implement java implementation?
-
want to find out how to reset this proxy thing plz
-
Taking the difference between two consecutive rows of a table
My table structure with value is as follows: time parameter value 16:00 STS 10 17:00 STS 20 18:00 STS 45 Now with a single select query I want to retreive the value as follows : time_difference para_value_difference 1