JMSclient server architecture

I know that different app servers can communicate with each other using JMS queues and JMS queue connection factories. Where the queue connection factories and queues have been created on the server side however I am wondering if you can communicate directly to a MDB from a desktop application. In case you can would there be a pre requisite of some JMS installation on the desktop or not? and what other constraints would there be?

Code would look something like this....I know it's messy it's just a utility I have
private final void setupQueueConnection()
        // Get the inital context
        try
            System.getProperties().setProperty( "org.omg.CORBA.ORBInitialHost",
                "10.6.168.108" );
            System.getProperties().setProperty( "org.omg.CORBA.ORBInitialPort",
                "3700" );
            jndi = new InitialContext();
        catch ( NamingException e )
            System.out.println( "Could not create JNDI " + "context: "
                + e.toString() );
            cleanUp();
            System.exit( 1 );
        // Get a Queue Connection Factory and Queue
        try
            System.out
                .println( "Looking up the queue connection factory from JNDI :"
                    + queueFactoryName );
            conFactory = (QueueConnectionFactory) jndi
                .lookup( queueFactoryName );
            System.out.println( "Found the connection factory:"
                + conFactory.toString() );
            System.out.println( "Looking up the queue from JNDI :"
                + queueOutName );
            queueOut = (Queue) jndi.lookup( queueOutName );
            System.out.println( "Found the queue:" + queueOut.toString() );
        catch ( NamingException e )
            System.out.println( "JNDI lookup failed: " + e.toString() );
            e.printStackTrace();
            cleanUp();
            System.exit( 1 );
        try
            // Creating a QueueConnection to the Message service
            System.out.println( "Creating QueueConnection using the factory"
                + conFactory.toString() );
            connection = conFactory.createQueueConnection();
            System.out.println( "Starting the Connection" );
            connection.start();
            // Creating a session within the connection
            session = connection.createQueueSession( false,
                Session.AUTO_ACKNOWLEDGE );
            System.out.println( "Creating a QueueSender" );
            queueSender = session.createSender( queueOut );
        catch ( JMSException e )
            System.out.println( "An unexpected exception occurred: " + e );
            Exception linkedException = e.getLinkedException();
            if ( linkedException != null )
                System.out.println( "The linked exception is: "
                    + linkedException );
            e.printStackTrace();
            cleanUp();
            System.exit( 1 );
    }

Similar Messages

  • ActiveX Bridge Usage in Client-Server architecture

    Hi,
    We developed an application (client-server architecture) based on RMI layer. Now we want to expose client as an ActiveX Control. Assume, server is running on one m/c, client is running on different m/c. Now in other m/c, on VB container my client activex is running. This activex should fetch data from server(through java based client) and should display it.
    We implemented an activex control for client, it is interacting with server. To show server data it should use one user-defined object class. We made this object as public static. But we are not able to use this object on activex side. Even serializing this object and reading it again is also not working.
    If anyone has idea on debugging this issue, please help us.
    Sagar.

    Use the 'NI AlarmEvent Browser' ActiveX control.   Set the machine as the remote station.  Lots of parameters.
    Mike
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • Configuring Database Server to Shared Server Architecture

    Hello! Sir/Madam,
    Presently Our server configuration is Dedicated Server Architecture, due to number of connections opening in the dedicated server, we are shifting our server configuration to the Shared Server Archiecture.
    Will any One send me what are the parameters as to be set to Configure to the Shared Server Archiecture.
    Thanking U with Regards,
    Sravan
    Hyderabad.

    I would suggest also reviewing the DBA Administration manual Ch 4 Managing Oracle Database Processes using the Oracle® Database Administrator's Guide 10g Release 2 (10.2) Part Number B14231-01 since it discusses the database parameter settings in some detail.
    Remember to increase the size of the SGA to handle the UGA areas moved from the PGA into the Shared Pool.
    I would consider continuing to use dedicated sessions for batch and any process that uses dbms_alert or other features that do not work well with shared server.
    HTH -- Mark D Powell --

  • MS SQL Server Architecture (Query Processing)

     Explain Sql server Architecture for Select statement diagrammatically ?
     Explain Sql server Architecture for Insert , update statements  diagrammatically ?
    bhagee

    Hi,
    to me, we have to completely read SQL Server Internals book to understanding internals of DMLs. so many internal compoents, layers works starting from pressing F5 at client location till we get the result in results pane.
    Below link has high level info about SELECT
    http://www.sqlservercentral.com/blogs/livingforsqlserver/2010/12/05/what-happens-when-a-query-is-submitted/
    internals of SELECT
    http://rusanu.com/2013/08/01/understanding-how-sql-server-executes-a-query/
    Internals of INSERT
    http://www.sqlservercentral.com/blogs/livingforsqlserver/2012/11/26/time-pass-with-transaction-log-part-4-ddl/
    http://www.sqlservercentral.com/blogs/livingforsqlserver/2012/11/27/time-pass-with-transaction-log-part-5-insert/
    hope you would find this useful.
    Ramkumar Gopal Living For SQL Server Blog: http://www.sqlservercentral.com/blogs/livingforsqlserver/ Facebook: https://www.facebook.com/#!/groups/livingforsqlserver/ Twitter: https://twitter.com/LivingForSQL

  • How long is it to implement JSSE on a client-server architecture?

    Hi all of you,
    Since I'm not a developper but more a system admin, I'm wondering how long approximatly it would take to adapt an existing JAVA client-server architecture to use JSSE or SSL communication over the internet. Is it a simple task or are we talking about weeks of work? Where would be installed the SSL certificate, on the web server or the database server? In brief, what are the main steps that a developper has to go through?
    Architecture:
    JAVA client
    Web server (RMI server), Microsoft IIS5.0
    Database server (MySQL4.0)
    Thanks you all for your precious time,
    AD

    If your webserver has a server certificate from one of the "Big Boys" in the CA business, and if you don't need client-authentication (and almost no-one does) - in your client, write "SSL" in front of everywhere the app currently has the word "Socket", and scratch out "HttpUrl" and replace it with HttpsUrl,." and change your access-urls to start with "https:" and change your socket-connections to talk to your server's SSL port, and you're done. I've taken a Socket-based app and made it SSL/Plain bilingual in two hours once (admittedly, it was a small and well-designed app).
    If your server-cert isn't signed by a known CA, then you have to play some games to get the client side to accept it - but they've all been discussed to death in this forum.
    Grant

  • Task of message server inside application server architecture

    Hi Folks,
          I have just started learning ABAP.
          And i have following queries in mind.
    what is the task of message server inside the application server architecture?
          Regards

    Hi,
    it's always to start with [SAP documentation|http://help.sap.com/SAPhelp_nw70/helpdata/en/fc/eb2e8a358411d1829f0000e829fbfe/content.htm]. You can have multiple application servers for one system. In this scenario application servers need to communicate. They use message server for this purpose. There is always just one message server for each system.
    Cheers

  • 2-tier Client/server Architecture(Urgent!!!!)

    Hi,anyone can help me to do a client/server architecture.The server is able to track and store the client's name,IC number and his machine's IP.And the server is able to broadcast a question stored in the database and get the answer to the question whereby the answer is also stored in the database.The server is able to broadcast the question to multiple server.Thanks!

    Hi,anyone can help me to do a client/server
    architecture.The server is able to track and store the
    client's name,IC number and his machine's IP.And the
    server is able to broadcast a question stored in the
    database and get the answer to the question whereby
    the answer is also stored in the database.The server
    is able to broadcast the question to multiple
    server.Thanks!you mean able to broadcast to multiple clients, right?
    read this webpage:
    http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html
    steal some of the code... maybe from the knock knock server client code and then modify it to meet your needs.
    Don't worry about storing the information in a database until after you have everything else working. The database stuff will require knowledge of JDBC.
    Good luck,
    Tim

  • How to deploy Qaaws queries and Xcelsius in multi server architecture

    Hi Experts ,
    I have developed a very good looking dashboard which uses qaaws queries (Dev ) to get the data in to it . I have deployed these qaaws queries to another server (UAT ) using deploy option in Query as a Web service . But still the webservice URL pointing to my DEV server .
    Also , I saved my xcelsisu file to the BO platform (in DEV) and then I imported this file in to my UAT server using import wizard . Now I opened this xcelsius file in the UAT server . In datamanager , Still I can see my webservice URL's pointing to DEV server .
    How can I deploy Qaaws and Xcelsius in a mult server Architecture . We have different servers for each environment ( Dev, INT,UAT , PRD )
    Need some one help to getout of this problem .
    Please note that my output of Xcelsius is in PDF file .
    Many thanks in advance.
    Regards,
    Dirasa

    There are several options, and an approach to make the QaaWS services environment independent
    1. When you use the QaaWS clinet builder and use the option to Copy to another server, you'll need to select the Advanced Parameters button on the 1st screen and change the server environment referernce.
    2. QaaWS services can be captured adn moved with the import wizard and Bair files.  You may want to  consider this option if you also want to capture adn contriol the QaaWS defintions for change,manangement, release management and source code control and rollback.  Moving to an new BusinessObjects environment  with Import wizard may require changnig the server environment reference with the AqqWS client connected to the target environement after it is moved.
    We have found an approach to make the QaaWS data connections in Xcelsius BO environment indendent and relatively referenced, so when you move Xcelsius dashboards sourced with QaaWS between BO environements you don't need to redefine the data connection in Xcelsius
    In Xcelsius data connections, after you paste the QaaWS WSDL on the definition tab, and import the Web Service URL field is populated with a full web service URL path http://BusinessObjectsServer/dswsbobje/qaawsservices/queryasaservice
    We have found the after the import you can edit  the web service URL and remove the BO server reference at the beginning and start it with /dswsbobje/qaawsservices/queryasaservice .
    Xcelsius dashboards in the BOE with QaaWS data connections still works to supply data to the dashboard.  When the dashboard run the BOE must assume that without an explict server reference, that it must be the current BO environment.  Another advantage of this approach is it avoids the need for a crossdomain.XML file on the BO web server.

  • Client server architecture

    hello friends:
    can we use the XE for the client server architecture???.....which means can we use XE in the same way as we use the standard edition by using net configuration assiatant......if yes then how????

    client server architecture :-)

  • Application server architecture 2

    Hello guys,
    I have few questions about application server architecture�
    I already was asking similar question (http://forum.java.sun.com/thread.jspa?threadID=654898) and got few replies which were looking for me quite ok, but after reading more docs I doubt that suggested approach is right.
    So, I have a task to build a server application which will do the following: Clients (special java clients) will connect to it and send some data for further processing on server side. Chunks of data will be relatively small but they will take a lot of time for processing � up to one or two days.
    Also server will run some sort of �database� where all clients� working data will be stored. So, in case a client loses its data he/she is always able to download it from the server.
    For me it was seeming like server will consist of the following components:
    1. �Reception�. This part will be responsible for all client-communication procedures.
    2. �Data storage�. This part will simply store all clients� data and provide some API interface for clients through �reception� to manage it (add/get/delete and so on).
    3. �Processor�. Some sort of dummy-sophisticated module. It will take some input data from �data storage� when it receives order for this and process it. �Processor� will have two states: �busy� which means �processor� processing some data and �available� which means �processor� ready to process new data.
    4. �Manager�. This part will always check �data storage� for new data and �processor� for availability. When �processor� and new data are available �manager� will make an order for �processor� to take new data from �data storage� and process it.
    I got few suggestions:
    1. Make �Reception� stateless session bean. I agree with it. It is quite reasonable.
    2. Make �Data storage� as a session bean that will use entity beans or hibernate to work with persistent data. It is also seems quite reasonable and as it was suggested I would like to implement my own data access mechanisms instead of using those which provided by J2EE server.
    3. !!! �Processor�. Suggestion was the following: �Use a message driven bean. Make Reception to enqueue a message when new data is available for processing. Processor will process the data and store the resut in database using Data Storage session bean.� It is quite reasonable, except one little thing: I read that Message Driven Beans are not designed for long time processing. Moreover, for example in my JBoss server, Message Driven Beans have attribute KeepAliveMillis=30000. For me it seems that after 30 second my message driven bean will be killed by server and now I doubt: is message driven bean a good solution for implementation long time running processor?
    Now I am thinking that �processor� component should run as an additional application outside of J2EE server and from time to time (when data is finally processed and �processor� available again) send messages to my j2ee server.
    So, whole picture will look like this (please have a look on the picture: http://www.flickr.com/photos/77716401@N00/35565234/ ):
    1. j2ee server always on and ready to create �reception� session stateless EJB to serve remote clients. At the beginning it thinks that �processor� offline and doesn�t attempt to interact with �processor� in any way.
    2. When clients appear to interact with server they simply send or receive package of data without complex interaction. �Reception� simply receives data from clients, pass it to �data mapper� component and tells to �manager� that new data available for �processor� to process. �Data mapper� component stores received data in �database�.
    At this point j2ee server does two simple things:
    - Collecting information for further processing from remote users
    - Returning backups of received information to its owners.
    3. �Processor�. �Processor� talks with my j2ee application via �Manager� stateful EJB. When �processor� runs first thing it does it asks �manager� for data to process. If there is new no data to process, �processor� does nothing but �manager� remembers that �processor� is ready to work. If there is data to process �manager� passes data to �processor� and remembers that �processor� is busy.
    4. When �processor� finishes processing it does the following:
    a. Returns data to �manager�. �Manager� passes processed data to �Data Mapper�. �Data Mapper� stores processed data in database.
    b. Asks �manager� for new data to process if there is new data to process, �processor� does nothing but �manager� remembers that �processor� is ready to work. If there is data to process �manager� passes data to �processor� and remembers that �processor� is busy.
    5. When client submits new data �reception� tells to �manager� that new data available and it �processor� state is �ready for work� �manager� sends order to process to processor.
    And so on. Now for me it seems quite reasonable architecture.
    But, since I am very new in j2ee technologies I ask few questions:
    1. Is my approach right at total?
    2. Is it ok that I would like to make �Reception� stateless EJB, �Data Maper� BMP EJB and �manager� stateful EJB?
    3. I know that JMX is a basic concept of J2EE, so I would like to register my database as a resource in my J2EE server. Is it right?
    4. I need some sort of component which runs all the time from time server started till it is off. If there is anything like this?
    Please, give me some advises and tips!
    Thank you in advance!

    1. Navigating in SAP systems
    --Logon and structure of the user interface
    --Accessing functions in the system
    --Personalization options
    No, this is really nothing more than an introduction for people that have never seen a SAPgui screen before.  Most ABAPers can skip right over this course.  If you understand the NetWeaver architechure, then I would suggest to start withe BC400.
    Regards,
    Rich Heilman

  • Forms server architecture advice needed

    Hi
    We are using Forms & Reports Standalone 10.1.2.3.0. I am trying to get confirmation on two areas: how network traffic flows between client and Forms Server, and if traffic between the client and engine is encrypted.
    Network Traffic
    ==========
    Are the steps below the correct sequence of steps, particularly the last two steps?
    . user enters the appropriate URL into a browser
    . web server serves page containing applet tag (the applets render the forms screens on the client)
    . Browser requests applet if not already on client
    . Web server downloads applet to client
    . Applet on client contacts Forms Listener on server (using socket specified).
    . Forms listener starts a java runtime process on the server and hands off communication to it.
    . All further communication (as the user interacts with the form) is directly between applet on client and runtime process on server.
    Encryption
    =========
    Once communication between the client and the runtime applet is a direct relationship, is this traffic encrypted. I have seen a white paper from 2006 "An overview of Oracle Forms Server Architecture" which states it is, but this paper is 8 years old and I cannot find anything more upto date for 10gRel2.
    Any help would be appreciated.
    Regards
    Andy

    Oracle's reply to my questions were:
    Network Traffic
    =========
    Your understanding for the forms network traffic process is almost correct, except for step (7), where further communication between the applet and the runtime process is done through the Forms Listener Servlet, i.e. not a direct communications as was the case with sockets.
    But I believe this is not a network security issue, as both the Forms Listener Servlet and runtime process should reside on the same server machine.
    Encryption
    =======
    If security is an issue for you, Forms Development do not promote the 40 bit encryption as a secure solution. It dates back to a time when security did not have such a high profile, and most applications were run over the intranet.
    In that case, I would recommend using SSL.
    Regards
    Andy

  • Questions about application server architecture

    Hello guys,
    I have few questions about application server architecture�
    I have a task to build a server application which will do the following: Clients (special java clients) will connect to it and send some data for further processing on server side. Chunks of data will be relatively small but they will take a lot of time for processing (it is ok that it will be quite slow).
    Also server will run some sort of �database� where all clients� working data will be stored. So, in case a client loses its data he/she is always able to download it from the server.
    For me it seems, like server will consist of the following components:
    1. �Reception�. This part will be responsible for all client-communication procedures.
    2. �Data storage�. This part will simply store all clients� data and provide some API interface for clients through �reception� to manage it (add/get/delete and so on).
    3. �Processor�. Some sort of dummy-sophisticated module. It will take some input data from �data storage� when it receives order for this and process it. �Processor� will have two states: �busy� which means �processor� processing some data and �available� which means �processor� ready to process new data.
    4. �Manager�. This part will always check �data storage� for new data and �processor� for availability. When �processor� and new data are available �manager� will make an order for �processor� to take new data from �data storage� and process it.
    So, my question is the following: Which technology and approaches I should use to realize my plan?
    I think that I can make �reception� as a Session Bean, but I don�t know yet, what are the best for the rest, for example �manager� and �processor�. I was thinking about writing my own application server (and I can do it), but I would like to learn j2ee technologies, so I think it is a perfect chance for me (I read a lot about j2ee before I wrote this post, but all examples have only �account�-�bill�-�money transfer� I think it is quite far away from reality or I am doing something wrong ;-)!
    p.s. I am thinking about using JBoss as an Application Server. I tested it and wrote some tests. They work and run fast enough, so I like it. Moreover it has module architecture.
    Please, give me some advises and tips!
    Thank you in advance!

    1. �Reception�. This part will be responsible for all
    client-communication procedures.Session bean with remote interface.
    2. �Data storage�. This part will simply store all
    clients� data and provide some API interface for
    clients through �reception� to manage it
    (add/get/delete and so on).Session bean that will use entity beans or hibernate to work with persistant data.
    3. �Processor�. Some sort of dummy-sophisticated
    module.Use a message driven bean. Make Reception to enqueue a message when new data is available for processing. Processor will process the data and store the resut in database using Data Storage session bean.
    4. �Manager�. This part will always check �data
    storage� for new data and �processor� for
    availability. When �processor� and new data are
    available �manager� will make an order for
    �processor� to take new data from �data storage� and
    process it.It's redundand component, because application server will manage messages and processors.

  • Internet sites server architecture

    Can anyone guide me with server architecture for SP internet sites.
    We are planning for 15000 users. Using FBA authentication with minimum service applications.

    Convincing them is relatively straight forward. You just need to point them at a sufficiently definitive source to change the question from 'I don't believe that SharePoint requires AD' to 'That's awkward, why didn't they make it work without AD, that's
    a pain'*
    The permissions needed for SharePoint installation are listed here and AD is heavily implied, even if they didn't state anything that basic explicitly:
    http://technet.microsoft.com/en-us/library/cc678863.aspx
    Another thread with the same answer:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/d6924577-e95b-4751-93fb-870741ce2426/active-directory-required-for-sharepoint-2013?forum=sharepointadmin
    A thread stating the same from an MVP (Trevor Seward):
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3999d546-946d-47ff-8f8d-8860c84a43b8/sharepoint-2013-and-authentication?forum=sharepointadmin
    *It is a pain that AD is required, on the other hand removing that is like taking a card out of the bottom layer of a very large and elaborate house of cards. Or perhaps just taking out the table that the entire stack sits on.

  • Server architecture

    we are considering to use Sun Solaris v10 servers to host
    50 MB web site for 70,000 users.
    Do you have any info about:
    how many servers we need, what the server architecture should look like, any sizing implications etc
    Do you know where I can find info about this?
    Thanks!

    Your best bet when looking for pre sale information on Sun products is to contact Sun sales in your local area. A webserver running 50MB of data might work well on a x2100. This machine comes with a pretty good software development bundle for Solaris 10 and Java and is very competitively priced. For SPARC later this month the Niagara systems are going to be unleashed so for multi threaded applications, this could be the system for you. The actual configuration and tuning of Solaris for 70k users would be better addressed through presale as well:
    http://www.sun.com/worldwide/index.jsp

  • Oracle server architecture

    Hi all,
    Can any one help me,how to know oracle database server architecture .
    thank you
    regards,
    P Prakash

    Hello,
    Welcome to the forums.
    The Oracle Database Concepts book from the docs is a great start:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/intro.htm#CNCPT914
    Make tahiti.oracle.com your second home. You can find pretty much everything you need in there.

Maybe you are looking for

  • Booting problems with systemd, lvm, linux-ck-corex

    Hi everyone, since Friday I got some complications while booting my system. I use systemd, pulseaudio, bluez, network-manger, gnome and gdm as login manager. Every partition (root, home) without the boot and crypted swap partition is within a lvm vol

  • Reinstall After Hard Drive Errors

    The system restore from the hard drive is a great idea except when your hard drive is dropping bad sectors left and right.  One of my clients bought a 3000 Desktop with Windows Vista Business 13 months ago.  I got the call that the system wouldn't bo

  • GL assignment for future date?

    Hi everybody, We have an issue is as follows: - We have created a sales order for 08-09-2008 - We have created PO for 08-09-2008, here system will able to post everything fine. - Again we are creating one more PO for 08-09-2009, here system threws er

  • Hp touchpad screen is dark won't reboot

    I have an hp touchpad and the screen is off and won't activate I have tried the force reboot and I'm pretty sure that is operating because I have an hourly clock installed with chimes and I can hear the chimes but the screen remain dark

  • Clean up after error

    When my program has an error, I am able to catch it but it's like the program doesn't exit normally. Something is not being cleared out because the program won't run properly again once the error has occurred. Is there a command that will clear out a