JNDI Lookup for multiple server instances with multiple cluster nodes

Hi Experts,
I need help with retreiving log files for multiple server instances with multiple cluster nodes. The system is Netweaver 7.01.
There are 3 server instances all instances with 3 cluster nodes.
There are EJB session beans deployed on them to retreive the log information for each server node.
In the session bean there is a method:
public List getServers() {
  List servers = new ArrayList();
  ClassLoader saveLoader = Thread.currentThread().getContextClassLoader();
  try {
   Properties prop = new Properties();
   prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
   prop.put(Context.SECURITY_AUTHENTICATION, "none");
   Thread.currentThread().setContextClassLoader((com.sap.engine.services.adminadapter.interfaces.RemoteAdminInterface.class).getClassLoader());
   InitialContext mInitialContext = new InitialContext(prop);
   RemoteAdminInterface rai = (RemoteAdminInterface) mInitialContext.lookup("adminadapter");
   ClusterAdministrator cadm = rai.getClusterAdministrator();
   ConvenienceEngineAdministrator cea = rai.getConvenienceEngineAdministrator();
   int nodeId[] = cea.getClusterNodeIds();
   int dispatcherId = 0;
   String dispatcherIP = null;
   String p4Port = null;
   for (int i = 0; i < nodeId.length; i++) {
    if (cea.getClusterNodeType(nodeId[i]) != 1)
     continue;
    Properties dispatcherProp = cadm.getNodeInfo(nodeId[i]);
    dispatcherIP = dispatcherProp.getProperty("Host", "localhost");
    p4Port = cea.getServiceProperty(nodeId[i], "p4", "port");
    String[] loc = new String[3];
    loc[0] = dispatcherIP;
    loc[1] = p4Port;
    loc[2] = null;
    servers.add(loc);
   mInitialContext.close();
  } catch (NamingException e) {
  } catch (RemoteException e) {
  } finally {
   Thread.currentThread().setContextClassLoader(saveLoader);
  return servers;
and the retreived server information used here in another class:
public void run() {
  ReadLogsSession readLogsSession;
  int total = servers.size();
  for (Iterator iter = servers.iterator(); iter.hasNext();) {
   if (keepAlive) {
    try {
     Thread.sleep(500);
    } catch (InterruptedException e) {
     status = status + e.getMessage();
     System.err.println("LogReader Thread Exception" + e.toString());
     e.printStackTrace();
    String[] serverLocs = (String[]) iter.next();
    searchFilter.setDetails("[" + serverLocs[1] + "]");
    Properties prop = new Properties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
    prop.put(Context.PROVIDER_URL, serverLocs[0] + ":" + serverLocs[1]);
    System.err.println("LogReader run [" + serverLocs[0] + ":" + serverLocs[1] + "]");
    status = " Reading :[" + serverLocs[0] + ":" + serverLocs[1] + "] servers :[" + currentIndex + "/" + total + " ] ";
    prop.put("force_remote", "true");
    prop.put(Context.SECURITY_AUTHENTICATION, "none");
    try {
     Context ctx = new InitialContext(prop);
     Object ob = ctx.lookup("com.xom.sia.ReadLogsSession");
     ReadLogsSessionHome readLogsSessionHome = (ReadLogsSessionHome) PortableRemoteObject.narrow(ob, ReadLogsSessionHome.class);
     status = status + "Found ReadLogsSessionHome ["+readLogsSessionHome+"]";
     readLogsSession = readLogsSessionHome.create();
     if(readLogsSession!=null){
      status = status + " Created  ["+readLogsSession+"]";
      List l = readLogsSession.getAuditLogs(searchFilter);
      serverLocs[2] = String.valueOf(l.size());
      status = status + serverLocs[2];
      allRecords.addAll(l);
     }else{
      status = status + " unable to create  readLogsSession ";
     ctx.close();
    } catch (NamingException e) {
     status = status + e.getMessage();
     System.err.println(e.getMessage());
     e.printStackTrace();
    } catch (CreateException e) {
     status = status + e.getMessage();
     System.err.println(e.getMessage());
     e.printStackTrace();
    } catch (IOException e) {
     status = status + e.getMessage();
     System.err.println(e.getMessage());
     e.printStackTrace();
    } catch (Exception e) {
     status = status + e.getMessage();
     System.err.println(e.getMessage());
     e.printStackTrace();
   currentIndex++;
  jobComplete = true;
The application is working for multiple server instances with a single cluster node but not working for multiple cusltered environment.
Anybody knows what should be changed to handle more cluster nodes?
Thanks,
Gergely

Thanks for the response.
I was afraid that it would be something like that although
was hoping for
something closer to the application pools we use with IIS to
isolate sites
and limit the impact one badly behaving one can have on
another.
mmr
"Ian Skinner" <[email protected]> wrote in message
news:fe5u5v$pue$[email protected]..
> Run CF with one instance. Look at your processes and see
how much memory
> the "JRun" process is using, multiply this by number of
other CF
> instances.
>
> You are most likely going to end up on implementing a
"handful" of
> instances versus "dozens" of instance on all but the
beefiest of servers.
>
> This can be affected by how much memory each instance
uses. An
> application that puts major amounts of data into
persistent scopes such as
> application and|or session will have a larger foot print
then a leaner
> application that does not put much data into memory
and|or leave it there
> for a very long time.
>
> I know the first time we made use of CF in it's
multi-home flavor, we went
> a bit overboard and created way too many. After nearly
bringing a
> moderate server to its knees, we consolidated until we
had three or four
> or so IIRC. A couple dedicated to to each of our largest
and most
> critical applications and a couple general instances
that ran many smaller
> applications each.
>
>
>
>
>

Similar Messages

  • EJB call across server instance with multiple Datasource

    Hi,
              I posted in the EJB group and was told people here will be able to help.
              I'm currently facing a serious integration problem. The problem occurs when an EJB in my application (my instance) tries to call another EJB in a separate application (in another instance). Hope someone can help me to overcome this.
              My setup is WLS 8.1 SP2 (1 domain, 2 instances) with Oracle 9i.
              The scenario is as follows:
              EJB A (tx required) in instance A calls EJB B (tx required) in instance B.
              EJB A uses datasource A in instance A to update database A and EJB B uses datasource B in instance B to update database B.
              When I tried with both datasources using non-XA driver and both using XA driver the result is the same, EJB A executes fine and can successfully invoke the method on EJB B. But when EJB B tries to lookup the datasource B, it goes to instance A to do that and of course fails to find it.
              It only works when I create and deploy datasource B (XA) to instance A as well, meaning I now have datasources A and B in instance A.
              It all works well when I use a servlet(e.g.) in instance A to call EJB B. Leading me to suspect that the error could be due to some problems or behaviour which I may have missed out during the propagation of the transaction or the EJB context.
              This behaviour seems very illogical, can someone please enlighten me. Any help will be very much appreciated.
              Thanks,
              Kelvin

    You might try asking this over in the transaction group:
    http://forums.bea.com/bea/forum.jspa?forumID=2052
    -thorick

  • JNDI lookup() for sql server jdbc datasource returns null

    Hi,
    I am trying to use a jdbc datasource in tomcat 5 to access a sql server 2000 database. I had many common problems and did found an answer to them in the forums but I'm having one last (I hope) problem. My program is also using a mySQL datasource and it works fine.
    The problem is that my lookup returns null. No exception, just null. It seems that many people had this problem but I didn't found any answer to it.
    This is the lookup code:
        Context ctx = new InitialContext();
        Context envCtx = (Context)ctx.lookup("java:comp/env");
        axaptaDS = (DataSource) envCtx.lookup("jdbc/axapta"); //returns null :(This my context.xml config:
    <ResourceParams name="jdbc/axapta">
        <parameter>
          <name>factory</name>
          <value>com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory</value>
        </parameter>
        <parameter>
          <name>url</name>
          <value>jdbc:microsoft:sqlserver://hostname:1433</value>
        </parameter>
        <parameter>
          <name>password</name>
          <value>password</value>
        </parameter>
        <parameter>
          <name>maxActive</name>
          <value>4</value>
        </parameter>
        <parameter>
          <name>maxWait</name>
          <value>5000</value>
        </parameter>
        <parameter>
          <name>driverClassName</name>
          <value>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</value>
        </parameter>
        <parameter>
          <name>username</name>
          <value>username</value>
        </parameter>
        <parameter>
          <name>maxIdle</name>
          <value>2</value>
        </parameter>
      </ResourceParams>And I also put these lines in my web.xml file:
    <resource-ref id="ResourceRef_1092254277306">
         <res-ref-name>jdbc/axapta</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
         <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>Thanks for helping!

    I finally found a remedy to this problem:
    specify this driver instead and remove the entry about the factory in the context's .xml file:
    com.microsoft.jdbc.sqlserver.SQLServerDriver

  • Pros and Cons of Application Isolation/Multiple server instances?

    Hi. I'm setting a new server using ColdFusion Enterprise with Apache to migrate several web application from and old server with ColdFusion 7 server. I'm currently doing research regarding multiple server instances in order to have a separate server for production apps and another for development apps (see http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf363c31-7ff 5.html and https://wikidocs.adobe.com/wiki/display/coldfusionen/Using+Multiple+Server+Instanceshttp:/ /). In addition, I'm also doing research regarding application isolation to have separate production application in separate servers. I'm trying to identify all pros and cons for both "Application Isolation" and "Multiple Server Instances" to make a decision on whether I will proceed in applying these techniques. I have found several links that talk about some of the advantages but have not been able to find anything regarding possible disadvantages. Have anyone in this forum has used any of the techniques, and can provide more information/experiences regarding the pros and cons?

    Hi Ricardo_Lorenzo,
    Whether to go for Multiserver instances or Single server, is totally a user requirement based decison. If a user has Single website, or multiple websites (of the same nature, in terms of functionality), usually the part of same domain, then they would go for Single sever installation. One single instance will handle the requests from all the websites (if there are multiple). There would not be a clustering/failover setup within ColdFusion and can use the ColdFusion Standard or Enterprise version.
    On the other hand, if a user has multiple websites, all with different functionality and have multiple applications (may or may not) running, then they can go for Multiserver installation. Each website can be configured with individual instances. Clustering can be done within ColdFusion if needed. One would need an Enterprise license of ColdFusion for the same.
    Hope this helps.
    Regards,
    Anit Kumar

  • Running Multiple Server Instance in Weblogic Server

    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my application server
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't find any
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool for connectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is there some
    other way to do it.
    Thanks in advance
    Niranjan

    There is an answer on your first question at
    weblogic.support.interest.clustering
    I asked a similar question. Search for a message posted by me on 24/11/00
    Rgds,
    Mike
    "Niranjan Soni" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my applicationserver
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't findany
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool forconnectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is theresome
    other way to do it.
    Thanks in advance
    Niranjan

  • Re: WLS51 multiple server instances - no clustering, no multihoming

    Hello - This is the answer to a private question, but I'm posting it to the
    group too in hope it will help.
    Our problem was, we had one computer (Solaris) with one IP address and one
    Weblogic license, but we had two (now three) teams of developers working on
    different projects for WLS. Since they needed different settings and
    configurations, they could not use a single Weblogic server instance, so we
    had to find a way to run multiple server instances independently on a single
    machine.
    I'd call this configuration "parallel-servers" - please remember that it is
    quite different from both multihoming and clustering because all the server
    instances are independent from one another (unlike clustering) but run on
    the same IP (unlike multihoming) and different port numbers.
    This is the simplest procedure for a Solaris computer:
    1: Install WebLogic.
    Let's say the WL installation folder is:
    /wls/weblogic/
    we'll call that:
    WL_HOME/WLS_HOME/
    It contains the default server instance folder
    /wls/weblogic/myserver/
    we'll call that:
    WL_HOME/WLS_HOME/myserver/
    2: Make some copies (as many as you need)
    of the default server instance folder
    with different names, you'll have:
    WL_HOME/WLS_HOME/myserver/
    WL_HOME/WLS_HOME/server_1/
    WL_HOME/WLS_HOME/server_2/
    WL_HOME/WLS_HOME/server_n/
    3: Locate the general properties file
    /wls/weblogic/weblogic.properties
    (we'll call it: WL_HOME/WLS_HOME/weblogic.properties)
    and make a copy of it into EACH of the individual
    server instance folders; you'll end up with:
    WL_HOME/WLS_HOME/weblogic.properties
    WL_HOME/WLS_HOME/myserver/weblogic.properties
    WL_HOME/WLS_HOME/server_1/weblogic.properties
    WL_HOME/WLS_HOME/server_2/weblogic.properties
    WL_HOME/WLS_HOME/server_n/weblogic.properties
    4: In EACH server instance's properties file
    WL_HOME/WLS_HOME/server_i/weblogic.properties
    set per-server values to all the properties
    specific to the individual server; at least:
    weblogic.system.listenPort=PORT_i
    weblogic.password.system=PWD_i
    weblogic.system.SSLListenPort=SSLPORT_i
    plus everything else it should need individually,
    that is, all the things that make that single
    server instance different from all the others
    (connection pools, ACLs, EJB auto deployments and so on)
    Do NOT modify the file
    WL_HOME/WLS_HOME/myserver/weblogic.properties
    (it's a backup copy of the default settings)
    5: In the GLOBAL properties file
    WL_HOME/WLS_HOME/weblogic.properties
    cancel or comment out all the properties
    that have been individually set for all
    the individual server instances; at least:
    weblogic.system.listenPort
    weblogic.password.system
    weblogic.system.SSLListenPort
    6: Locate the default server's startup script
    /wls/weblogic/startWebLogic.sh
    (we'll call it: WL_HOME/WLS_HOME/startWebLogic.sh)
    and make a copy of it (in the same folder)
    for EACH of the new individual server instances;
    you'll end up with:
    WL_HOME/WLS_HOME/startWebLogic.sh
    WL_HOME/WLS_HOME/startServer_1.sh
    WL_HOME/WLS_HOME/startServer_2.sh
    WL_HOME/WLS_HOME/startServer_n.sh
    7: In EACH server instance's startup script
    WL_HOME/WLS_HOME/startServer_i.sh
    set values to the properties:
    weblogic.home=WL_HOME/WLS_HOME
    (where WL libraries and global files are)
    weblogic.system.home=WL_HOME/WLS_HOME
    (where the GLOBAL weblogic.properties is)
    weblogic.system.name=server_i
    (where the PER-SERVER weblogic.properties is)
    weblogic.system.listenPort=PORT_i
    weblogic.system.SSLListenPort=SSLPORT_i
    with the -D option, as in:
    $JAVA $JAVA_OPTIONS -ms64m -mx64m -classpath
    $JAVACLASSPATH -Dweblogic.class.path=$WEBLOGICCLASSPATH -Dweblogic.home=$WL_
    HOME/$WLS_HOME -Dweblogic.system.home=$WL_HOME/$WLS_HOME -Dweblogic.system.n
    ame=server_i -Djava.security.manager -Djava.security.policy=`pwd`/weblogic.
    policy -Dweblogic.system.listenPort=PORT_i -Dweblogic.system.SSLListenPort=
    SSLPORT_i weblogic.Server
    8: If you like, you might also write a shutdown script
    for each server instance (often faster than the console)
    WL_HOME/WLS_HOME/stopServer_i.sh
    which might look like:
    java -classpath $JAVACLASSPATH weblogic.Admin t3://$HOSTNAME:PORT_i SHUTDOWN
    system $PWD_i
    9: If you need individual per-server security policies,
    also duplicate and customize the default policy file
    WL_HOME/WLS_HOME/weblogic.policy
    (just like you did with weblogic.properties in steps 3 to 5)
    and specify the corresponding property in each startup script
    with the -D option
    -Djava.security.policy=`pwd`/server_i/weblogic.policy
    10: Obviously, when you deploy and use your EJBs or JSPs or applications,
    you must make sure that you specify the right individual server's parameters
    (name, user, password, port, paths and everything else).
    And that's all; obviously, there are better ways to achieve the
    "parallel-servers" configuration, but this is the simplest one and is good
    enough for a basic development environment; you might need to tune some more
    properties to suit your specific requirements.
    On a WinNT computer, the procedure should be more or less the same, the main
    difference being: instead of .sh script files, you'll have to edit .cmd
    script files.
    I am very grateful to all the people on the newsgroups who helped me work
    that out. Good luck!
    Paola R.

    "Paola R." wrote:
              > If understand that right, the way to do it is:
              >
              > - make two "clones" of the default /weblogic/myserver/ folder , say
              > /weblogic/server_1/ and /weblogic/server_2/;
              > - make a copy of file /weblogic/myserver/weblogic.properties into each new
              > folder;
              > - in the original /weblogic/myserver/weblogic.properties file, comment out
              > server-variant properties (ordinary and secure port numbers, at least) ;
              > - in each /weblogic/server_x /weblogic.properties file, set per-server
              > values to server-variant properties (ordinary and secure port numbers, at
              > least) and comment out (or leave unchanged) everything else;
              > - start each server from /weblogic/myserver/ , by specifying the path to
              > respective per-server properties in command line (or script) with
              > option -Dweblogic.home=./server_n .
              You also need weblogic.system.name=server_n and I believe it's
              weblogic.system.home rather than weblogic.home. The latter should point
              to
              your /weblogic directory.
              Hope this helps.
              Alexander Petrushko
              mailto:[email protected]
              Consulting Services available
              

  • How to configure single web server instance to multiple application servers..

    Hi all,
    we are running single instance of IWS6.0 SP2 on solaris, we want to comfigure this single instance to multiple application servers(JRun). Can any one advise me whether it is possible to do.
    Thanks
    Raj

    Hi Raj,
    "how to configure single web server instance to multiple application servers.."
    It's not possible for setting up multiple applicataion servers for Single iWS instance.
    Thanks,
    Dakshin.

  • Create multiple portal instances with only one database?

    Can someone create multiple portal instances with only one database?
    If so, how is this done, just by running the portal configuration wizard?
    How are most people running with multiple developers working on portal? Do they share a portal instance, or create their own?
    Thank you very much!
    Phillip

    i'm currently using 9ias rel 2(9.0.2) and i have install one infrastructure and two mid tier, hoping that this will create two portal, but it didn't. Can you please tell me how to do create two portal within one server.
    thanks and regards;
    andrew

  • Multiple XI instances or multiple app server

    In a year or so we will be moving into an area where will be getting several feeds from several countries in Asia and South America. We now get feeds from EU and US.
    The question most people are asking is whether we need multiple XI instances or multiple app servers. So there will nbe a need for 24/7 XI traffic which we already have now. What works best to support several time zones, backups, maintenances.
    Would like to know how others are handling this in similar environment.
    Thanks!

    Hi pam,
    > How would multiple app server help...meaning what's the most beneficial part of having multiple app server in such as scenario.
    A good Question, benefit  is lot, In simple  words  Load balance.. Performance  in Transfering the messages  will be quick, System resource  is maintained and you can assign particular adapters  for particular interfaces..alone... if you have Multiple App servers....
    Regards
    Agasthuri Doss

  • [Non IE Regression] Support for full screen mode with multiple monitors

    This seems to be a regression with Flash Player v11.2.202.x (for all other browsers).
    With Internet Explorer it is still working.
    http://kb2.adobe.com/cps/890/cpsid_89050.html
    == Support for full screen mode with multiple monitors ==
    Full screen content will remain in full-screen on secondary monitors, allowing users to watch full-screen content while working on another display.
    Tested on Windows 7 x64 SP1 with:
    - Internet Explorer 9
    - Firefox Release, Beta, Aurora, Nightly
    - Opera 12 build 1116
    In bugbase.adobe.com I cannot choose v11.2.x

    Please vote for it If you have the same problem:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3016912
    Thanks

  • Multiple server instances

    I have created an instance of the server and deployed a .ear with two different names one on each instance. The deployment happened successfully. But when I try to invoke web service deployed on the second instance of the server it could not do it.But the WSDL on both of the ports is visible. I am using the trial version of weblogic server 8.1 SP4. Is it restriction of the trial version? or I am doing something wrong
    Please help me resolving the issue.
    Thanks,
    Nitin

    Hi Nitin,
    Same thing I did at my side.It worked fine without any problems.However it is a trial version, we can deploy same application in two server instances with different name and we can access.
    I think,you are doing something wrong at your side to access webservice.
    ----Anilkumar kari
    ----Anilkumar kari

  • Multiple ASM instances on a single node

    Can i have multiple ASM instances on a single node? This is to have each instance supporting different environment dev,stage etc
    Thanks
    Sannidhi

    I had been discussing the same issue with someone from Oracle. I asked for multiple ASMs on a server so that we could have seperate ASMs running for, say, 10g and 11g.
    He explained that we should think of ASM as being the same as Veritas FileSystem. We don't run multiple instances of Veritas on our servers. On single Veritas "instance" (set of drivers) provides all the Veritas Fx mountpoints on the server. Similarly, there should be only 1 ASM instance on a server.
    (substitute UFS or ZFS or CFS for Veritas in the above example and you still have only 1 filesystem manager on a server providing one type of filesystem, although you could have, say , UFS and Veritas co-exist ; just as you could have Veritas, ASM and Raw co-exist on a server).
    Hemant K Chitale
    Edited by: Hemant K Chitale on Sep 29, 2009 11:50 AM

  • JNDI lookup for UserTransaction

              Hi all,
              in Weblogic, in a typical scenario, do a client provide exactly
              one JNDI lookup for the UserTransaction object (interface) or do
              the client have to provide a JNDI lookup for each transaction?
              In some EJB implementations, a JNDI lookup for UserTransaction
              returns always the same reference. For example, in JOnAS, you can
              have one static reference which is set when the client starts.
              Then, more threads can simultaneously use the same static
              UserTransaction reference without any conflict, since the
              implementation of UserTransaction recognizes, which thread invoked
              a particular method.
              In other words, can I make an assumption that two different JNDI
              lookups for UserTransaction returns different references or not?
              Thanks a lot,
              Marek Prochazka
              Distributed Systems Research Group
              Department of Software Engineering
              Charles University, Faculty of Mathematics and Physics
              Malostranske namesti 25, 118 00 Prague 1, Czech Republic
              phone: +420-2-2191 4236
              http://nenya.ms.mff.cuni.cz/thegroup/
              

    Actually, UserTransaction is a singleton and it's not a transaction. It's just
              very mis-named.
              It should be called UserTransactionManager or UserInterfaceToJTA.
              The actual transaction is javax.transaction.Transaction.
              -- Rob
              Cameron Purdy wrote:
              > Within a transaction, it is different instances? For example, if you call
              > it two times one right after another?
              >
              > A transaction is a unit of work. I understand why the transaction object
              > changes from transaction to transaction, since a single transaction object
              > (UserTransaction) represents exactly one transaction. Why would it be a
              > singleton? It is not a transaction manager.
              >
              > Peace,
              >
              > --
              > Cameron Purdy
              > Tangosol, Inc.
              > http://www.tangosol.com
              > +1.617.623.5782
              > WebLogic Consulting Available
              >
              > "Sarita" <[email protected]> wrote in message
              > news:[email protected]...
              > >
              > > Hi Priscilla--
              > >
              > > This is not the behavior that I'm seeing, and I'm perplexed.
              > > Every time I request a UserTransaction from JNDI, I receive a
              > > a different instance. Should the value immediately returned by JNDI be
              > the singleton
              > > instance? If not, then how do I retrieve the singleton instance?
              > >
              > > I would like a session bean to start a transaction, and then call a method
              > on another
              > > session bean (which should operate under the same transaction). How does
              > the second
              > > session bean grab the correct transaction object? Is that possible?
              > >
              > > Thanks In Advance,
              > > Sarita
              > >
              > > "Priscilla Fung" <[email protected]> wrote:
              > > >
              > > >Hi Marek,
              > > >
              > > >In Weblogic 6.0, JNDI lookup of UserTransaction returns a reference to
              > the
              > > >singleton
              > > >Transaction Manager instance, which is thread-safe and can be used from
              > > >multiple
              > > >threads for transaction demarcations etc.
              > > >
              > > >-- Priscilla Fung, BEA Systems, Inc.
              > > >
              > > >"Marek Prochazka" <[email protected]> wrote:
              > > >>
              > > >>Hi all,
              > > >>
              > > >>in Weblogic, in a typical scenario, do a client provide exactly
              > > >>one JNDI lookup for the UserTransaction object (interface) or do
              > > >>the client have to provide a JNDI lookup for each transaction?
              > > >>
              > > >>In some EJB implementations, a JNDI lookup for UserTransaction
              > > >>returns always the same reference. For example, in JOnAS, you can
              > > >>have one static reference which is set when the client starts.
              > > >>Then, more threads can simultaneously use the same static
              > > >>UserTransaction reference without any conflict, since the
              > > >>implementation of UserTransaction recognizes, which thread invoked
              > > >>a particular method.
              > > >>
              > > >>In other words, can I make an assumption that two different JNDI
              > > >>lookups for UserTransaction returns different references or not?
              > > >>
              > > >>Thanks a lot,
              > > >>Marek Prochazka
              > > >>--------------------------------------------------------------
              > > >> Distributed Systems Research Group
              > > >> Department of Software Engineering
              > > >> Charles University, Faculty of Mathematics and Physics
              > > >> Malostranske namesti 25, 118 00 Prague 1, Czech Republic
              > > >> phone: +420-2-2191 4236
              > > >> http://nenya.ms.mff.cuni.cz/thegroup/
              > > >>--------------------------------------------------------------
              > > >>
              > > >
              > >
              

  • Chang system userid/password for another server instance

    It it possible to change the system userid/password for another server
    instance. If so , how ?
    I would like to allow certain groups to be able to start and stop ONLY their
    server without giving out the system account.
    Thanks in advance!

    the relationship between the infrastructure nodes and the application server nodes is a one to many relationship. The infrastructure home should be the only home that the EMWebsite service has been started for.
    the user to log in to em console is ias_admin/<password> if it does not accept the password that you set for this user then try it with caps lock on as you may have had it one when setting the password.
    As 9ias release 2 has been designed with a multiple machine install in mind, if you install more than one instance (multiple oracle homes) on the server then you will end up with multiple apache processes and oc4j processes. This means you will be able to connect to 2 apache server homepages under different ports. That is why you get the same page.

  • JNDI lookup for weblogic.management.MBeanHome

    Tried to do JNDI lookup for MBeanHome. It could resolve
    weblogic.management, but not MBeanHome.
    Any idea? Thank you
    T. Pei
    PS
    The statement and the error message:
    MBeanHome mBeanHome = (MBeanHome) initialContext.lookup
    ("weblogic.management.MBeanHome.JNDI_NAME.MyServer");
    javax.naming.NameNotFoundException:
    Unable to resolve weblogic.management.MBeanHome.JNDI_NAME.MyServer
    Resolved: 'weblogic.management'
    Unresolved:'MBeanHome' ; remaining name 'JNDI_NAME.MyServer'

    I answered this in my last post, but to clarify your attempt below.
    you can access MBeanHome through JNDI in any of three ways that I
    currently know...
    MBeanHome mBeanHome =
    (MBeanHome)ctx.lookup("weblogic.management.adminhome");
    MBeanHome mBeanHome =
    (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    MBeanHome mBeanHome =
    (MBeanHome)ctx.lookup(MBeanHome.JNDI_NAME+"."+yourservername);
    typically yourservername = "myserver"
    when I print MBeanHome.ADMIN_JNDI_NAME I get
    "weblogic.management.adminhome"
    when I print MBeanHome.JNDI_NAME I get
    "weblogic.management.home"
    so using MBeanHome.JNDI_NAME+"."+yourservername is the same as
    "weblogic.management.home.myserver", if the server you are trying to access
    is called myserver.
    may be more information than you want.
    "T. Pei" <[email protected]> wrote in message
    news:3a7a1562$[email protected]..
    >
    Tried to do JNDI lookup for MBeanHome. It could resolve
    weblogic.management, but not MBeanHome.
    Any idea? Thank you
    T. Pei
    PS
    The statement and the error message:
    MBeanHome mBeanHome = (MBeanHome) initialContext.lookup
    ("weblogic.management.MBeanHome.JNDI_NAME.MyServer");
    javax.naming.NameNotFoundException:
    Unable to resolve weblogic.management.MBeanHome.JNDI_NAME.MyServer
    Resolved: 'weblogic.management'
    Unresolved:'MBeanHome' ; remaining name 'JNDI_NAME.MyServer'

Maybe you are looking for

  • I have an older version of Photoshop...3.5... I bought a new computer and it will not load. Can I get another of the same version? or do I have to buy a new one?

    I have an older version of Photoshop...3.5.  I bought a new computer and what I have will not load. I love this version. Can I get a new cd that will load into Windows 7? or do I have to buy a complete new program?

  • Snippely and ActionScript 3.0

    Hi everyone! Yesterday, looking for a way to archive the codes I've been using, I found this little and nice program called Snippely. http://code.google.com/p/snippely/ It's a good solution to store "snippets", small chunks of code and even notes. Th

  • Clock in/out correction screen issue-ESS-urgent

    Hi Experts, We have standard Clock in/out correction screen. In the calender Work schedule is being shown ie. on weekly Off, Off is coming but public holidays are not visible like 15 Aug, this has been defined as Public holiday. So on this day Indepe

  • Error in application server

    Hi all, I have a iAS6.0 sp3 installed in a Sun Solaris Server (3500). My iAS is works fine, but when I execute a application occurs this: The iPlanet Application Server at (172.16.1.3, 10818) is not available. Check if iAS has been started The kjs,kx

  • MySQL date fomat with PHP

    I have a problem with format date stored in mySql db ( in the fied named 'dt_news') as dd-mm-yyyy. Now when I view my php page where I show all the records, I have the following type yyyy/mm/dd. Please help me to modify the attached code an have that