Best way to determine if JMS server is alive in a cluster

Can anyone give me an idea on the best way to find out if a JMS server
          in a cluster
          has failed so I can signal migration to another server in the cluster.
          Thanks Larry
          PS weblogic 7.0 sp1
          

Hallo Larry,
          you can go via JMX and retrieve the according RuntimeMBeans in order to
          check the health state of the
          JMSServer resp. the server hosting the JMSServer. If they are not available
          or failed you can trigger the
          migration. At least that's the way I'm doing it...
          try
          JMSServerMBean jmsServer = null;
          ServerMBean candidateServer = null;
          MigratableTargetMBean migratableTarget = null;
          * Retrieve all JMSServer defined for the current domain
          Set jmsServerSet = home.getMBeansByType("JMSServer", domainName);
          Object[] jmsServers = jmsServerSet.toArray();
          * Just the first one is picked assuming there is only one defined
          * within the active FHO domain
          if(jmsServers != null && jmsServers.length > 0)
          jmsServer = (JMSServerMBean) jmsServers[0];
          if(s_logger.isDebugEnabled())
          s_logger.debug("JMSServer: " + jmsServer.getName());
          * A JMSServer can only be associated with a single target,
          * thus pick again the first from the list.
          TargetMBean[] targets = jmsServer.getTargets();
          if(targets != null && targets.length > 0)
          boolean hostingServerRunning = false;
          boolean candidateServerRunning = false;
          * Check whether the JMSServer is really associated with
          * a migratable target. Otherwise the migration must be canceled
          * since it cannot be performed!
          if(targets[0] instanceof MigratableTargetMBean)
          migratableTarget = (MigratableTargetMBean) targets[0];
          * Retrieve all available candidates and select a running instance
          * if any. First check for constrained candidate servers, than for
          * all candidate servers
          ServerMBean[] candidates =
          migratableTarget.getConstrainedCandidateServers();
          if(candidates == null || candidates.length == 0)
          candidates = migratableTarget.getAllCandidateServers();
          if(candidates != null && candidates.length > 0)
          ServerMBean hostingServer = migratableTarget.getHostingServer();
          boolean gotHostingServer = false;
          boolean gotCandidateServer = false;
          boolean runningInstance = false;
          * Loop over all candidates as long as hosting server and candidate
          * server are visited and there running state has been determined
          for(int i=0; i< candidates.length; i++)
          ServerRuntimeMBean serverRuntime = null;
          * Retrieve the current state from the according runtime MBean
          * if available
          try
          serverRuntime = (ServerRuntimeMBean) home.getMBean(new
          WebLogicObjectName(candidates.getName(), "ServerRuntime", domainName,
          candidates[i].getName()));
          runningInstance =
          serverRuntime.getState().equalsIgnoreCase(ServerRuntimeMBean.RUNNING);
          catch(InstanceNotFoundException inf)
          * When a server instance is not available, an InstanceNotFoundException will
          be raised
          * by WLS, which can be ignored
          if(hostingServer != null && hostingServer.equals(candidates[i]))
          hostingServerRunning = runningInstance;
          gotHostingServer = true;
          else
          * A running candidate server will be prefered, thus only if no running
          * instance can be detected, another instance is selected
          if(!gotCandidateServer)
          candidateServerRunning = runningInstance;
          candidateServer = candidates[i];
          gotCandidateServer = runningInstance;
          if(gotCandidateServer && gotHostingServer)
          break;
          if(s_logger.isDebugEnabled())
          s_logger.debug("Migratable Target: " + migratableTarget.getName());
          s_logger.debug("Candidate Server: " + candidateServer.getName());
          else
          throw new Exception("JMSServer not deployed on a migratable target!");
          * Retrieve the migration service coordinator for the active domain assuming
          * there exists only one and invoke the migration later on
          MigratableServiceCoordinatorRuntimeMBean coordinator = null;
          Set coordinatorSet =
          home.getMBeansByType("MigratableServiceCoordinatorRuntime", domainName);
          Object[] coordinators = coordinatorSet.toArray();
          if(coordinators.length > 0)
          coordinator = (MigratableServiceCoordinatorRuntimeMBean) coordinators[0];
          if(enforceMigrationOnInstancesDown)
          coordinator.migrate(migratableTarget, candidateServer, hostingServerRunning,
          candidateServerRunning);
          else
          coordinator.migrate(migratableTarget, candidateServer);
          s_logger.info("Migration of JMSServer from node "
          + migratableTarget.getName()
          + " to node "
          + candidateServer.getName()
          + " has been started");
          else
          throw new Exception("MigrationServiceCoordinator cannot be retrieved");
          catch(Exception e)
          s_logger.error("Could not migrate JMSServer", e);
          Regards,
          CK
          "Larry Presswood" <[email protected]> schrieb im Newsbeitrag
          news:[email protected]...
          > Can anyone give me an idea on the best way to find out if a JMS server
          > in a cluster
          > has failed so I can signal migration to another server in the cluster.
          >
          > Thanks Larry
          >
          > PS weblogic 7.0 sp1
          >

Similar Messages

  • Best way to determine insertion order of items in cache for FIFO?

    I want to implement a FIFO queue. I plan on one producer placing unprocessed Orders into a cache. Then multiple consumers will each invoke an EntryProcessor which gets the oldest unprocessed order, sets it processed=true and returns it. What's the best way to determine the oldest object based on insertion order? Should I timestamp the objects with a trigger when they're added to the cache and then index by that value? Or is there a better way? maybe something coherence automatically saves when objects are inserted? Also, it's not critical that the processing order be precisely FIFO, close is good enough.
    Also, since the consumer won't know the key value for the object it will receive, how could the consumer call something like this so it doesn't violate Constraints on Re-entrant Calls? http://wiki.tangosol.com/display/COH34UG/Constraints+on+Re-entrant+Calls
    Thanks,
    Andrew

    Ok, I think I can see where you are coming from now...
    By using a queue for each for each FIX session then you will be experiencing some latency as data is pushed around inside the cluster between the 'owning node' for the order and the location of the queue; but if this is acceptable then great. The number of hops within the cluster and hence the latency will depend on where and how you detect changes to your orders. The advantage of assiging specific orders to each queue is that this will not change should the cluster rebalance; however you should consider what happens if the node controlling a specific FIX session is lost - do you recover from FIX log? If so where is that log kept? Remember to consider what happens if your cluster splits, such that the node with the FIX session is still alive, but is separated from the rest of the cluster. In examining these failure cases you may decide that it is easier to use Coherence's in-built partitioning to assign orders to sessions father than an attribute of order object.
    snidely_whiplash wrote:
    Only changes to orders which result in a new order or replace needing to be sent cause an action by the FIX session. There are several different mechanisms you could use to detect changes to your orders and hence decide if they need to be enqueued:
    1. Use a post trigger that is fired on order insert/update and performs the filtering of changes and if necessary adds the item to the FIX queue
    2. Use a cache store that does the same as (1)
    3. Use an entry processor to perform updates to the order object (as I believe you previously mentioned) and performs logic in (1)
    4. Use a CQC on the order cache
    5. A map listener on the order cache
    The big difference between 1-3 and 4, 5 is that the CQC is i) a SPOF ii) not likely located in the same place as your order object or the queue (assuming that queue is in fact an object in another cache), iii) asynchronously fired hence introducing latency. Also note that the CQC will store your order objects locally whereas a map listener will not.
    (1) and (3) will give you access to both old and new values should that be necessary for your filtering logic.
    Note you must be careful not to make any re-entrant calls with any of 1-3. That means if you are adding something to a FIX queue object in another cache (say using an entry processor) then it should be on a different cache service.
    snidely_whiplash wrote:
    If I move to a CacheStore based setup instead of the CQC based one then any change to an order, including changes made when executions or rejects return on the FIX session will result in the store() method being called which means it will be called unnecessarily a lot. It would be nice if I could specify the CacheStore only store() certain types of changes, ie. those that would result in sending a FIX message. Anything like that possible?There is negligible overhead in Coherence calling your store() method; assuming that your code can decide if anything FIX-related needs to be done based only on the new value of the order object then this should be very fast indeed.
    snidely_whiplash wrote:
    What's a partitioned "token cache"?This is a technique I have used in the past for running services. You create a new partitioned cache into which you place 'tokens' representing a user-defined service that needs to be run. The insertion/deletion of a token in the backing map fires a backing map listener to start/stop a service +(not there are 2 causes of insert/delete in a backing map - i) a user ii) cluster repartitioning)+. In this case that service might be a fix session. If you need to designate a specific member on which a service needs to run then you could add the member id to the token object; however you must be careful that unless you write your own partitioning strategy the token will likely not live on the same cache member as the token indicates; in which case you would want a ful map listener or CQC to listen for tokens rather than a backing map listener
    I hope that's useful rather than confusing!
    Paul

  • What's the best way to setup a media server/central storage for all of my?

    I was wondering what the best way to achieve a central media server for all my iTunes content + iPhoto's, calendar syncing and contact sharing is? This is what I currently have:
    iMac 20" Aluminum + External HD Backup (kids)
    Macbook Black (wife)
    Macbook Pro 15" (me)
    Airport Extreme 802.11n (obvious)
    TimeCapsule 1TB (wifi backup for wife/me)
    I would like to replace my PC in my office with a brand new Mac Pro Nehalem 8-Core, 8GB Ram, and 4TB, and replace my PC laptop in my living room attached to my tv, with an Apple TV.
    I want to centralize all our Photos from vacations, etc. Music, videos, movies, that are currently split up over wife's macbook, kids imac and my macbook pro onto my soon to be purchased Mac Pro.
    I want to be able to stream everything from my living room via Apple TV for when guests come over, dinner parties, etc. (plus I love apple and it keeps things clean)
    I'm currently using MobileMe to sync all of our Calendars and Contacts with my main account, which is great, but MobileMe doesn't sync to family members accounts =
    What would I need to do to centralize all this onto my future Mac Pro so that everyone has access all the time when they are home and the key here is, modify/update/change from their machines and sync it back/update it on the Mac Pro.
    Also, I'm hoping Snow Leopard has some changes to iTunes to make this a little more possible, since we're right around the corner from this release. I don't really want to spend an additional $900+ on Snow Leopard Server to have to achieve these results, but if it makes it easier, and does the job, then I guess I might. This is all speculation though, since it's not out yet. I'd like to get this all sorted and setup within the next month.
    I was considering a Drobo, they say they can throw up iTunes Server but, I appreciate everyone for reading this, and taking the time to respond!
    Thanks!
    Message was edited

    I'm in the process of setting up a smaller (and cheaper) but somewhat similar setup to what you want to do, so maybe one example might help point you in the right direction. My needs consist of a centralized location for data storage, which will include iPhoto libraries (I keep two separate ones), iTunes (which I also want served to the home theater system), something other than my laptop to play internet videos and downloaded content on my TV, all with ideally the lowest cost and energy use possible.
    My solution was the new Mini with a FW800 external drive as the server/media hub and Airport gigabit as the network hub (it also handles the backup drive).
    FW800 is fast enough to saturate a gigabit ethernet link, so I don't consider that much of a bottleneck. The Mini then has iTunes running at all times with its centralized library on it; it is hooked to the home theater via HDMI-DVI video and optical audio, so it can play music and also handle videos when desired; Front Row with the Apple remote is close enough to an AppleTV that I think it handles that well, and it's more full-featured than an AppleTV. It can further be used to display photos/slideshows/whatever on the TV for guests or such, or to surf from the couch with a wireless mouse/keyboard. You can also toss in an EyeTV for $150 and use that as a DVR if you feel like it.
    When I want to edit photos or such on my desktop, the gigabit link is fast enough that I can run iPhoto without noticing any significant slowdown. Its also usable over wireless, though I have a dangling extra network cable to plug into a laptop for full gigabit speed if need be. iTunes, of course, shares its library, which can be played from any of the computers in the house if so desired (iPhoto can do that too if you just want to display).
    If I REALLY wanted top speed (though I've even done video editing in iMovie via ethernet without issue), I could use a third party synch app (I like Sync) to mirror any of the content from the mini server to a local drive; this works fine with anything but multi-way synching, such as address books being modified in different locations. I'd probably try to set up one of those Mobile Me clone systems or use a 3rd party app if I needed to do that.
    Again, maybe this isn't powerful enough or "synched" enough in terms of local storage for your taste, but the advantage is that a Mini uses a minute fraction of the power of a Mac Pro, so you're saving a lot on electricity if the computer will be powered up at all times as a server, and it's also a lot more full-featured as a home theater media hub than an AppleTV. And, heck, the thing is about as well equipped as my old top-of-the-line G5 tower for a 5th the cost and 1/15th the power and noise.

  • Best way to determine if document is truly unsaved

    Is there a preferred method for determining whether a file is truly unsaved? I'm distinguishing between files that have have been saved and then had some changes made to them (but have a valid name and filePath) and files that have just been created during this session and have not been saved anywhere (other than a temp directory). The only thing I can think of is checking whether an error is thrown by the filePath property; is this really the best way?
    (I have looked into both the saved and modified properties, but neither provide this information I am looking for. In theory I could check the name property to see if it starts with "Untitled" but there's nothing stopping a user from actually calling a file that so I'd rather not.)
    Quick background: I have a script that lets a user browse to some files and get information about them. Files should be closed after processing, unless of course they were open to begin with. So, I do a check of each file against the documents open when the script starts running and set a flag. Just want to make sure that there isn't a better solution than catching the error.
    Brief code:
        var openDocs = app.documents.everyItem().getElements();
        for (var i = 0; i < funcDocs.length; i++)
            var funcDoc = funcDocs[i];
            var fileInUse = false;
            if (funcDoc instanceof File)
                if (openDocs.length == 0) {fileInUse = false;}
                else
                    for (var f = 0; f < openDocs.length; f++)
                        try{
                             openDocs[f].filePath;
                        }catch(e){continue;}
                        if (openDocs[f].name == funcDoc.name && openDocs[f].filePath == funcDoc.path)
                            fileInUse = true;
                            break;
                var openDoc = app.open(funcDoc, false, 1147563124);
            else
                var openDoc = funcDoc;
                fileInUse = true;
           //Do something...
            if (fileInUse == false) {openDoc.close();}
    I guess I'm looking for a bit of a sanity check that I'm not missing some more straightforward method here. Thanks in advance!

    Help>About
    Hold down CTRL or CMD and it gives a complete document history.

  • Best way to migrate to new server?

    We're moving from a G5 XSERVE with an old RAID to a new one with the Promise. Will all the permissions (we're bound to Active Directory) carry over without an issue or will we have to go through Workgroup Admin and re-do everything (which would take hours)? Just trying to find out the best way to do this migration with minimal headaches. The new server is already set up and running, bound to AD, etc. I'm just worried about the permissions being hosed.
    What other issues should I be aware of? Is there an Apple document that covers migrating/upgrading XSERVES?

    Hi
    http://images.apple.com/server/macosx/docs/Upgradingand_Migrating_v10.5_2ndEd.pdf
    http://www.apple.com/server/macosx/resources/
    Tony

  • Best way to determine optimal font size given some text in a rectangle

    Hi Folks,
    I have a preview panel in which I am showing some text for the current selected date using a date format.
    I want to increase the size of the applied font so that it scales nicely when the panel in which it is drawn is resized.
    I want to know the best way in terms of performance to achieve the target. I did some reading about AffineTransform and determining by checking ina loop which is the correct size, but it does not feel like a good way.
    I would appreciate some tips.
    Cheers.
    Ravi

    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class ScaledText extends JPanel {
        String text = "Sample String";
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            Font font = g2.getFont().deriveFont(16f);
            g2.setFont(font);
            FontRenderContext frc = g2.getFontRenderContext();
            int w = getWidth();
            int h = getHeight();
            float[][] data = {
                { h/8f, w/3f, h/12f }, { h/3f, w/4f, h/8f }, { h*3/4f, w/2f, h/16f }
            for(int j = 0; j < data.length; j++) {
                float y = data[j][0];
                float width = data[j][1];
                float height = data[j][2];
                float x = (w - width)/2f;
                Rectangle2D.Float r = new Rectangle2D.Float(x, y, width, height);
                g2.setPaint(Color.red);
                g2.draw(r);
                float sw = (float)font.getStringBounds(text, frc).getWidth();
                LineMetrics lm = font.getLineMetrics(text, frc);
                float sh = lm.getAscent() + lm.getDescent();
                float xScale = r.width/sw;
                float yScale = r.height/sh;
                float scale = Math.min(xScale, yScale);
                float sx = r.x + (r.width - scale*sw)/2;
                float sy = r.y + (r.height + scale*sh)/2 - scale*lm.getDescent();
                AffineTransform at = AffineTransform.getTranslateInstance(sx, sy);
                at.scale(scale, scale);
                g2.setFont(font.deriveFont(at));
                g2.setPaint(Color.blue);
                g2.drawString(text, 0, 0);
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new ScaledText());
            f.setSize(400,400);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Pricing: Best way to determine an partial condition amount

    Hi,
    In our scenario MWST (VAT) is calculated from multiple values/conditions (price and postage&package costs).
    What is the best way to extract the VAT value for only one of these conditions? I can only think of extracting this value via ABAP within a routine however this value isn't rounded? Is there a more easy way via customizing/conditions to extract this value?
    We need this value to calculate/sum the net-value for postage and package costs.
    Kind regards,
    Tim

    What is the best way to extract the VAT value for
        only one of these conditions?
    If the requirement will not vary from billing to billing, then you can accordingly assign the From-To step number in your pricing procedure. 
    thanks
    G. Lakshmipathi

  • Best way to go about customer servi

    Yes,yes, I have finally obtained the infamous headphone jack, and I know I should contact CS, but I was wondering, aside from contacting them in a mature, level headed manner (as opposed to "UR PLAYER SUX! FIX PLEASE!") what's the best way to make sure your player is being taken care of well, and will be returned in a timely fashion?

    Urm, well just make sure you follow what they tell you to do e.g. put the RMA number on the outside of the package and send it to the right address.

  • Which is the best way to send information from server to SIM

    hi,
    can anyone help me,i want to send sms to an sim through smsc from tomcat server. Is there anyway way to implement it
    thanks

    SQL server does not have any version named SQL server 2003 please check the version correctly it should be either SQL 2005,2008,2008 R2,2012
    You can use the backup/restore to upgrade the SQL 2000 database to till SQL 2005,2008,2008R2
    For SQL Server 2000 to 2012
    First upgrade from SQL 2000 database to either SQL 2005, 2008 or 2008R2 and than upgrade it to SQL 2012.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/eaa1eb44-729f-466b-8233-cb768fbb4208/upgrading-to-sql-server-2008-from-sql-server-2000?forum=sqlsetupandupgrade
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/4fac7511-2c75-46a0-802b-807dd26b12bf/sql-2012-will-not-convert-a-sql-2000-database?forum=sqlservermigration
    And after migration to SQL 2005 or 2008, if you want to script the database than can generate scripts pick DB and check off "script all objects in the selected database".
    http://blog.sqlauthority.com/2011/05/07/sql-server-2008-2008-r2-create-script-to-copy-database-schema-and-all-the-objects-data-schema-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/
    You can upgrade from SQL Server 2005, SQL Server 2008, and SQL Server 2008 R2 to SQL Server 2012.
    http://msdn.microsoft.com/en-us/library/ms143393(v=sql.110).aspx
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • Best way to determine what objects has been selected in a Collection?

    Hi all
    I´m currently developing an application where a user can create a PDF based on the choices made from multiple collections.
    Each collection contatins 10-50 items, and there are about 8 different collections with objects.
    Checkboxes are used to select items from these collections.
    I´m wondering how I would best determine what choices have been made, and if would be good to remove all objects from
    a collection that has NOT been chosen?
    Currently, it looks like this (exemple for one collection, but same solution is used for all collections)
    private Collection<Texture> textureList = new ArrayList<Texture>();
    private ArrayList<Texture> textureResult = new ArrayList<Texture>();
              for (Texture t : textureList) {
                   if (t.isSelected()) {
                        textureResult.add(t);
              }After this iteration, textureResult is used to create the PDF.
    This PDF contains lists with dynamic frames, so I need to now how many
    items was selected before creating the PDF.
    Wondering if this is the best/most efficient way to do this though?
    Maybe it doesn´t matter all that much with lists this small, but I´m still curios :-)
    I guess you could do something like this aswell
              while (textureList.iterator().hasNext()) {
                   Texture t = (Texture) textureList.iterator().next();
                   if (!t.isSelected()) {
                        textureList.iterator().remove();
              }Any suggetions?

    Dallastower wrote:
    I´m wondering how I would best determine what choices have been made,Are you asking how to determine which boxes have been checked? Or do you know how to do that and you're asking how to associate those boxes with items in your Collections? Or do you know how to do that and you're asking how to keep track of those selected items in the Collection?
    I don't do GUIs, so I can't help with the first two, but for the third, you could create a new collection holding just the selected ones, or remove the unselected ones from the original Collection.
    and if would be good to remove all objects from
    a collection that has NOT been chosen?That's entirely up to you. If you create the original Collection when the user makes his selection, and only need it to survive one round of selection, that may be fine. But if you need to get back to the original collection later, and it's expensive to create, then you might want to just create a second collection and add items from the original to it if they're selected.

  • Best way to use Sun Web Server connection pooling with Web Application?

    I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
    As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
    Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
    Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
    Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
    Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
    Any tips?
    dailysun
    P.S. For instance, in my tool, I call the interface class in this manner:
    Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
    getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector.

    I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
    As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
    Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
    Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
    Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
    Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
    Any tips?
    dailysun
    P.S. For instance, in my tool, I call the interface class in this manner:
    Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
    getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector.

  • What's the best way to determine which row a user clicked on via a link?

    Hello. Probably simple question, but my googleing is failing me. I have a table, with a column that is a command link. How can I determine which row the user clicked on? I need to take that value, and pass it to a different page to bind it for a different query. I was thinking of setting the result in a session bean? Or is there a better way?
    Thanks!

    Hi,
    You have two options:
    1. (Complex) Have your ActionListener evaluate the event to get the source, then climb the component tree up to the table and get the current row data;
    2. (Simple) Add a setPropertyActionListener to the link with value="#{var}" target="#{destination}" where var is the table's var attribute value and destination is your managed bean that required the clicked row.
    Regards,
    ~ Simon

  • Which is the best way to migrate the SQL SERVER 2000 Database to SQL SERVER 2003 Database?

    Hi,
        I  need to migrate the Production database sql server 2000 to Sql server 2003, Please give me the best idea to migrate the database without any loss data, credentials and  Objects. 
    Nandha Kumar

    SQL server does not have any version named SQL server 2003 please check the version correctly it should be either SQL 2005,2008,2008 R2,2012
    You can use the backup/restore to upgrade the SQL 2000 database to till SQL 2005,2008,2008R2
    For SQL Server 2000 to 2012
    First upgrade from SQL 2000 database to either SQL 2005, 2008 or 2008R2 and than upgrade it to SQL 2012.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/eaa1eb44-729f-466b-8233-cb768fbb4208/upgrading-to-sql-server-2008-from-sql-server-2000?forum=sqlsetupandupgrade
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/4fac7511-2c75-46a0-802b-807dd26b12bf/sql-2012-will-not-convert-a-sql-2000-database?forum=sqlservermigration
    And after migration to SQL 2005 or 2008, if you want to script the database than can generate scripts pick DB and check off "script all objects in the selected database".
    http://blog.sqlauthority.com/2011/05/07/sql-server-2008-2008-r2-create-script-to-copy-database-schema-and-all-the-objects-data-schema-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/
    You can upgrade from SQL Server 2005, SQL Server 2008, and SQL Server 2008 R2 to SQL Server 2012.
    http://msdn.microsoft.com/en-us/library/ms143393(v=sql.110).aspx
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • Best way to copy files to server via UNIX?

    Hi there!
    I need to write a script for my clients to copy files to a server. What is the best method to copy a lot files to a server? I want this all handled through a UNIX tunnel.
    Thank you!

    spraguga wrote:
    Sorry about all this as I am very unfamiliar with ssh keys. I was trying to do this in the terminal maybe I should be doing it via ARD. Currently all Clients have ARD access and SSH access active in System Preferences/Sharing. Evey client machine is authenticated with the same admin account that I use with ARD.
    So should I be doing the following:
    Run this on every Client machines via ARD UNIX command to create the key:
    ssh-keygen -t dsa -f ~/.ssh/id_dsa -N ''
    And then run this on every Client machines via ARD UNIX command to update the servers authorized_key file:
    cat ~/.ssh/id_dsa.pub | ssh user@host 'cat - >> ~/.ssh/authorized_keys'
    Is that it, am I missing anything?
    I'm not familiar with ARD so I can't comment on that part. I can tell you that there is no need to create the keys on the clients. You can create all the keys for all the clients on a single machine - your machine. Instead of naming them "id_dsa", use something like "~/Documents/client_ssh_keys/client1". Write a script to go through and build them all in one swell foop. Then you can copy them all to the server's authorized_keys file.
    You will have to copy the client1 and client1.pub files into .ssh/id_dsa and .ssh/id_dsa.pub on each client machine. It would also be a good idea to update the .ssh/known_hosts file on each client machine with the entry for the server. You can get this from your own known_hosts file. As long as you are on the client, copy your own public key into authorized_keys.
    At this point, you can log in to every client machine and do so in a script, without a password. Each client can log in to the server without a password and run scripts.
    Also what if the machine is logged in by another Client. Then this will not work, correct? Can I set it up so anyone who is logged into any Client machine can ssh in to the server. Would I just change the id_dsa location to root or top level of the server and client startup volumes?
    SSH is an independent communication channel. No one needs to be logged in on any machine.
    You can use the "-i" option on SSH to use a specific set of keys for communicating with a server. Sharing keys like that would be a significant security hole. You would definitely want to use a passphrase in that case.

  • What is the best way to update the remote server?

    Hi,
    Sorry, but this is a newbie question.
    Is there a way to update your Flex app on the remote server without taking it down momentarily? Currently, if I update the app, I remove the files from the public_html folder on the server and then put the new files in their place. The site goes down while I'm making the change. Is there a better way of updating or is this the standard way?
    Sorry for such a basic question.
    Thanks,
    -Laxmidi

    If you are still using IOS 4
    Connect your iPad to iTune (computer) and Check for Updates. Backup before you proceed with update.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%208/d549b56e8567252791a 1834379e59068.jpg

Maybe you are looking for

  • MSI KT3 Ultra-ARU power supply problem

    Hello ! I am a lucky owner of MSI KT3 Ultra-ARU motherboard but have one problem. My power supply Fortron (FSP Group) 300-GT 300W seems to have some kind of incompatibility with this motherboard. In my case, the computer can't be shutted down by soft

  • ORA-06521: PL/SQL: Error mapping function with 10.1.0 external procedure

    We have an external procedure running fine on 8.1.7 on VMS. After compiling and linking succesfully under 10.1.0, I get ORA-06521 PL/SQL: Error mapping function and ORA-06522: ERROR - vms_dlsym for file x, where x in the filename of the linked execut

  • File adapter validate file checking directory for files

    Hi Gurus, We have requirement. There are 3 directories (Processing, Error and Archive)in the Source side.SAP PI need to pick up a file called "abc.txt" from the processing tab. But there is a condition. 1. If "abc.txt" file exists in the "Error" dire

  • Failed to execute the insert command

    I have a sign up training calendar that runs on sharepoint 2010, over the weekend i went to install the latest cumulative update http://support.microsoft.com/kb/2817552 and it seems to have broken the signup process. Whenever some goes to sign up for

  • AEX in a DMZ

    Hi All In a scenario where a AEX is used (running in a DMZ), in conjunction with a standard SAP NetWeaver PI dual-stack installation.... Is it possible to: 1) Run the Seeburger AS2 adapter on the the AEX in a DMZ 2) Make use of the 'Integration Proce