in

Community Blogs

Blogs of different SQL/Developers Community Members

This Blog

Syndication

DamirDobric

rujan 2008 - Posts

  • IBM.XMS Error CWSMQ0180E - Creating of Subscriber via Queue

    When trying to initialize Ibm.Xms durable subscriber you may get following error:

    CWSMQ0180E: The name is not valid for this Destination : durablesubscription.test. An application supplied an invalid name for the Destination. Check the supplied name conforms to Naming and URI specification.

    The error description is a bit wired, because the reason why the error is thrown can be wrong initialization. It is important to know,
    that durable subscriber should be used with topic based communication only. If the queue based communication is initialized
    the common consumer (session.CreateConsumer()) should be used instead of durable subscriber (session.CreateDurableSubscriber()).

    The example below shows using of durable subscriber based on queue communication. This will throw the error described below.

    image

    Unformatted code below:

    static void createQueue()
         {
             IConnectionFactory cf = getFactory();

             using (IConnection connection = cf.CreateConnection(null, null))
             {
                 connection.ClientID = "SomeUniqueText";

                 using (ISession session = connection.CreateSession(false, AcknowledgeMode.AutoAcknowledge))
                 {
                     using (IDestination destination = session.CreateQueue("queue://durablesubscription.test"))
                     {
                         destination.SetIntProperty(XMSC.DELIVERY_MODE, 1); //"non-persistent"

                         //using (IMessageConsumer consumer = session.CreateConsumer(destination))
                         using (IMessageConsumer consumer = session.CreateDurableSubscriber(destination, "DurableSubscription3"))
                         {
                             // IMessageConsumer consumer2 = session.CreateDurableSubscriber(destination, "DurableSubscription1");

                             IMessageProducer producer = session.CreateProducer(destination);

                             connection.Start();

                             int cnt = 3;

                             IMessage recvMsg = null;
                             while (--cnt > 0)
                             {
                                 // Receive the message                                   
                                 recvMsg = consumer.Receive();
                                 producer.Send(recvMsg);
                             }
                         }
                     }
                 }
             }
         }

    Posted ruj 15 2008, 10:01 by anonymous
    Filed under:
  • IBM.XMS error

    When creating durable subscriber by using of Ibm.Xms, you may get following exception:

    "ClientId on the connection has not been set. Please set the Client ID on the Connection object or using the ConnectionFactory in order to use this functionality."

    or this one:

    CWSMQ0115E: Use of an un-initialised ClientId is not permitted. The ClientId on the connection has not been set. Please set the Client ID on the Connection object or using the ConnectionFactory in order to use this functionality.

    In general this platform allows you to create two kinds of consumers: Durable and none durable one. According to IBM notation, the first one is known as Consumer and second one as Durable Subscriber.

    To create the none durable consumer use following code:

    IDestination destination = ...

    session.CreateConsumer(destination);

    Similar, durable subscriber can be created with following code:

    IDestination destination = ...

    connection.ClientID = "SomeUniqueText";

    session.CreateConsumer(destination);


    Here is the full code. If the red-marked line is missing, the exception above will be thrown:

    image

     

    Unformatted code below:

    using System;
    using System.Collections.Generic;
    using System.Text;
    using IBM.XMS;

    namespace Ibm.XmlConsumer
    {
        class Program
        {
            static void Main(string[] args)
            {
                XMSFactoryFactory factory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ);

                IConnectionFactory cf = factory.CreateConnectionFactory();

                cf.SetStringProperty(XMSC.WMQ_HOST_NAME, "192.168.0.131");
                cf.SetIntProperty(XMSC.WMQ_PORT, 1414);
                cf.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, 1); // Means client
                cf.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, "QM1");
                cf.SetIntProperty(XMSC.WMQ_BROKER_VERSION, 0); // Means brocker
                cf.SetStringProperty(XMSC.JMS_IBM_MSGTYPE, "bytes"); // Binary message

                //using (IConnectionFactory connectionFactory = cf.CreateConnection("UserId", "Password"))
                using (IConnection connection = cf.CreateConnection(null, null))
                {
                    connection.ClientID = "SomeUniqueText";
                    using (ISession session = connection.CreateSession(false, AcknowledgeMode.AutoAcknowledge))
                    {
                        using (IDestination destination = session.CreateTopic("topic://daenet.eu/servicebus"))
                        {
                            destination.SetIntProperty(XMSC.DELIVERY_MODE, 1); //"non-persistent"
                            //using (IMessageConsumer consumer = session.CreateConsumer(destination))
                            using (IMessageConsumer consumer = session.CreateDurableSubscriber(destination, "hello durable world"))
                            {
                                connection.Start();

                                int cnt = 3;

                                IMessage recvMsg = null;
                                while (--cnt > 0)
                                {
                                    // Receive the message                                   
                                    recvMsg = consumer.Receive(30000);
                                }
                            }
                        }
                    }
                }
            }
        }
    }

  • BizTalkServer R3 goes BizTalk Server 2009

    BizTalk Server 2006 R3 will be renamed into BizTalk Server 2009. Renaming of "BizTalk Server" clearly communicates that the new product will deliver a full upgrade to enable customers to take advantage of the latest platform wave. This is specifically related to products like Windows Server 2008, Visual Studio 2008, SQL Server 2008 and .NET Framework 3.5.

    The next CTP update is coming sometime in Q4 of CY08. The new version of BizTalk Server 2009 is scheduled for the H1 CY09 timeframe.

    Here is the new logo :)

    image 

    The next version of BizTalk Server continues to build on the investments made to address the concerns of service oriented architecture and enterprise connectivity. Here is the set of upcoming features:

    Updated Platform Support
    • New Application Platform Support

      BizTalk Server 2009 supports the latest Microsoft platform technologies, including Windows Server 2008, Visual Studio 2008 SP1, SQL Server 2008 and the .NET Framework 3.5 SP1. These platform updates enable greater scalability and reliability, and many advances in the latest developer tools.

    • New Hyper-V Virtualization Support

      BizTalk Server 2009 now takes advantage of the latest virtualization improvements included as part of Windows Server 2008 Hyper-V, which can lead to reduced costs through lower hardware, energy, and management overhead, plus the creation of a more dynamic IT infrastructure.

    • Improved Failover Clustering

      By taking advantage of Windows Server 2008 clustering, BizTalk Server is now able to be deployed in multi-site cluster scenarios, where cluster nodes could reside on separate IP subnets and avoid complicated VLANs.

    Service Oriented Architecture and Web Services
    • New Web Services Registry

      BizTalk Server 2009 includes a UDDI 3.0 registry which provides support for registry affiliation, extended discovery services, digital certificates and extensibility for a subscription API. This will enable one of core elements of the SOA infrastructure, and will help prepare you for some of the forthcoming modeling and repository investments planned in our "Oslo" technologies.

    • New Line of Business Adapters

      BizTalk Server 2009 provides two new adapters for Oracle E-Business Suites and SQL Server, plus additional improvements have been made to the existing set of adapters.

    • Enhanced Host Systems Integration

      BizTalk Server 2009 adds a new WCF WebSphere MQ channel by providing the transport, data formatter and encoder to integrate directly with WebSphere MQ via WCF and a new WCF Service for Host Applications has been added to expose the traditional Transaction Integrator to .NET Framework developers. Additionally, BizTalk Server 2009 includes updated platform support for the most recent versions of CICS, IMS, CICS HTTP transport, DB2, DB2/400, DB2 Universal Database, and WebSphere MQ.

    • Enhanced Business Activity Monitoring

      By expanding the out of the box BAM functionality with SQL Server 2008 Analysis Services, BizTalk Server 2009 provides support for UDM cubes and scalable real-time aggregations which enhances support for Microsoft PerformancePoint Server 2007.

    • Enhanced Enterprise Service Bus (ESB) Guidance

      ESB Guidance 2.0 delivers updated prescriptive guidance for applying ESB usage patterns, improved itinerary processing, itinerary modeling using a visual Domain Specific Language (DSL) tools approach, a pluggable resolver-adapter pack, and an enhanced ESB management portal.

    Business to Business Integration
    • Enhanced Support for EDI and AS2 Protocols

      BizTalk Server 2009 provides support for multiple message attachments, configurable auto message resend, end-to-end filename preservation, improved reporting to address new features, and Drummond re-certification for AS2.

    • Updated SWIFT Support

      By building on a rich SWIFT foundation, BizTalk Server 2009 updates all message schemas and business rules for compliance with SWIFTReady Financial EAI Gold certification, as a result adds support for SWIFT FIN Flat File message types and business rules, BIC Plus IBAN interface, and Extensibility to support SEPA Routing.

    Device Connectivity
    • New Mobile RFID Platform and device management

      BizTalk Server 2009 delivers a new lightweight platform for a variety of mobile devices, which simplifies the development of mobile applications that expose relevant, real-time business information. BizTalk RFID Mobile includes support for enhanced device management, Powershell support for administration of edge infrastructures and the ability to monitor RFID infrastructure using System Center Operations Manager 2007.

    • New RFID industry standards support

      Support for key industry standards (including LLRP, TDT, TDS, WS Discovery and partial EPCIS support).

    Developer and Team Productivity
    • New Application Lifecycle Management (ALM) support

      BizTalk Server 2009 provides support for Team Foundation Server (TFS), and allows development teams to be able to leverage the integrated source control, bug tracking, support for team development, Project Server integration and support for automating builds via MSBuild.

    • Enhanced Developer Productivity

      BizTalk Server 2009 introduces a number of improvements have been made to the underlying Visual Studio based BizTalk project system which enhances debugging support for artifacts such as BizTalk Maps (XSLT), pipeline components and XLANG Orchestrations, and enables support for unit testing via Visual Studio Test.

    Other Enhancements
    • Messaging

      BizTalk Server 2009 improves recoverable interchange processing of validation failures by providing support for recoverable interchange processing for disassembly (DASM) and a validation stage within the pipeline. The WCF Adapter has been enhanced to provide support for configurable transactions and the ability to choose the transaction isolation level in the WCF-Custom Send Adapter.

    • Administration

      By continuing to build on the improvements to the BizTalk Management Console made in BizTalk Server 2006 R2, two new query types have been added for tracked message events and tracked service events which consolidates all queries – tracked/archived data, live data and specialized EDI reports, into a single tool

     

    Source: http://www.microsoft.com/biztalk/en/us/roadmap.aspx#WhereWeAreNow

  • New downloads, lot of MOSS, CRM, Data Services Silverlight 2 BETA 2 and more.

    All recently published Windows downloads

    Office and home applications

     

    Download Microsoft Office Accounting Express 2008 for free

    Easy to learn and use, saves you time with everyday tasks, and gives you a complete view of your business.

    Microsoft SharePoint Administration Toolkit v2.0 x86

    The Microsoft SharePoint Administration Toolkit contains functionality to help administrate and manage Microsoft Office SharePoint Server 2007 and Windows SharePoint Services version 3.0.

    Microsoft SharePoint Administration Toolkit v2.0 x64

    The Microsoft SharePoint Administration Toolkit contains functionality to help administrate and manage Microsoft Office SharePoint Server 2007 and Windows SharePoint Services version 3.0.

    Office Update

    Scan for updates that help improve the stability and security of the Office programs on your computer.

    All recently published Office and home downloads

    Development resources

     

    Download Internet Explorer 8 Beta 2

    Download Internet Explorer 8 Beta 2 - faster, easier, and safer than ever.

    Internet Explorer Administration Kit 8 Beta

    The Internet Explorer Administration Kit 8 Beta simplifies the creation, deployment, and management of customized Internet Explorer 8 packages.

    Windows SharePoint Services 3.0: Software Development Kit

    This software development kit contains conceptual overviews, programming tasks, samples, and references to guide you in developing solutions based on Microsoft Windows SharePoint Services 3.0.

    Microsoft F# - September 2008 Community Technology Preview (CTP)

    F# is a type-safe, scalable language for the .NET platform that supports both functional and object-oriented programming. This CTP release includes the F# compiler and tools, as well as Visual Studio 2008 integration for F# development.

    Microsoft SharePoint Server 2007 Software Development Kit

    This software development kit contains conceptual overviews, "How Do I.?" programming tasks, developer tools, code samples, references, and an Enterprise Content Management starter kit to guide you in developing solutions based on Microsoft Office SharePoint Server 2007.

    Microsoft Dynamics CRM 4.0 Software Development Kit

    This download contains the complete software development kit for Microsoft Dynamics CRM 4.0.

    Visual Studio Team System Web Access 2008 Service Pack 1 Power Tool

    Team System Web Access (formerly known as TeamPlain) is a Web interface to Visual Studio 2008 Team Foundation Server.

    ADO.NET Data Services Silverlight 2 Beta 2 Client Refresh

    This refresh consists of an updated version of System.Data.Services.Client.dll for Silverlight 2 Beta 2 that enables the Data Services client in Silverlight 2 Beta 2 to interoperate with Data Services in .NET 3.5 SP1 RTM.

    Microsoft Application Compatibility Toolkit 5.0

    The Microsoft Application Compatibility Toolkit contains the necessary tools and documentation to evaluate and mitigate application compatibility issues before deploying Microsoft Windows Vista, a Windows update, or a new version of Windows Internet Explorer in your environment.

    All recently published Development Resources downloads

    Server Applications

     

    Microsoft SharePoint Server 2007 Software Development Kit

    This software development kit contains conceptual overviews, "How Do I.?" programming tasks, developer tools, code samples, references, and an Enterprise Content Management starter kit to guide you in developing solutions based on Microsoft Office SharePoint Server 2007.

    Windows SharePoint Services 3.0: Software Development Kit

    This software development kit contains conceptual overviews, programming tasks, samples, and references to guide you in developing solutions based on Microsoft Windows SharePoint Services 3.0.

    Microsoft Dynamics CRM 4.0 Software Development Kit

    This download contains the complete software development kit for Microsoft Dynamics CRM 4.0.

    Microsoft Exchange Server ActiveSync Web Administration Tool

    Tool for administrators who want to manage the process of remotely erasing lost, stolen, or otherwise compromised mobile devices.

    All recently published Server Applications downloads

  • New Downloads

    Axialis IconWorkshop™ Lite Version 6.3.1.0


    This is a free add-in to Visual Studio 2008. Microsoft worked with Axialis to create this tool because there is a need for new, larger icons, now that we have higher resolution monitors. IconWorkshop supports creating 256X256 icons supported on Vista.
    http://www.axialis.com/download/iwlite.html

     

    Google Chrome (BETA) new browser

    Here is download: www.google.com/chrome.
    Good thing: Silverlight seems to be supported. Bad thing: Silverlight doesn't work well.
    Here is the list of new features: http://tools.google.com/chrome/intl/en-GB/features.html#

Copyright of SQL/Developers Community
Powered by Community Server (Commercial Edition), by Telligent Systems