DNS name lookup in clustering environment

          Hi,
          I have 2 managed servers hosted on different IP addresse in a cluster.
          I have configured Cluster address in weblogic console to these 2 IP addreses seperated
          by a comma.
          If I am doing lookup for a session bean from my application, which URL i should
          use in lookup?
          If I have a DNS name configured, how I should use it? Can I lookup using DNS name
          only?
          For Ex this is what I have done-
          I have 2 managed servers : 10.1.30.155 and 10.1.30.151
          I have configured cluster addresses to '10.1.30.155, 10.1.30.151'
          I am using url- 't3://DNSName' for Session Bean lookup.
          Can any one guide me on this?
          Thanks in advance.
          Prasanna
          

Hi,
For the manual create the CNO usually cause may issue, you'd better don't use that method.
The related article:
Windows 2008/ Windows 2008 R2 CNO Recovery
http://blogs.technet.com/b/hugofe/archive/2010/03/11/windows-2008-windows-2008-r2-cno-recovery.aspx
Hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • DNS name for sql clustering instance name

    Hi all,
    sql 2005 or sql 2008 clustering on windows 2008 R2
    We create sql 2005 or sql 2008 clustering.  The sql clustering
    instance name (DNS name) was created manaully or created automatically in DNS.
    is it issue if sql instance name was created manaully in DNS?
    Thank you.

    Hi,
    For the manual create the CNO usually cause may issue, you'd better don't use that method.
    The related article:
    Windows 2008/ Windows 2008 R2 CNO Recovery
    http://blogs.technet.com/b/hugofe/archive/2010/03/11/windows-2008-windows-2008-r2-cno-recovery.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • JNDI lookup in a clustered environment

              Hi,
              I have deployed my application on a clustered environment containing one admin
              server and two managed servers. The application is deployed on the managed servers.
              We have a DNS for these two managed servers.
              Currently, I am using t3:localhost:portnumber to get an initial context for JNDI
              lookup.
              But this will not provide perfect load balancing, since each server side component
              (EJB) will lookup for a needed component on the same server itself.
              Is there any way to get the Initial Context by using the DNS name?
              I tried t3:DNSName (Our DNS is created till the port number. e.g. http://DNS points
              to http://Managedserver1:portnumber and http://Managedserver2:portnumber
              It works, but is random. Sometimes, it gives me the following exception:
              Root exception is java.net.ConnectException: t3://DNS Name: Destination not
              reachable using: 't3'
              Could someone help me figure out a way to do this in a better way?
              Thanks,
              Aparna
              

              If you don't want or have money to use external load balancers you should be using
              the DNS entry as t3://server1:port,server2:port (you indicated you are using http.
              Also make sure your network elements between the client and the servers allow
              t3 protocol if there is packet filtering).
              S
              "Aparna" <[email protected]> wrote:
              >
              >Hi,
              >
              >I have deployed my application on a clustered environment containing
              >one admin
              >server and two managed servers. The application is deployed on the managed
              >servers.
              >We have a DNS for these two managed servers.
              >
              >Currently, I am using t3:localhost:portnumber to get an initial context
              >for JNDI
              >lookup.
              >But this will not provide perfect load balancing, since each server side
              >component
              >(EJB) will lookup for a needed component on the same server itself.
              >
              >Is there any way to get the Initial Context by using the DNS name?
              >
              >I tried t3:DNSName (Our DNS is created till the port number. e.g. http://DNS
              >points
              >to http://Managedserver1:portnumber and http://Managedserver2:portnumber
              >
              >It works, but is random. Sometimes, it gives me the following exception:
              > Root exception is java.net.ConnectException: t3://DNS Name: Destination
              > not
              >reachable using: 't3'
              >
              >Could someone help me figure out a way to do this in a better way?
              >
              >Thanks,
              >Aparna
              

  • EJB lookup in a cluster (DNS names to servers mapping)

              I am using weblogic6.0 to setup a object clusters. Currently I have 2 physical
              machine each running one object server.
              I have a servlet in the web tier (it is not part of the cluster) that lookups
              the EJB's.
              From the documentation, I understand intialContext lookup should use one DNS name
              that maps to both the object servers.
              My question is how can I setup that ?
              - I tried the following, I am not sure if this is right
              I created a virtualhost with
              name: MyVirtualHost
              virtual host names : MyCluster (this is name of the cluster I had setup )
              Targets : MyCluster
              I tried looking up with
              t3//MyVirtualHost:7001 and t3//MyCluster:7001
              No luck in both the cases !!!!!
              Note : I restarted my weblogic servers after
              creating the virtual host. But I did not reboot my machine ( don't know if this
              is required )
              Please help !!!!
              Thanks
              Abi -
              

              You need add an entry in Domain Name Server to include your host1 and host2, and
              use it in your JNDI lookup. Or you can do:
              t3://host1,host2:7001
              Both ways should work. Will load balancing to two JNDI trees.
              Jim Zhou.
              "Abinesh Puthenpurackal" <[email protected]> wrote:
              >
              >I am using weblogic6.0 to setup a object clusters. Currently I have 2
              >physical
              >machine each running one object server.
              >
              >I have a servlet in the web tier (it is not part of the cluster) that
              >lookups
              >the EJB's.
              >
              >From the documentation, I understand intialContext lookup should use
              >one DNS name
              >that maps to both the object servers.
              >
              >My question is how can I setup that ?
              > - I tried the following, I am not sure if this is right
              > I created a virtualhost with
              > name: MyVirtualHost
              > virtual host names : MyCluster (this is name of the cluster I had
              >setup )
              > Targets : MyCluster
              >
              >I tried looking up with
              >t3//MyVirtualHost:7001 and t3//MyCluster:7001
              >
              >No luck in both the cases !!!!!
              >
              >Note : I restarted my weblogic servers after
              >creating the virtual host. But I did not reboot my machine ( don't know
              >if this
              >is required )
              >
              >Please help !!!!
              >
              >Thanks
              >Abi -
              >
              

  • Error when calling BPEL from ESB in clustered environment

    Hi
    We have recently installed SOA Suite in a clustered environment and have a serious issue.
    I am not able to call BPEL processes from my ESB services via WSIF (by using the 'browse target operation' in JDeveloper). The exception i get at runtime is this.
    "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found"
    When I instead call the BPEL process via SOAP (by using a SOAP invocation service i JDeveloper) it works fine.
    Everything works fine in development environment which not are clustered.
    Has anyone any excperience from using ESB in a clustered environment?
    Regards
    Kalle Viklund

    Hi
    ESB and BPEL resides in the same oc4j-instance. Though, esb-rt and orabpel are different applications in that oc4j-instance. And the lookup 'ejb/collaxa/system/DeliveryBean' only exists in the orabpel application.
    In the ESB Console I already have the same setting for the 'BPELSystem' as for the 'Defaultsystem'.
    Cluster name: esb_prod
    Virtual host: prod1.sth.nu
    Port: 80
    Topic location: ESBTopics/Topics/ESB_JAVA_DEFERRED
    Connection factory location: OracleOJMS/XATCF
    regards
    Kalle

  • Configuring TLS support in a clustered environment

    Hi folks !
    I couldn't find a definitive guide to TLS support in a clustered environment... So I'll give it a shout :)
    Has anyone managed to configure TLS support in his/her cluster ?
    My setup is as follows :
    - we have two Ironports, clustered, who are addressed using a common name through a hardware loadbalancer (mxfarm)
    - Each ironport is seen as a unique host when sending outbound emails (ironport-1 and ironport-2)
    - I have installed a certificate in MACHINE mode on each of them (i.e. one certificate for ironport-1, another for ironport-2)
    Now, when I want to enable TLS (in cluster mode), I get the message that a security/key certificate hasn't been installed....
    Sooooooooo how should I do it ??
    Thanks !!
    Frédéric Lens

    Hello,
    We have four machines in a cluster, using TLS as default for inbound and outbound traffic.
    Since we do not use load balancers we have individual certs for each machine. Besides that we have (company signed) certificates for each machine. These are used for systems management (HTTPS). (By the way... the certificate management is a terrible job if you have to maintain four machines with two certs each (and thus two certification paths). Hey Ironport: some major enhancements are possible on this field.....)
    Since we use individual certs we have to install them in machine mode. The TLS policies are cluster based and this is configured and functioning without any problems.
    I have a few attention points:
    The certs that are installed before a machines has joined the cluster are removed on the moment you add this machine to the cluster. This in normally not done very frequently so I think this will not be the problem in this case, but it’s good to know that after joining the cluster you have the initial demo certs active again.
    Even if you buy certificates from commercial vendors you must be sure you install the complete certification path. We have Verisign certs and had to install the intermediate certificate to get the chain complete.
    You mention you have connected your MGA's to an incoming load balancer and send out mail via the individual hosts. I expect you to utilize three IP addresses for that (one incoming that is assigned to the load balancer and two others for the MGA's outgoing traffic). This means you must have three individual forward and reversed DNS entries. Since the CN of the cert must match the (public) DNS name of your system you should have individual certs for inbound and outbound traffic. The inbound cert (and intermediate certs) must be the same on both machines since these are is presented to the outside world as if they where one and should match the forward DNS name of the load balancer IP address. The outbound certs must be unique for each machine, matching the reversed DNS name of that machine.
    I have two points that I'm not sure of, maybe someone else can clear this up:
    The SMTP greeting normally contains the public systems hostname. I do not know if you can configure individual SMTP greetings for in and outbound mail and, if this is possible, if the inbound greeting can be the same on two clustered machines. Since you have two machines combined behind a loadbalancer I would expect the to present them selves to the public identically, for the outbound traffic is the individual machine IP address used, I would expect the system to identify it selves by the hostname that is in the PTR for the used IP address. Finally: I am not sure if this has any impact on TLS or not.
    I always import the all intermediate certs for each cert I import. That means I install the two public intermediate certs twice and install the internal root and intermediate cert also twice. It might be sufficient to install both sets only once but I have never tested this. Who can tell if I am forcing myself into too much work or not?
    I hope you solve your problem. My experience is that starting with certificates is most of the time a PITA (Pain In The Ass) but if you have figured out how to do it for a particular system it becomes quite simple.
    Best regards
    Steven

  • Prefer DNS name to last known IP

    One of the most annoying behaviors of ARD is that is seems to care only about the IP of the client. I frequently lose connections to clients in our DHCP environment when the IP changes. ARD already knows the DNS name of the client, but it does not seem to even try to do a DNS lookup to try to reconnect when the IP changes. Does anyone know of a hack or other method to have ARD do a DNS lookup when it cannot contact a client?
    Thanks!

    Get Info on the client. Edit the info. Delete the IP address. You may, or may not, need to make an edit of some sort in the DNS field (so it registers a change). Save the new info.
    This should force ARD to prefer the DNS name over the IP address.

  • Data Caching in a Clustered Environment

              I want to cache read-only reference/code table data that will run in a clustered
              WLS6 environment. It's a JSP application and I am storing a complete HTML Select
              Control per reference/code table data in the cache. The question is where to
              cache it? I was going to put it in the ServletContext (JSP "application" implicit
              object), but the ServletContext is not replicated. I considered using JNDI, but
              there are problems with duplicate name errors when another server who doesn't
              originally bind the object tries to lookup, change and rebind the object. I guess
              JMS Multicasting is an option, but I don't want to implement JMS just for an application
              data cache.
              Any suggestions for a simple reference/code table read-only caching strategy that
              will work in a clustered WLS6 environment?
              

    If the data is strictly read-only, and you do not have to worry about cache
              integrity, then look at WebLogic JSP cachetag:
              http://www.weblogic.com/docs51/classdocs/API_jsp.html#cachetag
              You can use it to cache both the output and the calculations results
              (variables calculated inside the cache tag).
              The scenario will be exactly the same for non-clustered and clustered
              cases - using multicast to broadcast small invalidation messages (so the
              data can be refreshed from the database) is ok, but replicating application
              data is not (and you definitely do not want to use JNDI for this purpose).
              BTW, the initial CacheTag implementation in 5.1 (supposedly) had a 'cluster'
              scope and I assume it was multicasting fresh data after cache miss - there
              is no such scope in 6.0 implementation.
              If you still want replication you can look at javagroups:
              http://sourceforge.net/projects/javagroups/
              (distributedhashtable example).
              Olsen <[email protected]> wrote:
              > Cameron,
              > Thanks for the reply. However, as I stated below, I am not interested in
              > JMS, nor an EJB solution to the problem. It really is not that complicated of
              > a concept and I know a solution or two (ServletContext, JNDI), but none that works
              > in a WLS6 clustered environment.
              > Any other ideas???
              > Thanks...
              > "Cameron Purdy" <[email protected]> wrote:
              >>Dimitri had a clever (as ever) solution using JMS to maintain cache
              >>integrity:
              >>
              >>explanation at
              >>http://dima.dhs.org/misc/readOnlyUpdates.html
              >>
              >>d/l from
              >>http://dima.dhs.org/misc/readOnlyUpdates.jar
              >>
              >>--
              >>Cameron Purdy
              >>Tangosol, Inc.
              >>http://www.tangosol.com
              >>+1.617.623.5782
              >>WebLogic Consulting Available
              >>
              >>
              >>"Olsen" <[email protected]> wrote in message
              >>news:[email protected]...
              >>>
              >>> I want to cache read-only reference/code table data that will run in
              >>a
              >>clustered
              >>> WLS6 environment. It's a JSP application and I am storing a complete
              >>HTML
              >>Select
              >>> Control per reference/code table data in the cache. The question is
              >>where
              >>to
              >>> cache it? I was going to put it in the ServletContext (JSP "application"
              >>implicit
              >>> object), but the ServletContext is not replicated. I considered using
              >>JNDI, but
              >>> there are problems with duplicate name errors when another server who
              >>doesn't
              >>> originally bind the object tries to lookup, change and rebind the object.
              >>I guess
              >>> JMS Multicasting is an option, but I don't want to implement JMS just
              >>for
              >>an application
              >>> data cache.
              >>> Any suggestions for a simple reference/code table read-only caching
              >>strategy that
              >>> will work in a clustered WLS6 environment?
              >>
              >>
              Dimitri
              

  • Domain name/"primary DNS" name/mail host name/mail server name/mx name

    Hi,
    I have registered my domain name (N.com) with an external dns server and created an MX record (mail.N.com) for it as well. My server sits behind a router and internet traffic is port(80)-forwarded to my server's fixed internal ip address (I can access my webpages from the internet just fine). When I initially setup the server I was asked to give it a "primary DNS name." I naturally assumed that N.com was supposed to be entered here, but that just caused all kinds of problems (though I still do not understand why). So I reinstalled and currently have server.N.com as the primary DNS name of the server (although it shows up in Server Admin and Workgroup Manager as server.local--why is that?)
    I have had no luck getting any email from the internet with the default settings in mail services (domain name of N.com and host name of server.N.com). Having no luck with the defaults, I assumed that maybe I needed to change the host name to "mail.N.com" so that it matched the MX record. I also changed the user preferences in Workgroup Manager to receive mail from mail.N.com--but still no luck. Could someone tell me what I am doing wrong and how come none of the Mail Service literature mentions anything about what a mail "host name" is supposed to be? Is it supposed to be the same as the "Mail Server" name that Workgroup Manager asks each user for? and is it the same as the MX record name?
    I am just needing some help to connect all these variously named, but undefined, dots.
    Also, how come I can access webmail from the internet using www.N.com/webmail but can't do it from any computers within my physical network (I have to use IPaddress/webmail or server.local/webmail)?
    Also, should my user email addresses be [email protected] or [email protected] (which is the current default)?
    Thanks in advance and good luck!
    John

    I had been told by a friend that ... regular email coming in from the internet would go through port 80
    Unfortunately you were misinformed.
    My MX record needs the extra subname (such as "mail") in front of the domain name, right?
    Not at all. A MX record for 'N.com' is entirely valid (expected, in fact).
    An MX record tells remote mail servers where to send mail for any domain/subdomain. If you think about it, let's say you worked for Apple and you wanted people to be able to send email to [email protected], well then you need an MX record for 'apple.com'.
    You can see if you dig MX apple.com that they actually have 9 MX records, but the point still stands.
    Now, you might also have MX records for subdomains so that you can have [email protected], [email protected], [email protected], etc. Each of these subdomains would need a separate MX record.
    So, in general, for any set of email addresses @[anything.]domain.com you have a MX record telling remote mail servers where to send that mail.
    Of course the MX record name is mail.N.com, but I think you are implying that the in the Mail settings of Server Admin where it asks for domain name all I need to put there is the N.com, right?
    What I mean is that you need to set the domain name to whatever domain name you expect to receive mail at.
    If you want users to have email addresses in the form of [email protected], then you enter 'N.com'.
    If you want users to have email addresses in the form of [email protected] then you enter 'mail.N.com'.
    If you want both forms, enter one in the main domain and add the other(s) in the Advanced -> Hosting -> Local Host Aliases section.
    Is there anything in the Mail settings that needs to have the full MX record name (mail.N.com)?
    Yes. Either the 'domain name' or the 'Local Host Aliases' needs to contain the same thing as your MX record. That's because the MX record tells remote servers to send mail to this machine, but the machine won't accept the mail unless it is configured to do so.
    What is the "host name" supposed to be?
    This should be the name that remote servers see when this machine tries to send outgoing mail.
    Ideally this should match the reverse DNS of your IP address, that way when it connects to a remote server it says "Hi, I'm $hostname" and the remote server can lookup the machine's IP address and see the same result. This will reduce the problem of remote servers thinking you're sending them spam.
    If you only have a single IP address then this probably needs to be something like 'N.com'. If you don't have control over your reverse DNS then you're going to run into a problem.
    Also in the user accounts (in Workgroup Manager) what should the "mail server name" be? Is it the host name or the domain name?
    Off hand, I don't know.
    Also, why are all the default user email addresses [email protected] (the name I gave the server at setup)? Why doesn't the user accounts create [email protected] as the default address?
    Presumably because the mail server says it is 'server.N.com' and therefore any accounts on that machine would be [email protected]. Changing the domain name (as above) should fix that.

  • Cluster network name resource 'Cluster Name' failed registration of one or more associated DNS name(s) for the following reason: The handle is invalid.

    I'm stuck here trying to figure this error out.  
    2003 domain, 2012 hyper v core 3 nodes.  (I have two of these hyper V groups, hvclust2012 is the problem group, hvclust2008 is okay)
    In Failover Cluster Manager I see these errors, "Cluster network name resource 'Cluster Name' failed registration of one or more associated DNS name(s) for the following reason:  The handle is invalid."
    I restarted the host node that was listed in having the error then another node starts showing the errors.
    I tried to follow this site:  http://blog.subvertallmedia.com/2012/12/06/repairing-a-failover-cluster-in-windows-server-2012-live-migration-fails-dns-cluster-name-errors/
    Then this error shows up when doing the repair:  there was an error repairing the active directory object for 'Cluster Name'
    I looked at our domain controller and noticed I don't have access to local users and groups.  I can access our other hvclust2008 (both clusters are same version 2012).
    <image here>
    I came upon this thread:  http://social.technet.microsoft.com/Forums/en-US/85fc2ad5-b0c0-41f0-900e-df1db8625445/windows-2012-cluster-resource-name-fails-dns-registration-evt-1196?forum=winserverClustering
    Now, I'm stuck on adding a managed service account (mas).  I'm not sure if I'm way off track to fix this.  Any advice?  Thanks in advance!
    <image here>

    Thanks Elton,
    I restarted 3 hosts after applying the hotfix.  Then I did the steps below and got stuck on step 5.  That is when I get the error (image above).  There
    was an error repairing the active directory object for 'Cluster Name'.  For more data, see 'Information Details'.
    To reset the password on the affected name resource, perform the following steps:
    From Failover Cluster Manager, locate the name resource.
    Right-click on the resource, and click Properties.
    On the Policies tab, select If resource fails, do not restart, and then click OK.
    Right-click on the resource, click More Actions, and then click Simulate Failure.
    When the name resource shows "Failed," right-click on the resource, click More Actions, and then click Repair.
    After the name resource is online, right-click on the resource, and then click Properties.
    On the Policies tab, select If resource fails, attempt restart on current node, and then click OK.
    Thanks

  • Jms is not working properly in clustered environment

    Hi all,
    i am using the application server oc4j 10.1.3.1.0 enterprise edition . my application is standalone application(thick client)
    we are using the jndi.properties as follows ...
    java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
    java.naming.provider.url=opmn:ormi://172.16.1.38:6005:group/Security,opmn:ormi://172.16.1.38:6006:deceval_group/Security
    java.naming.security.principal=oc4juser
    java.naming.security.credentials=oc4juser
    oracle.j2ee.rmi.loadBalance=lookup
    we have two application servers in cluster topology as u can see above we have used one instance from one application server and one from another.
    i have seen that for every instance there one jms server. at runtime it is taking one application servers services
    say opmn port 6005 but when the application is connecting to the another application server say opmn 6006
    here jms is not working properly when i send message
    As we have clustered environment message must be propagated all the applications who use above jndi.properties.
    if i keep use only one application server opmn say
    java.naming.provider.url=opmn:ormi://172.16.1.38:6005:group/Security
    then its is working excellently
    please can u provide any solution ASAP
    thanks in advance
    Manu

    Dear Aravindth
      (.*?) means -> Select all contents from where you start and end,
    For Ex. <month>(.*?)</month> then Select for start <month> and end last </month> tag.
    (?) Match zero or one occurrences. Equivalent to {0,1}.
    (*) Match zero or more occurrences. Equivalent to {0,}.
    (+) Match one or more occurrences. Equivalent to {1,}.
    (.) (Dot). Match any character except newline or another Unicode line terminator.
    (.*?) means -> Zero or more times Match any character except newline or another Unicode line terminator + Match zero or more occurrences. Equivalent to {0,}.+Match zero or one occurrences. Equivalent to {0,1}.
    Could you please refere the below cite :
    http://www.javascriptkit.com/jsref/regexp.shtml
    Thanks & Regards
    T.R.Harihara SudhaN

  • Not able to access the application through URL in clustered environment.

    Hi,
    I recently depoyed my application on clustered environment of weblogic 8.1 SP4.
    Now I am able to access the application through the managed server name with port number but not able to access through URL.
    For ex
    http://machine1:7001/test/login.do?m=begin
    this is accessible
    If I use
    http://test.domain.com/test/login.do?m=begin
    Then application is not accessible.
    any HTML or JSP page page is in reach by both the URL.
    Please suggest me what should I do in this regard.
    thanks
    singhV

    Hi Syed,
    I meant to ask are you able to see the application you created in Hyperion Planning Login page,if yes try accessing the created application through Hyperion Planning(Try restarting Planning Services once even if you are able to launch hyperion planning page) url "http://servername:8300/HyperionPlanning and selecting the application you created.
    And also could you please let me know if you are logging in to workspace through admin username ? and also check if you are able to see the application in shared services and try to provision any group on that application.
    (The Assumptions are if application is not created successfully then it will not be available in workspace to launch and if its in maintainance mode (Application Maintenance Mode) in Application Settings and last would be check OHS and Hyperion Planning Services)
    Thanks
    Amith

  • How to keep track of EJBs in case of failover under clustered environment?

    Does anybody know what happens with a stateless session EJB in
    weblogic 5.1 under clustered environment, in case of a failover (if
    one of computers dies), the one, which keeps that ejb in a pool?
    Does that EJB automatically go to the state "does not exist"?
    Is method ejbRemove() then called on that EJB?
    Or is it still in the "method-ready pool" state? Without ejbCreate()
    method being called on this EJB?
    Or does it disappear completely without those methods being called on
    this EJB?
    I need to organize some kind of tracking for those EJBs, and it is
    critically important for me to understand what exactly methods are
    called on those EJBs.
    I saw this, but it does not answer my question:
    Clustered EJB
    All EJBs are clusterable. If an EJB is deployed on multiple servers in
    the cluster, each of these servers will be able to host instances of
    the bean. This does not necessarily mean, however, that the bean
    instances are clustered.
    EJB Homes
    All bean homes are clusterable. When a bean is deployed on a server,
    its home is bound into the cluster-wide naming service. Because homes
    are clusterable, each server can bind an instance of the home under
    the same name. When a client looks up this home, it gets a
    replica-aware stub that has a reference to the home on each server
    that deployed the bean. When create() or find() is called, the
    replica-aware stub routes the call to one of the replicas. The home
    replica that receives the finds or creates an instance of the bean on
    its server.
    Stateless EJBs
    When a home creates a stateless bean, it returns a replica-aware stub
    that can route to any server on which the bean is deployed. Because a
    stateless bean holds no state on behalf of the client, the stub is
    free to route any call to any server that hosts the bean. Also,
    because the bean is clustered, the stub can automatically fail over in
    the event of a failure. The stub does not automatically treat the bean
    as idempotent, so it will not recover automatically from all failures.
    If the bean has been written with idempotent methods, this can be
    noted in the deployment descriptor and automatic fail-over will be
    enabled in all cases.
    Thanks

    Check out Java's support for udo/redo: [http://java.sun.com/javase/6/docs/api/javax/swing/undo/package-summary.html]
    Also, google the "Memento Pattern".
    You don't have to make copies of objects, just maintain commands the can undo and redo your program's state.

  • Instnce name in non-RAC environment

    Hi!
    In non-RAC environment V$INSTANCE.INSTANCE_NAME does not actually displays the name of the instance,that was set in INSTANCE_NAME parameter.
    It always displays DB_NAME instead.
    Is it any way to get instance_name that has service user connected to in this environment?
    LSNRCTL for 32-bit Windows: Version 10.2.0.4.0 - Production on 28-JAN-2010 09:16:25
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vegas)(PORT=1524)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.4.0 - Production
    Start Date 28-JAN-2010 09:15:36
    Uptime 0 days 0 hr. 0 min. 48 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\db\product\10.2.0\network\admin\listener.ora
    Listener Log File D:\oracle\db\product\10.2.0\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vegas)(PORT=1524)))
    Services Summary...
    Service "EMCOR" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "EMCOR_XPT" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "RESXDB" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "SRV1" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "SRV2" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    The command completed successfully
    And SQLPLUS said
    C:\Documents and Settings\oradba>sqlplus
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jan 28 09:44:59 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Enter user-name: emcos@emcor_srv2
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    09:45:04 EMCOS@emcor_srv2 >select name from v$database;
    NAME
    EMCOR
    Elapsed: 00:00:00.00
    09:45:07 EMCOS@emcor_srv2 >select instance_name from v$instance;
    INSTANCE_NAME
    emcor
    Elapsed: 00:00:00.01
    09:45:21 EMCOS@emcor_srv2 >select service_name from v$session where sid=(select unique sid from v$mystat);
    SERVICE_NAME
    SRV2

    Hemant K Chitale wrote:
    The documentation on INSTANCE_NAME in the 10gR2 Reference says :
    "In a single-instance database system, the instance name is usually the same as the database name."
    (this after
    "In a Real Application Clusters environment, multiple instances can be associated with a single database service. Clients can override Oracle's connection load balancing by specifying a particular instance by which to connect to the database. INSTANCE_NAME specifies the unique name of this instance.")
    This would imply that setting INSTANCE_NAME in non-RAC is ignored. The usage of the word "usually" is weak.
    Hemant K ChitaleBut what do says lsnrctl - it says that it is not weak
    11:33:28 SYS@EMCOR_SRV1 >show parameter instance_name
    NAME TYPE VALUE
    instance_name                        string      INST0
    11:33:36 SYS@EMCOR_SRV1 >host lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.4.0 - Production on 28-JAN-2010 11:33:50
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vegas)(PORT=1524)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.4.0 - Production
    Start Date 28-JAN-2010 09:15:36
    Uptime 0 days 2 hr. 18 min. 14 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\db\product\10.2.0\network\admin\listener.ora
    Listener Log File D:\oracle\db\product\10.2.0\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vegas)(PORT=1524)))
    Services Summary...
    Service "EMCOR" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "EMCOR_XPT" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "RESXDB" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "SRV1" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "SRV2" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    The command completed successfully
    11:33:50 SYS@EMCOR_SRV1 >select sys_context('USERENV','INSTANCE_NAME') from dual;
    SYS_CONTEXT('USERENV','INSTANCE_NAME')
    emcor
    Elapsed: 00:00:00.00
    11:34:42 SYS@EMCOR_SRV1 >select service_name from v$session where sid=sys_context('USERENV','SID');
    SERVICE_NAME
    SRV1
    Best regards, Sergey

  • Updating DNS Names

    Hi Everyone - first post, so please bear with me whilst I learn the ettiquette here
    I administer a classroom of about 30 macs (mainly G4 eMacs with about 10 power macs) for a postgraduate newspaper journalism class. We recently (last summer) decided to try to implement a more comprehensive management/imaging scheme for them, and bought apple remote desktop and a copy of Tiger Server.
    The problem I'm currently having is updating the DNS name information in the Apple Remote Desktop application (server side). I've had all of the dns records for the machines updated to something human readable so that dns information can be used as part of an automatic renaming process on newly imaged machines. But ARD still displays the old names.
    I've tried refreshing the dns cache on the server on which they're stored, as well as removing machines and re-adding them by IP address. Reverse DNS lookups (which is the method apple says ARD uses to set the DNS name when computers are added) work in any other context. But ARD still remembers the old, out of date DNS information.
    Does anyone have any pointers as to what's going on? Where is this information cached, and how can it be updated?
    Thanks in advance!

    Hi Brian, thanks for replying.
    I didn't enter the dns details for the machines in the first place. I can edit the dns names manually, but that isn't the point. The ARD manual does state fairly clearly that the DNS names are set when the machine is added using reverse-dns lookup. This should ensure that the DNS name setting is correct, and should safeguard against typos etc.
    Of course, even if I were to re-type each DNS address manually (possible for 30 odd machines, I suppose, though it wouldn't be if this were 300 odd), I'd have to do a reverse dns address for each computer address ANYway.
    I suppose I could bypass the problem by writing a hybrid applescript/bash script that looked up the dns address for a given IP address and changed the dns name through ARD... but I'd prefer it if there was a way to force ARD itself to re-lookup the information so that it was correct.

Maybe you are looking for