A vendor is using Solace to send messages. I have obtained a SubscriptionId using web service call, that I supposed to be submitted to the Solace server.
Using the documentation and sample code at dev.solace.com, I have been able to connect a session. However, I am lost as to how to go to the next step which is to subscribe to what I believe is a queue using a connection factory, jndi factory an jms destination name.
The sample shows this:
Session.Connect(ContextFactory.Instance.CreateQueue(Topic), true);
But from what I can tell, that won't work as the vendor wants jndi/jms, and the Solace documentation has no .NET code for jndi/jms, which leaves me guessing.
Help!
Please use the JMS API instead of the .NET API in order to perform JMS.
The .NET API does not do JMS.
Note that you can send/receive messages using the .NET API that's inter-operable with the JMS API.
However, since you have a hard requirement to use JMS, your only option is to use the JMS API.
As It turns out, the jndi/jms information delivered by the host for configuration was unneeded. What was necessary was to connect to the queue and receive the messages.
Related
I have some C# code that uses the ExchangeService (via Microsoft.Exchange.WebServices.dll) object to do some typical email tasks (e.g. fetch email, send email). I'd like to be able to do the same thing, but using Go instead of C#. What is the most direct way to do this? I understand there are tools such as CGo but given that this is MSFT-provided DLL that is part of the .NET framework, I suspect the process is not as simple as it would be if I were creating my own DLL.
You have to roll your own SOAP requests to EWS. The managed/.NET EWS API is just a nicely packaged set of SOAP requests.
You can only use the managed .dll with a .NET language, i.e., C#, PowerShell, etc. If you are not going to use a .NET language then you have to construct your own SOAP requests for EWS to consume.
FYI, if this is an Exchange 2016 environment you might want to look into the Exchange REST API which is language agnostic.
I am working on https://github.com/mhewedy/ews can be a good start.
I am creating an application using Apache Thrift technology http://wiki.apache.org/thrift/. I knew how to create a connection between client and server and I can call a function stored in server by client.
But now, I want to send a message from client to server like "Hello from client", and the server have to recieve and print it. I can do it by using the .NET framework and multi-threading waiting for message. But I would to use the Apache Thrift Technology because of my lecturer's offer.
After server recieved this message, it can reply it to client something like "I got it", and client side will get this message.
So how can I do that by using Apache Thrift, please give me some advices or some reference materials on it. I would like to use C# to create my application.
Thanks in advance.
Since you did not post any code, I can only give you the generic outline.
There are two resources worth looking at when starting with Apache Thrift. First, there is the tutorial, which is about a small calculator app demonstrating the basic principles. Theoretically, this should already cover all you need for your task.
But wait, there's more: The other resource is the Thrift Test Client/Server program, which besides its primary purpose also gives a good sample and showing a number of techniques regarding the different protocols and transports.
The creation of a client with C# boils down to this:
// put together a protocol/transport stack as required by the server
TTransport transport = new TSocket("localhost", 9090);
TProtocol protocol = new TBinaryProtocol(transport);
Calculator.Client client = new Calculator.Client(protocol);
// make sure the transport is open
transport.Open();
// call a method via RPC
client.ping();
Again, I encourage you to make your question more specific, if you have a concrete problem. The above sample code can be easily found in the docs via Google 1), so I bet that is either not the real problem or you may be just looking for someone doing your homework for you.
1) Just look for "thrift tutorial" and click the very first entry in the search results.
There seems to be very little information on interacting with the WSO2 products from WCF or .Net in general. I am attempting to subscribe to a Topic which is defined in the WSO2 Message Broker, but I have no idea where to start. Eventually, I'd like to publish events from a C# application, but again, I could use some help finding a starting point.
I've successfully coded something up using the RabbitMQ .net libraries, but only for reading/writing to a queue, not a topic. Thanks in advance for any help.
I think you can do this using WS-Eventing API by writing a C# client. You can refer the section on WS-Eventing in this article. Unfortunately, the example code is in Java.
I need help with implementing IBM WebSphere MQ for a system where the queue is supposed to send the XML messages to a SQL database. May please help me with resources and video tutorials for the matter in hand. The system will be in C#
Thanks!
Message Service Client for .NET a.k.a XMS .NET is now part of WebSphere MQ v701. You can find latest documentation on XMS .NET here. XMS .NET gets installed along with MQ Client from v701 on-wards.
How are you wanting to access MQ? Are you using JMS or MQI?
There are a couple different ways to access MQ from .NET. The first way is through the native MQ interface known as MQI. The second way is through a JMS implementation created by IBM called XMS.
The queue is not going to write anything into a database for you. You are are going to need to create a listener application that does that.
EDIT:
If you want to use JMS then you should take a look at the doc link that Shashi posted below. here
You will want to look at the docs under "Message Service Client .NET, Version 2.0.0" --> "Developing XMS Applications" --> "Writing XMS .NET applications"
Also take a look at the sample applications that are packaged with the client.
Essentially what you are going to end up doing is creating a connection to the queue manager (either remote or local depending on your use case), creating a destination object that will represent the queue you are trying to work with on the queue manager, and then creating a listener to receive messages from the queue (either sync or async depending on your use case).
Is there an easy way to create an IM bot on multiple im networks (aim, gtalk, yim, etc) that can accept and interpet specific commands sent to it to perform a server related task?
Lets say for instance I have a website for managing an rss feed. I want to send a command to an IM bot to add another feed to my collection. the IM bot would associate my screen name with my account from prior setup on the website.
I have done some internal bots for my company using the XMPP (Jabber) protocol, I've used the agsXMPP SDK and the Jabber.NET client libraries, I was looking for APIS to work with YIM, AIM and Windows Live Messenger but I've found only COM exposed APIS, nothing for .NET...
But an idea comes to my mind, with the XMPP Protocol you can configure a local server with IM Gateways, that allow users to access networks using other protocols through your server
I use eJabberd, you can install a variety of transport gateways to connect with other IM protocols (AIM, MSN, ICQ, GTalk...
To GTalk you can connect directly using the libraries I mention...
A sample ICQ gateway:
The short answer to this question is yes this can be done relitivly easily. Sedning and receiving IMs sending, receiving and interpreting requests from the network you wish to communicate on and there are libraries available for each of the major IM protocols to make this easier.
For messenger you can try the DotMsn library, I have used it in the past but at that time it was still quite new and I have not used it since so I can't vouch for it's quality.
Jabber uses the XMMP protocol which is an open-standard so there are bound to be plenty of client libraries available.
If I recall correctly Google Talk uses this protocol or a modified version thereof.
I dont have experience with c# but I have written one for AIM and Gtalk using PHP. http://www.imified.com/ is the best place to start if you looking for a easier way to write an IM bot.
Basically you create an account in imified.com .
Name your bot and link a script.
When ever a message is sent to the bot, imified.com automatically runs this script.
Here is a link for you get you started!
We have professional .NET/COM/VCL library for MSN/Yahoo/ICQ/AIM/GTalk/Jabber. Please take a look at http://www.imcomponents.com/ if you like.