Setting AutoCommit to True for XA Drivers

In jrockit81sp2_141_05, the default setting was changed to AutoCommit is false
for all XA Drivers. Was wondering how to change it back to true.
In the properties section of JDBC connection configuration I added
autocommit=true
But that didn't do anything. Any ideas? Thanks. Later...
- Wayne

I think you posted this to the wrong newsgroup. There are no XA Drivers
in JRockit - it is just a JVM. Try one of the WLS newsgroups instead.
Thanks,
/Staffan
Wayne Lau wrote:
In jrockit81sp2_141_05, the default setting was changed to AutoCommit is false
for all XA Drivers. Was wondering how to change it back to true.
In the properties section of JDBC connection configuration I added
autocommit=true
But that didn't do anything. Any ideas? Thanks. Later...
- Wayne

Similar Messages

  • Getting AutoCommit as true for a connection during a JTS transaction

    We have a situation where connections being retrieved from a JDBC connection pool through a JDBCTxDataSource are having their autoCommit flag set to true (which should never happen) though it is in a Disributed transaction . We have confirmed that it is a JTS connection and not a pool connection. The environment details are below
              Appserver : Weblogic version 8.1 sp5
              Database : Oracle 9i database.
              Driver : ojdbc14.jar
              We have a weblogic cluster wit two instances. The JDBC configuration for the 2 instances are below
              Primary :
              <JDBCConnectionPool
                   CapacityIncrement="5"
              ConnectionCreationRetryFrequencySeconds="240"
              CountOfRefreshFailuresTillDisable="1"
              CountOfTestFailuresTillFlush="1"
              DriverName="oracle.jdbc.driver.OracleDriver"
              InitialCapacity="75"
                   LoginDelaySeconds="1"
                   MaxCapacity="75"
              Name="xxxPool"
                   PasswordEncrypted="{3DES}PvyCca0PtiM="
              PreparedStatementCacheSize="0"
              Properties="user=xxxsm;dll=ocijdbc8;protocol=thin"
              RefreshMinutes="50"
                   ShrinkPeriodMinutes="15"
              ShrinkingEnabled="false"
                   Targets="PR_CLUSTER"
              TestConnectionsOnRelease="true"
                   TestConnectionsOnReserve="true"
              TestTableName="dual"
                   URL="jdbc:oracle:thin:@xxxxxx:1521:yyyyyy"/>
              <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="jdbc.xxxDB"
              Name="xxxDB" PoolName="xxxPool" Targets="PR_CLUSTER"/>
              Secondary:
              <JDBCConnectionPool
              CapacityIncrement="5"
              DriverName="oracle.jdbc.driver.OracleDriver"
              InitialCapacity="50"
              LoginDelaySeconds="1"
              MaxCapacity="50"
              Name="xxxPool"
              PreparedStatementCacheSize="0"
              Properties="user=xxxsm;dll=ocijdbc8;protocol=thin"
              RefreshMinutes="59"
              ShrinkPeriodMinutes="15"
              ShrinkingEnabled="false"
              Targets="PR_CLUSTER"
              TestConnectionsOnRelease="true"
              TestConnectionsOnReserve="true"
              CountOfTestFailuresTillFlush="1"
              CountOfRefreshFailuresTillDisable="1"
              ConnectionCreationRetryFrequencySeconds="240"
              TestTableName="dual"
              Password="sbkbl05"
              URL="jdbc:oracle:thin:@xxxxx:1521:yyyyyy"/>
              <JDBCTxDataSource EnableTwoPhaseCommit="true"
              JNDIName="jdbc.xxxDB" Name="xxxDB" PoolName="xxxPool" Targets="PR_CLUSTER"/>
              Has someone encountered this situation before? Does any configuration condition lead to this situation?
              Thanks in advance for your help

    Pramod C S wrote:
              > We have a situation where connections being retrieved from a JDBC connection pool through a JDBCTxDataSource are having their autoCommit flag set to true (which should never happen) though it is in a Disributed transaction . We have confirmed that it is a JTS connection and not a pool connection. The environment details are below
              > Appserver : Weblogic version 8.1 sp5
              Hi. Is the recipient of the autoCommit(true) connection hand-written code?
              A TxDataSource to a non-XA pool will deliver an autoCommit(true) connection
              iff the connection request is made outside (even if just before) a WLS-managed
              global tx has started.
              Joe
              > Database : Oracle 9i database.
              > Driver : ojdbc14.jar
              > We have a weblogic cluster wit two instances. The JDBC configuration for the 2 instances are below
              > Primary :
              > <JDBCConnectionPool
              >      CapacityIncrement="5"
              > ConnectionCreationRetryFrequencySeconds="240"
              > CountOfRefreshFailuresTillDisable="1"
              > CountOfTestFailuresTillFlush="1"
              > DriverName="oracle.jdbc.driver.OracleDriver"
              > InitialCapacity="75"
              >      LoginDelaySeconds="1"
              >      MaxCapacity="75"
              > Name="xxxPool"
              >      PasswordEncrypted="{3DES}PvyCca0PtiM="
              > PreparedStatementCacheSize="0"
              > Properties="user=xxxsm;dll=ocijdbc8;protocol=thin"
              > RefreshMinutes="50"
              >      ShrinkPeriodMinutes="15"
              > ShrinkingEnabled="false"
              >      Targets="PR_CLUSTER"
              > TestConnectionsOnRelease="true"
              >      TestConnectionsOnReserve="true"
              > TestTableName="dual"
              >      URL="jdbc:oracle:thin:@xxxxxx:1521:yyyyyy"/>
              > <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="jdbc.xxxDB"
              > Name="xxxDB" PoolName="xxxPool" Targets="PR_CLUSTER"/>
              >
              > Secondary:
              > <JDBCConnectionPool
              > CapacityIncrement="5"
              > DriverName="oracle.jdbc.driver.OracleDriver"
              > InitialCapacity="50"
              > LoginDelaySeconds="1"
              > MaxCapacity="50"
              > Name="xxxPool"
              > PreparedStatementCacheSize="0"
              > Properties="user=xxxsm;dll=ocijdbc8;protocol=thin"
              > RefreshMinutes="59"
              > ShrinkPeriodMinutes="15"
              > ShrinkingEnabled="false"
              > Targets="PR_CLUSTER"
              > TestConnectionsOnRelease="true"
              > TestConnectionsOnReserve="true"
              > CountOfTestFailuresTillFlush="1"
              > CountOfRefreshFailuresTillDisable="1"
              > ConnectionCreationRetryFrequencySeconds="240"
              > TestTableName="dual"
              > Password="sbkbl05"
              > URL="jdbc:oracle:thin:@xxxxx:1521:yyyyyy"/>
              >
              > <JDBCTxDataSource EnableTwoPhaseCommit="true"
              > JNDIName="jdbc.xxxDB" Name="xxxDB" PoolName="xxxPool" Targets="PR_CLUSTER"/>
              >
              >
              > Has someone encountered this situation before? Does any configuration condition lead to this situation?
              >
              > Thanks in advance for your help

  • Do I need rtexprvalue set to true for a String that will vary from page to page?

    Hi I am a newbie to JSP tags. I have done enough reading so far to see
              that if I want an attribute of the tag to be a scriplet ie:
              <foor:bar name="<%=myObj.getName()%>" />
              then the rtexprvalue for this attribute in the TLD needs to be true.
              My question is what if I have an attribute that will not be read from
              a scriplet but will vary from page to page. ie:
              <foo:authorize securityLevel="1"> but on another page it will be
              <foo:authorize securityLevel="3"> etc.. Since many servlet containers
              create only one instance of the tag class and then re-use them from a
              pool do I need to set rtexprvalue to true for an attribute like this
              to make sure the tag reads the correct one as I go from page to page?
              

              You do not need to set rtexprvalue to true for the situation you describe.
              Laura
              Developer Relations Engineer
              BEA Support
              [email protected] (Mike Lomage) wrote:
              >Hi I am a newbie to JSP tags. I have done enough reading so far to see
              >that if I want an attribute of the tag to be a scriplet ie:
              > <foor:bar name="<%=myObj.getName()%>" />
              >then the rtexprvalue for this attribute in the TLD needs to be true.
              >My question is what if I have an attribute that will not be read from
              >a scriplet but will vary from page to page. ie:
              > <foo:authorize securityLevel="1"> but on another page it will be
              > <foo:authorize securityLevel="3"> etc.. Since many servlet containers
              >create only one instance of the tag class and then re-use them from a
              >pool do I need to set rtexprvalue to true for an attribute like this
              >to make sure the tag reads the correct one as I go from page to page?
              

  • ORA-02069: global_names parameter must be set to TRUE for this operation

    I have 10g database and a schema 'TMAPP'
    And I have two table in TMAPP as
    create table user_menu_privs
    company_code           varchar2(5),
    bu_code      varchar2(12),
    user_group      varchar2(30),
    user_group_type      varchar2(1),
    menu_option_code number(5),
    enabled varchar2(1),
    query_only varchar2(1),
    default_lang varchar2(3),
    created_by      varchar2(10),
    created_on      date,
    updated_by      varchar2(10),
    updated_on      date,
    constraint pk_user_menu_privs primary key (company_code,bu_code,user_group,user_group_type,menu_option_code),
    constraint fk_user_menu_privs foreign key (company_code,bu_code,user_group,user_group_type)
    references user_group(company_code,bu_code,user_group,user_group_type)
    create table user_dst
    company_code           varchar2(5),
    bu_code      varchar2(12),
    userid varchar2(10),
    user_group      varchar2(30) ,
    user_group_type      varchar2(1) ,
    font_size      number(2) ,
    font_name      varchar2(100) ,
    address_id number(10),
    created_by      varchar2(10),
    created_on      date,
    updated_by      varchar2(10),
    updated_on      date,
    constraint pk_user_dst primary key (company_code,bu_code,userid,user_group,user_group_type),
    constraint fk_user_dst foreign key (company_code,bu_code,user_group,user_group_type)
    references user_group(company_code,bu_code,user_group,user_group_type)
    I have another database 11g with a schema TMAPP.
    Here I have created a database link 'to_dev' is connecting to the 10g db
    using this I can connect and see the data from 10g TMAPP
    I have created two views
    create or replace view user_menu_privs as
    select *
    from user_menu_privs@to_dev
    where user_group in
    (select user_group from user_dst
    where user_group_type='F');
    create or replace view user_dst as
    select * from user_dst@to_dev;
    and I executed
    delete from user_menu_privs
    where menu_option_code=108;
    I am getting the error
    ORA-02069: global_names parameter must be set to TRUE for this operation
    after that I set the global_names in 11g as TRUE
    then I am getting another error as
    ORA-02085: database link TO_DEV connects to DEV.REGRESS.RDBMS.DEV.US.ORACLE.COM -- that means link is not wokring
    Please help
    Dennis
    Edited by: DJ on Mar 13, 2012 5:49 AM
    Edited by: DJ on Mar 13, 2012 5:51 AM
    Edited by: DJ on Mar 13, 2012 5:53 AM
    Edited by: DJ on Mar 13, 2012 5:55 AM
    Edited by: DJ on Mar 13, 2012 5:56 AM

    OP wrote
    >
    But you said
    create a database link in 11g database with 11g database global name and put 11g database global_name=true.
    and put 10g database golba_name=false;
    >
    That isn't what I said at all. Reread my first reply. The first part is a copy of what you had stated.
    >
    ORA-02069: global_names parameter must be set to TRUE for this operation
    after that I set the global_names in 11g as TRUE
    >
    And then I said
    >
    That is because when global_names is TRUE, the database link name MUST be same as the global db name of the database to which the link connects to.
    You need to drop the database link and recreate it using the global name of the database it connects to.
    'link name MUST be same as the global db name of the database to which the link connects to.' - I didn't say 11g.
    And I didn't say 'put 11g database global_name=true' because you had already done that! 'after that I set the global_names in 11g as TRUE.
    1. 11g - global_names MUST be TRUE
    2. 11g - database link name MUST be the same as the global db name of the database to which the link connects to - 10g global db name
    3. 10g - gloibal_names setting is irrelevant

  • Pro Cobol Directive for setting autocommit.

    From the Cobol application,
    1. In some cases, I have execute the SQL Statements and commit the same immediately.
    2. In some cases, I have to execute the SQL Statments but should not commit immediately.
    The easiest way is setting autocommit on and off, at the required places.
    I am using Pro Cobol to connect to Oracle DB. Could any one help on this?
    Thanks,
    Mahendra.

    From the Cobol application,
    1. In some cases, I have execute the SQL Statements and commit the same immediately.
    2. In some cases, I have to execute the SQL Statments but should not commit immediately.
    The easiest way is setting autocommit on and off, at the required places.
    I am using Pro Cobol to connect to Oracle DB. Could any one help on this?
    Thanks,
    Mahendra.

  • How to change Default setting AutoCommit to 0 in Procedure or in Connecting

    [tttest@host1 ~]$ ttisql "dsn=ana_tt1122"
    Copyright (c) 1996-2011, Oracle. All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    connect "dsn=ana_tt1122";
    Warning 20000: Use of a deprecated feature: Authenticate (ignored)
    Connection successful: DSN=ana_tt1122;UID=tttest;DataStore=/timesten/TimesTen/tt1122/info/ana/ana;DatabaseCharacterSet=ZHS16GBK;ConnectionCharacterSet=ZHS16GBK;DRIVER=/timesten/TimesTen/tt1122/lib/libtten.so;OracleId=ABCD;PermSize=1200;TempSize=500;TypeMode=0;OracleNetServiceName=ABCD;
    (Default setting AutoCommit=1)
    The "Default setting AutoCommit=1",I can modify it only later using :
    Command> autocommit 0;
    But, I want to know: Can I set the "Default setting AutoCommit=0"? When I connect the DSN? or Can I set "Default setting AutoCommit=0" in a procedure ? Because sometime I maybe want to change it in procedure.
    Thanks very.

    As you have pointed out, in ttisql session you can use AUTOCOMMIT 0 to disable the autocommit feature.
    Similarly in ODBC-based applications, execute SQLSetConnectOption function with SQL_AUTOCOMMIT_OFF.
    For JDBC applications, Connection.setAutoCommit(false) method to disable autocommit feature .

  • Setting a Layer Break for GEAR Pro Mastering Edition with EncoreDVD & IFOEdit

    Setting Layer Breaks Manually for Encore/GEAR Projects
    Although we can write straight to a DVD+R DL disc directly out of EncoreDVD 2.0 and we can also create our Master DLT tapes directly out of EncoreDVD 2.0 also, there are times when these options simply are not sufficient.
    For example - we wish to Verify the successful writing of a DLT Tape, or we wish to create a QC disc for our clients in DVD-R DL format.
    Either way, the "option" of using a +R DL disc is often unacceptable.
    Another very good reason for +R DL discs to be NFG is that they are NOT DVD-Video format, and as such tend to expect the layers 0 and 1 to be of equal size.
    Yet another reason could simply be we are using EncoreDVD 1.01, which does not support direct writing of any DL discs at all.
    The solution is to use GEAR Pro Mastering Edition to create your DLT or DVD-R DL disc directly from your Encore project instead.
    And here's how you do it.
    You are going to need copies of both GEAR Pro Mastering Edition, EncoreDVD (any version) and finally a copy of the freeware application IFOEdit http://www.ifoedit.com/. Additionally, we will also need the GEAR Layer Break Calcuulator, provided for free on their excellent support site at http://www.gearsoftware.com/support/documentation/layerbreakcalculator.xls
    Now we are ready - lets look at how it is all done. Don't be put off by what looks like a lot of math here either - this gets easier every time you do it and all it takes is a little common sense and practise.
    The best way to proceed is to use EncoreDVD to build your project to a folder. This will not make any Layer Break settings at all, and will allow us to create a new DL Project in GEAR and also allows GR+EAR to build the UDF/ISO structure for us.
    So once we have written our tested and checked project to a folder, the next step is to close out of EncoreDVD and launch GPME. By the way - if you're not certain that you need the expense of GPME for a one-off project you can simply download their 30 day trial version and use this as it is 100% fully functional in every way - there are no limitations at all.
    When GEAR loads, select to create a new DVD-Video project and be certain you tick the DVD9 box in this screen too. Another window will appear now asking you to locate the folder where the Video_TS files are stored. Point this at the Video_TS folder and GEAR will create a basic DVD9 project for you.
    Next we need to load up the Excel Spreadsheet with the Layer Break Calculator we downloaded earlier. I always use a different machine for this as I don't have Office installed and any open source application that can read an XLS file will do the job. If you don't have one, I recommend either OpenOffice or Star Office to do this. There are a lot of helpful calculators in XLS mode, and you won't regret it. Just try to keep all this stuff well clear of your authoring system though. But I am rambling, and I'm sorry. Back to buiness.
    Once we have loaded up our Layer Break Calculator, we need to enter in some numbers.
    Back over in GPME, where we have our shiny new DVD9 project sat there waiting for instructions, there is a file structure on the lower left hand side of the project screen. Att the top of the list we should see something very much like "VOLUME (projectname) (DVD-Video ISO/UDF)"
    Right-click on this, and select "Properties". A screen will appear with all sorts of numbers in it, and we ignore the lot of them except for the "Total Volume Size in Sectors" - which we need to write down, nip across the room to our spreadsheet, and type the number in right at the top where it says "Total Volume (project) Size"
    Another set of (probably) meaningless numbers appears - and the 2 we are interested in here are the ones where it says "RULES" and specifically "Layer Break Point must be Greater than .....
    And Less than.....
    Write these 2 numbers down, and hop smartly back across to where we have our GEAR project open on our authoring machine. Or simply minimize the spreadsheet if we are doing all this on the same system.
    We now need to click on the folder marked "Video_TS" in the bottom left of the GEAR screen, and on the lower right we need to click once on the bar in the middle above all the VOB files marked "start sector" to arrange all the files in the sequence they will be on the disc. This makes finding our VTS file so much easier.
    Somewhere in that list there will be a file that has that range of numbers in it. If we are really lucky, there will be more than one, which means that one of these will soon become our Layer Break.
    When we have identified the correct file, take a note of it's name - it will be VTS_01_4.VOB or something with a similar structure name wise.
    Next, we need to write down and enter into the Layer Break Calculator the start sector number of the VTS_xx_1.VOB file that holds our values.
    I will try to explain why. If our Sector range is to be found in the example we gave earlier, say VTS_01_4.VOB, we need to note the start sector of the file VTS_01_1.VOB. This is because all these VTS_xx_x.VOB files are all extensions of the same file. They are just in handy blocks so that the Computer can keep track of them without breaking any rules about file sizes. Anyway, we write down the Start Sector of the file VTS_xx_1.VOB where xx is the file where the Layer Break range is to be found.
    Just to try & make the concept clear, if the range were found in the file VTS_05_5.VOB, our start sector we need to write down is VTS_05_1.VOB
    Enter this into the Calculator/Spreadsheet in the place where it says "Chosen Video Object VTS_xx_1.VOB Start Sector.
    Now this will tell us exactly where we need to look next, and tell us we now need to hunt for a cell start sector between a range of sectors.
    It might be something like "1,148,678 and 2,051,052" sectors.
    This is where IFOEdit comes in.
    Launch IFOEdit - and you may as well go back to GEAR, and close the project - but not the application. Go to the "File" menu, and from the drop dow select "Delete GEAR Project" and delete the one we just created, as we will need to change it anyway. Why you will find out later on.
    From IFOEdit, you will see 2 halves of a screen. Down the bottom left there is an "Open" button. Click on this and locate the Video_TS folder, and specifically the file VTS_xx_1.IFO, where xx is the file we know from earlier the Layer Break will be placed.
    Immediately your head will start to ache, your eyes will glaze over & your brain will wave a little white flag, as some serious mathematics suddenly appears (Well, that's what happened to me the first time. I was too fascinated to be confused - sheer bewilderment is perhaps the best expression. And I still don't know what most of it is for.
    The one we are interested in can be found in the upper half, and is called "VTS_PGCITI".
    Click on this, and a lot of little others will appear immediately below it.
    You will see VTS_PGC_1 and so on until you run out of blocks.
    The odds are high our layer break will be in the longest file - but this does not always hold true, so we start at the top & work our way rapidly down. What we are looking for is twofold.
    1 - A Cell Start Sector within our range defined earlier.
    2 - A cell Start Sector flagged as "NON Seamless playback.
    If we can fill both these criteria, we have our layer break.
    Write this number down, and enter it into our spreadsheet - and close down IFOEdit as we are done with it for today.
    Back in the Spreadsheet we are almost done. Once we enter this number in, it will helpfully calculate exactly where in our Virtual image from earlier that sector lies, and will check to see if it is divisible by 16. Don't worry for now why, just know that it has to do this.
    The chances are high it will not be, so the spreadsheet will tell you how many sectors the whole image has to be shifted forwards by, and what the new Cell Start Sector is in this revised image. This is automatic, and you get 2 figures.
    1 - Offset. This number will be between 0 and 15.
    2 - Layer Break Sector.
    Time to go back to GEAR, and in our "Options" drop-down menu we will have another one called "Preferences". In this, we need to tell GEAR to ask us for the start sector to be entered for each file.
    Now we create our project again - but this time GEAR will ask us for the start sector of VIDEO_TS_IFO, and the figure 640 will be highlighted.
    Add our offset figure we were given earlier to this so if our offset was 11, enter in 651.
    GEAR will do all the rest automatically for you.
    One more job to do now.
    Go Back to "Options/Preferences", and under DVD we need to tell GEAR we are changing the Layer Break. Click on the "Change" button, and use the up/down arrows to arrive at our newly discovered Layer Break Value.
    Save the project - we're done. And write down that offset & Layer Break whatever you do.
    You can now write to DVD-R DL, DLT tapes (and if you right-click on your DLT drive in the lower "Devices" screen, and choose "Properties", you can tell GEAR to verify the tape after writing too. It will write both layers first, then verify each one.
    There is, however, a minor "GOTCHA" in GPME when writing DLT tapes.
    It is allowed to set the IDENT.TXT file to be included on the DLT tape by means of a tick box. However, as this file is not actually required for replication in DVD-Video, but only in DVD-ROM - GEAR will not include the file
    i even if the box is ticked
    but it
    i does
    add a pointer to the file in the DDPID file instead. The upshot of this is that a DLT tape where IDENT.TXT has been selected to be included will be
    i rejected by the factory as unusable.
    This is because when they try to verify the DDP image on the tape it will fail as IDENT.TXT is NOT on the tape.
    You must ensure this box is NEVER TICKED - I fell for this one recently, and had to rework 7 DLT tapes.
    There is yet another way to get a DL project to the factory if you do not have a DLT machine, and do not have access to DL discs in the correct format.
    Write the DDP images to 2 single layer discs instead!
    This requires the use of GEAR Pro Mastering Edition again, and is incredibly easy to do.
    What you need to do here is follow the original guides in the FAQ sections for setting the Layer Break manually, but instead of writing the project to DLT tapes or to DVD-R DL/DVD+R DL media, what we do next is write the project to a DDP file on the HDD instead.
    This will result in 2 folders appearing - Layer 0 and Layer 1.
    Each of these has the necessary information for the replication plant to manufacture the discs - all we need to do is get them onto 2 discs instead of 2 DLT tapes.
    This is simplicity itself.
    Launch your burning application.
    Create a new DVD-ROM project.
    Name it (Project)_Layer_1
    Broswe to the 2 folders with the DDP files in them, and add the contents in this exact order
    DDPID
    CONTROL.DAT
    IMAGE.DAT
    (Checksum.txt - optional)
    (Log file - optional)
    Burn the disc.
    Repeat for Layer 1.
    That is all there is to it.
    What will happen at the factory is the Eclipse verification system will look for the DDPID file at the root level of the disc. If it cannot find it, it will assume it is dealing with a standard DVD-ROM disc instead, but if it is there it will know what is going on, load the files, and ask for Layer 1 after it has finished in the normal manner.
    I hope this helps out - if not, please post in the main forums, and I'll try to help out.

    Hi Ryan,
    Yes, you'll only get the LB sector number when you format with one of the "tape images" (go with DDP 2.0). And unfortunately, Gear doesn't allow transfer of DDP or CMF Images to DLT.
    Gear is working on a version that will incorporate DVD-9 making within the program.
    Meanwhile, If you go with the instructions on their site to create a DVD-9, be sure to add: "correct VTS sectors" in the VIDEO_TS folder with IFOEdit, and set the region info in the VMGM_MAT to "0"; and be sure to flag all instances of a cell properly for the layer break, in the case they reside in any Stories that span the Layers.
    But if I may; It's highly recommended that you hire out tests on the resulting DDP image to make sure the layer break did indeed fall where you expected, and that there are no other issues (Same goes with any DDP image destined for replication, created by any other program).
    Or better yet, consider hiring someone to premaster for you (I wonder who? , who also includes navigation proofing, spec compliance testing (MEI and sometimes with a player bank) and verifying the finished Image (EclipseSuite); all for one low fixed price, i.e. no charge in the event a resubmission to me is required (pre consultation, also included, nips lots of common mistakes in the buds). This insures that only a bullet-proof Image is finally sent in to the replicator.
    There I go with commercials again! But for sure, Gear's current DVD-9 method is not for the faint of head; and premastering in general, is not the innocuous activity it appears to be. Real trouble eventually awaits (unless measures are taken), due to the nature of the critter.
    Take care,
    Trai

  • How can I set a point size for staticTexts

    Hi everyone
    How can I set a point size for staticTexts?
        staticTexts.add({staticLabel:"Please select a tedious job"});
    thanks
    Teetan

    Thank you Vandy
    Thank you pixxxel schubser
    And thank you Peter Kahrel
    But Ho can call function for this script?
    //======================================================================
    Thank you Vandy
    Thank you pixxxel schubser
    And thank you Peter Kahrel
    But Ho can call function for this script?
    //======================================================================
    var stringList = [  
    "01.  digit at end: superscript",
    "02.  digit at beginning: superscript",
    "03.  notes  applied to italic (table only)",
    "04.  Initial Cap+ markup",
    "05.  Small Cap + markup",
    "06.  del [ ] + markup",
    "07.  add an EM at beginning",
    var win = new Window("dialog","Tedious Jobs_(\"TDJs\")");  
    this.windowRef = win;  
    win.grp = win.add ("group", undefined);  
    win.grp.alignChildren = "top";  
    win.grp.margins = 5;  
    win.grp2 = win.grp.add ("group", undefined);  
    win.grp2.orientation = "Column";  
    win.grp2.alignChildren = "left";  
    win.grp3 = win.grp.add ("group", undefined);  
    win.grp3.orientation = "Column";  
    win.grp3.alignChildren = "fill";  
    win.grp2.Txt1 = win.grp2.add ("statictext", undefined, "Please select a tedious job");  
    win.grp2.Txt1.indent = 0;  
    win.grp2.Ddl1 = win.grp2.add ("dropdownlist", undefined, stringList);  
    win.grp2.Ddl1.selection = 0;  
    win.grp2.sTxt1 = win.grp2.add ("statictext", undefined, "________________________________________");  
    win.grp2.sTxt3 = win.grp2.add ("statictext", undefined, "Be careful and pay attention in what you selected.");  
    win.grp2.sTxt3.graphics.font = ScriptUI.newFont ("Arial", "Regular", 10);  
    win.quitBtn = win.grp3.add("button", undefined, "Ok");  
    win.cancelBtn = win.grp3.add("button", undefined, "Cancel");  
    win.defaultElement = win.quitBtn;  
    win.cancelElement = win.cancelBtn;  
    win.quitBtn.onClick = function() {  
    win.close();  
      if (w.show() == 1) { 
                    var mRes = mStringList.selection.text;
                    mSelection = mStringList.selection.index;
                    app.insertLabel( "mDialog", mSelection.join() );    // to store dropDownList positions (as a string "," delimited)
                    return mRes;
            } else  {  exit();  } 
    app.doScript('main()', ScriptLanguage.JAVASCRIPT, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "TDJs"); 
    function main(){
    var myObject;
    var myCheckSelection = false;
    if(app.documents.length > 0){
      if(app.selection.length > 0){
       switch(app.selection[0].constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "Text":
        case "Cell":
        case "Column":
        case "Row":
        case "Table":
      mySelected = app.insertLabel( "mDialog", String(mySelection.selectedIndex) );     //     to remember selection’s set 
      if(app.selection && app.selection[0].hasOwnProperty ("tedious_works") );
          tedious_works(); 
    else{
      alert("Wrong selection. Please try again.");
    function tedious_works() {  
      app.findGrepPreferences = app.changeGrepPreferences = null; 
      switch (mySelection.selectedIndex){ 
           case 1: {
       app.findGrepPreferences.findWhat = "^\\d";
       app.changeGrepPreferences.position = 1936749411;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
                break; 
           case 2:{
       app.findGrepPreferences.findWhat = "(?i)\\(note.+\\)$";
       app.changeGrepPreferences.appliedCharacterStyle = "Italic";
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "(附[註注].+)$";
       app.changeGrepPreferences.appliedCharacterStyle = "Italic";
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
           break; 
           case 3:{
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<a";
       app.changeGrepPreferences.changeTo = "A";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<b";
       app.changeGrepPreferences.changeTo = "B";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<c";
       app.changeGrepPreferences.changeTo = "C";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<d";
       app.changeGrepPreferences.changeTo = "D";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<e";
       app.changeGrepPreferences.changeTo = "E";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<f";
       app.changeGrepPreferences.changeTo = "F";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<g";
       app.changeGrepPreferences.changeTo = "G";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<h";
       app.changeGrepPreferences.changeTo = "H";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<i";
       app.changeGrepPreferences.changeTo = "I";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<j";
       app.changeGrepPreferences.changeTo = "J";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<k";
       app.changeGrepPreferences.changeTo = "K";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<l";
       app.changeGrepPreferences.changeTo = "L";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<m";
       app.changeGrepPreferences.changeTo = "M";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<n";
       app.changeGrepPreferences.changeTo = "N";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<o";
       app.changeGrepPreferences.changeTo = "O";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<p";
       app.changeGrepPreferences.changeTo = "P";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<q";
       app.changeGrepPreferences.changeTo = "Q";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<r";
       app.changeGrepPreferences.changeTo = "R";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<(?<!’)s";
       app.changeGrepPreferences.changeTo = "S";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<t";
       app.changeGrepPreferences.changeTo = "T";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<u";
       app.changeGrepPreferences.changeTo = "U";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<v";
       app.changeGrepPreferences.changeTo = "V";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<w";
       app.changeGrepPreferences.changeTo = "W";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<x";
       app.changeGrepPreferences.changeTo = "X";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<y";
       app.changeGrepPreferences.changeTo = "Y";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<z";
       app.changeGrepPreferences.changeTo = "Z";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
           break; 
           case 4:{
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<A";
       app.changeGrepPreferences.changeTo = "a";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<B";
       app.changeGrepPreferences.changeTo = "b";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<C";
       app.changeGrepPreferences.changeTo = "c";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<D";
       app.changeGrepPreferences.changeTo = "d";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<E";
       app.changeGrepPreferences.changeTo = "e";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<F";
       app.changeGrepPreferences.changeTo = "f";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<G";
       app.changeGrepPreferences.changeTo = "g";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<H";
       app.changeGrepPreferences.changeTo = "h";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<I";
       app.changeGrepPreferences.changeTo = "i";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<J";
       app.changeGrepPreferences.changeTo = "j";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<K";
       app.changeGrepPreferences.changeTo = "k";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<L";
       app.changeGrepPreferences.changeTo = "l";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<M";
       app.changeGrepPreferences.changeTo = "m";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<N";
       app.changeGrepPreferences.changeTo = "n";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<O";
       app.changeGrepPreferences.changeTo = "o";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;

  • Setting up a cluster for the first time: newbie questions

    Any help appreciated with this situation:
              I'm trying to set up a cluster for the first time and running into
              issues (no big surprise). I'll outline my situation and pose questions
              as they arise. If/when I get things to work I'll post a step-by-step
              summary of what it took to get a simple cluster going.
              Here's what I have:
              machines:
              1 Windows 2000 machines with WL 6.1
              2 RedHat Linux machines with WL 6.1
              All machines are on the same Home LAN, can see each other, etc.
              IP addresses are:
              Windows box: 192.168.1.100
              Linux box 1: 192.168.1.102
              Linux box 2: 192.168.1.103
              servers:
              I've set up the Windows machine as my admin server, and set up
              a managed server on each Linux machine. I created a cluster that consists
              of the 2 Linux machines and deployed the web app and EJB to the cluster.
              The Windows machine is acting as a Proxy using ClusterServlet.
              The web application has been set as the Default Web Application on the
              two Linux machines. All 3 machines are listening on ports 80/443. I also
              set up session memory replication through the console.
              Application:
              I have an application that I package as an EAR file. I'm using it as a
              "reference" application designed to mimic a real world app as much as possible.
              The EAR file contains a web application that uses Struts. It also consists
              of a single Stateless Session Bean. The WAR file and EJB Jar are all
              packaged up into the EAR file. I've been able to run this application just
              fine on a single managed server on all 3 machines.
              The web application works fine, and it can invoke the EJB. I can also
              invoke the EJB from Java stand-alone clients. Struts works great. All is
              well with the world. Now I'm trying to "cluster-ize" this app using
              the environment described above and encountering issues.
              I've read the docs and followed the instructions according to the
              "Weblogic Bible" book. I can bring up all 3 servers and the Linux
              managed servers connect to the cluster just fine. I can also
              see the Struts messages in their logs which normally happens and tells me
              the webapp is initialized properly. The console tells me that the managed
              servers are running. I get no error messages starting up any of the serves.
              Here are the problems I am encountering.
              When I try to access the Web Application (through a browser on the
              Windows machine using http://localhost) I get the following error message:
              <Nov 19, 2002 6:44:33 AM EST> <Error> <HTTP> <HttpServer(1754841,null default ct
              x,admin) found no context for "/". This request does not match the context path
              for any installed web applications and there is no default web application confi
              gured.>
              Also, when I try to invoke the EJB through a stand-alone Java client,
              I get a JNDI lookup error on the EJB's home interface.
              Questions:
              Question1: I noticed when setting up the machines that console lets you
              define a "Machine" or a "Unix Machine". What's the difference? Should I
              define the Linux machines as Unix machines or machines, and what are the
              consequences of either choice?
              Question2:
              I'm not totally clear on how my web.xml should look to set up Struts,
              the ClusterServlet, and a servlet filter I'm using to test Servlet filters.
              Here is what I had before I tried to cluster and which works fine:
              <filter>
              <filter-name>MainFilter</filter-name>
              <filter-class>com.refapp.servlets.MainFilter</filter-class>
              <init-param>
              <param-name>myAttribute</param-name>
              <param-value>Foo</param-value>
              </init-param>
              </filter>
              <filter-mapping>
              <filter-name>MainFilter</filter-name>
              <url-pattern>/*</url-pattern>
              </filter-mapping
              <!-- Struts ActionServlet Configuration -->
              <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
              <param-name>application</param-name>
              <param-value>refappstruts</param-value>
              </init-param>
              <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <init-param>
              <param-name>debug</param-name>
              <param-value>2</param-value>
              </init-param>
              <init-param>
              <param-name>mapping</param-name>
              <param-value>org.apache.struts.action.RequestActionMapping</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
              </servlet>
              <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
              </servlet-mapping>
              <welcome-file-list>
              <welcome-file>index.do</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>index.html</welcome-file>
              </welcome-file-list>
              (I have set up a "dummy" 0-length file called index.do that triggers
              Struts to go into its ActionServlet when first accessing the web site).
              Here is how I added ClusterServlet to web.xml:
              servlet>
              <servlet-name>ClusterServlet</servlet-name>
              <servlet-class>weblogic.servlet.internal.HttpClusterServlet</servlet-class>
              <load-on-startup>0</load-on-startup>
              <init-param>
              <param-name>defaultServers</param-name>
              <param-value>192.168.1.102:80:443|192.168.1.103:80:443</param-value>
              </init-param>
              <init-param>
              <param-name>DebugConfigInfo</param-name>
              <param-value>ON</param-value>
              </init-param>
              </servlet>
              <servlet-mapping>
              <servlet-name>InitServlet</servlet-name>
              <url-pattern>/servlet/InitServlet</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>ClusterServlet</servlet-name>
              <url-pattern>/</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>ClusterServlet</servlet-name>
              <url-pattern>*.html</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>ClusterServlet</servlet-name>
              <url-pattern>*.jsp</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>ClusterServlet</servlet-name>
              <url-pattern>*.do</url-pattern>
              </servlet-mapping>
              Clearly there is a problem with the Default Web application not being
              seen/mapped properly. Any chances my URL mappings for the filter servlet,
              Struts, and ClusterServlet are stepping on each other?
              With respect to the EJB, here is what my weblogic-ejb-jar looks like:
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>Hello</ejb-name>
              <stateless-session-descriptor>
              <pool>
                   <max-beans-in-free-pool>100</max-beans-in-free-pool>
              </pool>
              <stateless-clustering>
              <stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
              <stateless-bean-load-algorithm>
              round-robin
              </stateless-bean-load-algorithm>
              <stateless-bean-methods-are-idempotent>
              true
              </stateless-bean-methods-are-idempotent>
              </stateless-clustering>
              </stateless-session-descriptor>
              <jndi-name>Hello.Home</jndi-name>
              </weblogic-enterprise-bean>
              I run this through ejbc and package everything up into the EAR file.
              However, I get a JNDI lookup failure when I try to access the Bean from
              a standalone Java client running on the Windows machine.
              Here is the jndi.properties file that I am using:
              java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
              java.naming.provider.url=t3://localhost:80
              Any ideas what I'm doing wrong here? I can post config.xml also if needed.
              Thanks in advance!
              

    Let me try to answer :)....
              A1> No need to name diff machines by default weblogic
              considers the servers are physically located in diff boxes.
              The names are used to differtiate the mang servers which are in
              multihomed
              Some things to chk
              1> Did u targeted the ear file Target as cluster.
              2> Can u see on the Admin console that both the man servers
              are participated in the cluster( u can see by clicking the monitoring
              tab on the Cluster node).
              3>Is the URL:PORT for the default web app correct?
              the reason: is I dont see the port# on the link u mentioned
              4> probably ur ejb might not been deployed on the target thats the
              reason u cant access thru java client. If u correct the targets that
              will probably fix it.
              Hope this helps
              Please post the result
              Thanks
              Sudhir
              [email protected] (Chris) wrote in message news:<[email protected]>...
              > Any help appreciated with this situation:
              > I'm trying to set up a cluster for the first time and running into
              > issues (no big surprise). I'll outline my situation and pose questions
              > as they arise. If/when I get things to work I'll post a step-by-step
              > summary of what it took to get a simple cluster going.
              > Here's what I have:
              >
              > machines:
              > 1 Windows 2000 machines with WL 6.1
              > 2 RedHat Linux machines with WL 6.1
              > All machines are on the same Home LAN, can see each other, etc.
              > IP addresses are:
              > Windows box: 192.168.1.100
              > Linux box 1: 192.168.1.102
              > Linux box 2: 192.168.1.103
              >
              > servers:
              > I've set up the Windows machine as my admin server, and set up
              > a managed server on each Linux machine. I created a cluster that consists
              > of the 2 Linux machines and deployed the web app and EJB to the cluster.
              > The Windows machine is acting as a Proxy using ClusterServlet.
              > The web application has been set as the Default Web Application on the
              > two Linux machines. All 3 machines are listening on ports 80/443. I also
              > set up session memory replication through the console.
              >
              > Application:
              > I have an application that I package as an EAR file. I'm using it as a
              > "reference" application designed to mimic a real world app as much as possible.
              > The EAR file contains a web application that uses Struts. It also consists
              > of a single Stateless Session Bean. The WAR file and EJB Jar are all
              > packaged up into the EAR file. I've been able to run this application just
              > fine on a single managed server on all 3 machines.
              > The web application works fine, and it can invoke the EJB. I can also
              > invoke the EJB from Java stand-alone clients. Struts works great. All is
              > well with the world. Now I'm trying to "cluster-ize" this app using
              > the environment described above and encountering issues.
              >
              > I've read the docs and followed the instructions according to the
              > "Weblogic Bible" book. I can bring up all 3 servers and the Linux
              > managed servers connect to the cluster just fine. I can also
              > see the Struts messages in their logs which normally happens and tells me
              > the webapp is initialized properly. The console tells me that the managed
              > servers are running. I get no error messages starting up any of the serves.
              >
              > Here are the problems I am encountering.
              >
              > When I try to access the Web Application (through a browser on the
              > Windows machine using http://localhost) I get the following error message:
              >
              > <Nov 19, 2002 6:44:33 AM EST> <Error> <HTTP> <HttpServer(1754841,null default ct
              > x,admin) found no context for "/". This request does not match the context path
              > for any installed web applications and there is no default web application confi
              > gured.>
              >
              > Also, when I try to invoke the EJB through a stand-alone Java client,
              > I get a JNDI lookup error on the EJB's home interface.
              >
              > Questions:
              > Question1: I noticed when setting up the machines that console lets you
              > define a "Machine" or a "Unix Machine". What's the difference? Should I
              > define the Linux machines as Unix machines or machines, and what are the
              > consequences of either choice?
              >
              > Question2:
              > I'm not totally clear on how my web.xml should look to set up Struts,
              > the ClusterServlet, and a servlet filter I'm using to test Servlet filters.
              > Here is what I had before I tried to cluster and which works fine:
              >
              > <filter>
              > <filter-name>MainFilter</filter-name>
              > <filter-class>com.refapp.servlets.MainFilter</filter-class>
              > <init-param>
              > <param-name>myAttribute</param-name>
              > <param-value>Foo</param-value>
              > </init-param>
              > </filter>
              >
              > <filter-mapping>
              > <filter-name>MainFilter</filter-name>
              > <url-pattern>/*</url-pattern>
              > </filter-mapping
              >
              >
              > <!-- Struts ActionServlet Configuration -->
              > <servlet>
              > <servlet-name>action</servlet-name>
              > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              >
              > <init-param>
              > <param-name>application</param-name>
              > <param-value>refappstruts</param-value>
              > </init-param>
              >
              > <init-param>
              > <param-name>config</param-name>
              > <param-value>/WEB-INF/struts-config.xml</param-value>
              > </init-param>
              >
              > <init-param>
              > <param-name>debug</param-name>
              > <param-value>2</param-value>
              > </init-param>
              >
              > <init-param>
              > <param-name>mapping</param-name>
              > <param-value>org.apache.struts.action.RequestActionMapping</param-value>
              > </init-param>
              > <load-on-startup>2</load-on-startup>
              > </servlet>
              >
              > <servlet-mapping>
              > <servlet-name>action</servlet-name>
              > <url-pattern>*.do</url-pattern>
              > </servlet-mapping>
              >
              > <welcome-file-list>
              > <welcome-file>index.do</welcome-file>
              > <welcome-file>index.jsp</welcome-file>
              > <welcome-file>index.html</welcome-file>
              > </welcome-file-list>
              >
              > (I have set up a "dummy" 0-length file called index.do that triggers
              > Struts to go into its ActionServlet when first accessing the web site).
              >
              > Here is how I added ClusterServlet to web.xml:
              >
              > servlet>
              > <servlet-name>ClusterServlet</servlet-name>
              > <servlet-class>weblogic.servlet.internal.HttpClusterServlet</servlet-class>
              > <load-on-startup>0</load-on-startup>
              > <init-param>
              > <param-name>defaultServers</param-name>
              > <param-value>192.168.1.102:80:443|192.168.1.103:80:443</param-value>
              > </init-param>
              > <init-param>
              > <param-name>DebugConfigInfo</param-name>
              > <param-value>ON</param-value>
              > </init-param>
              > </servlet>
              >
              > <servlet-mapping>
              > <servlet-name>InitServlet</servlet-name>
              > <url-pattern>/servlet/InitServlet</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>action</servlet-name>
              > <url-pattern>*.do</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>ClusterServlet</servlet-name>
              > <url-pattern>/</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>ClusterServlet</servlet-name>
              > <url-pattern>*.html</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>ClusterServlet</servlet-name>
              > <url-pattern>*.jsp</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>ClusterServlet</servlet-name>
              > <url-pattern>*.do</url-pattern>
              > </servlet-mapping>
              >
              >
              > Clearly there is a problem with the Default Web application not being
              > seen/mapped properly. Any chances my URL mappings for the filter servlet,
              > Struts, and ClusterServlet are stepping on each other?
              >
              > With respect to the EJB, here is what my weblogic-ejb-jar looks like:
              >
              > <weblogic-ejb-jar>
              > <weblogic-enterprise-bean>
              > <ejb-name>Hello</ejb-name>
              > <stateless-session-descriptor>
              > <pool>
              >      <max-beans-in-free-pool>100</max-beans-in-free-pool>
              > </pool>
              > <stateless-clustering>
              > <stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
              > <stateless-bean-load-algorithm>
              > round-robin
              > </stateless-bean-load-algorithm>
              > <stateless-bean-methods-are-idempotent>
              > true
              > </stateless-bean-methods-are-idempotent>
              > </stateless-clustering>
              > </stateless-session-descriptor>
              > <jndi-name>Hello.Home</jndi-name>
              > </weblogic-enterprise-bean>
              >
              > I run this through ejbc and package everything up into the EAR file.
              > However, I get a JNDI lookup failure when I try to access the Bean from
              > a standalone Java client running on the Windows machine.
              > Here is the jndi.properties file that I am using:
              >
              > java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
              > java.naming.provider.url=t3://localhost:80
              >
              > Any ideas what I'm doing wrong here? I can post config.xml also if needed.
              >
              > Thanks in advance!
              

  • How do you set the font color for a specific entire row inside a JTable?

    How do you set the font color for a specific entire row inside a JTable?
    I want to change the font color for only a couple of rows inside a JTable.
    I've seen some ways to possibly do this with an individual cell.
    Clarification on changing the font color in an individual cell would be helpful too if
    there is no easy way to do this for a row.

    hai,
    Try out with this piece of code.Create your table and assign the renderer to each column in the table.
    CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
    for(int i=0;i<your_JTable.getColumnCount();i++)
    your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
    class CellColorRenderer extends JLabel implements TableCellRenderer
    CellColorRenderer()     
    setOpaque(true);     
    setHorizontalAlignment(LEFT);
    setVerticalAlignment(CENTER);
    setBackground(Color.white);
    setForeground(Color.black);
    protected void setValue(Object value)
         setText((value == null) ? "" : value.toString());
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
         if(isSelected == true)
              setForeground(Color.red);
         else
              setForeground(Color.black);
         setValue(value);
         return this;
    regards,
    bala

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • Set a default value for a radio button populated with a List of value

    Hi,
    I am using jdeveloper 11.1.1.3.0. I need to set a default value for a radio button populated with a List of value(Yes/No). Here's the selectonechoice code.
    <af:selectOneRadio value="#{bindings.Code.inputValue}"
    label="#{bindings.Code.label}"
    required="#{bindings.Code.hints.mandatory}"
    shortDesc="#{bindings.Code.hints.tooltip}"
    id="sor1" autoSubmit="true"
    valuePassThru="true" layout="horizontal">
    <f:selectItems value="#{bindings.Code.items}" id="si1"/>
    </af:selectOneRadio>
    I want to have the selectonechoice set to No by default. In the previous versions, I set the default value in the base attribute VO. But it is not working in the new version.
    Thanks

    Hi,
    this should work in JDeveloper 11.1.1.3 the same as in 11.1.1.2. If it doesn't then it is better to file a bug than to work around it
    Frank

  • How can I set up auto respond for email

    How can I set up auto respond for email?

    Hey there jimmac169,
    It sounds like you want to have the Mail app automatically reply to emails that come in. You can do this in the app itself, but in order for the function to work, Mail needs to be open. Take a look at this info from the following article:
    Mail (Yosemite): Reply to, forward, or redirect messages
    Automatically reply to or forward messages
    Mail must be open before it can automatically forward or reply to messages. If you want to send automatic replies when Mail isn’t open—like when you’re on vacation—check with the provider of your email account. 
    Choose Mail > Preferences, then click Rules.
    Click Add Rule, then type a name for the rule.
    Indicate whether any or all of the conditions must be true for the rule to be applied.
    Set the conditions that determine which messages to automatically reply to or forward.
    Choose options from the “Perform the following actions” pop-up menu.
    Forward messages: Choose Forward Message from the first pop-up menu, then enter the email addresses where you want to receive the forwarded messages. Click Message, then enter any text you want to include with the forwarded message. For example, you could explain that you’re automatically forwarding messages. 
    Reply to messages: Choose “Reply to Message” from the first pop-up menu, click “Reply message text,” then enter your reply. Mail includes the full text of the original message in your reply. 
    Click OK.
    Carefully consider the rules you create. If they’re too broad, messages can be sent inadvertently or create loops (replies to replies you sent). If possible, test the rules. 
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Setting azure portal icon for new images

    According to the Azure Service Management REST API, one should be able to set the icon to be displayed in the portal using the IconUri and SmallIconUri tags as described here.
    http://msdn.microsoft.com/en-us/library/azure/jj157198.aspx
    I sent this command with these values set to the URLs for publicly available png icon files and created a new image.  The image was created successfully and no errors were returned, however the icons displayed are still the default windows icons.
    Is this feature disabled somehow or is there some other specification that needs to be set or addressed?
    I could continue to try endless possibilities (like different sized icons or URL locations) but it seems like this should have worked according to the API specification since no other restrictions were stated.
    Could someone please tell me how to get this to work?
    Bruce

    Hi
    Sorry for mis-understand your question:
    I think this IconURI feature disabled.
    Because in latest Azure Management Class libraries, this class libraries is based on latest Azure REST API.
    You can't find IconUri property.
    MSDN article always update slowly.
    namespace Microsoft.WindowsAzure.Management.Compute.Models
    // Summary:
    // The List OS Images operation response.
    public class VirtualMachineOSImageListResponse : OperationResponse, IEnumerable<VirtualMachineOSImageListResponse.VirtualMachineOSImage>, IEnumerable
    // Summary:
    // Initializes a new instance of the VirtualMachineOSImageListResponse class.
    public VirtualMachineOSImageListResponse();
    // Summary:
    // Optional. The virtual machine images associated with your subscription.
    public IList<VirtualMachineOSImageListResponse.VirtualMachineOSImage> Images { get; set; }
    // Summary:
    // Gets the sequence of Images.
    public IEnumerator<VirtualMachineOSImageListResponse.VirtualMachineOSImage> GetEnumerator();
    // Summary:
    // A virtual machine image associated with your subscription.
    public class VirtualMachineOSImage
    // Summary:
    // Initializes a new instance of the VirtualMachineOSImage class.
    public VirtualMachineOSImage();
    // Summary:
    // Optional. The affinity in which the media is located. The AffinityGroup value
    // is derived from storage account that contains the blob in which the media
    // is located. If the storage account does not belong to an affinity group the
    // value is NULL and the element is not displayed in the response. This value
    // is NULL for platform images.
    public string AffinityGroup { get; set; }
    // Summary:
    // Optional. The repository classification of the image. All user images have
    // the category User.
    public string Category { get; set; }
    // Summary:
    // Optional. Specifies the description of the image.
    public string Description { get; set; }
    // Summary:
    // Optional. Specifies the End User License Agreement that is associated with
    // the image. The value for this element is a string, but it is recommended
    // that the value be a URL that points to a EULA.
    public string Eula { get; set; }
    // Summary:
    // Optional. Specifies a value that can be used to group images.
    public string ImageFamily { get; set; }
    // Summary:
    // Optional. Indicates whether the image contains software or associated services
    // that will incur charges above the core price for the virtual machine. For
    // additional details, see the PricingDetailLink element.
    public bool? IsPremium { get; set; }
    // Summary:
    // Optional. An identifier for the image.
    public string Label { get; set; }
    // Summary:
    // Optional. Specifies the language of the image. The Language element is only
    // available using version 2013-03-01 or higher.
    public string Language { get; set; }
    // Summary:
    // Optional. The geo-location in which this media is located. The Location value
    // is derived from storage account that contains the blob in which the media
    // is located. If the storage account belongs to an affinity group the value
    // is NULL. If the version is set to 2012-08-01 or later, the locations are
    // returned for platform images; otherwise, this value is NULL for platform
    // images.
    public string Location { get; set; }
    // Summary:
    // Optional. The size, in GB, of the image.
    public double LogicalSizeInGB { get; set; }
    // Summary:
    // Optional. The location of the blob in Azure storage. The blob location belongs
    // to a storage account in the subscription specified by the SubscriptionId
    // value in the operation call. Example: http://example.blob.core.windows.net/disks/myimage.vhd
    public Uri MediaLinkUri { get; set; }
    // Summary:
    // Optional. The name of the operating system image. This is the name that is
    // used when creating one or more virtual machines using the image.
    public string Name { get; set; }
    // Summary:
    // Optional. The operating system type of the OS image. Possible values are:
    // Linux, Windows.
    public string OperatingSystemType { get; set; }
    // Summary:
    // Optional. Specifies a URL for an image with IsPremium set to true, which
    // contains the pricing details for a virtual machine that is created from the
    // image. The PricingDetailLink element is only available using version 2012-12-01
    // or higher.
    public Uri PricingDetailUri { get; set; }
    // Summary:
    // Optional. Specifies the URI that points to a document that contains the privacy
    // policy related to the image.
    public Uri PrivacyUri { get; set; }
    // Summary:
    // Optional. Specifies the date when the image was added to the image repository.
    public DateTime PublishedDate { get; set; }
    // Summary:
    // Optional. The name of the publisher of this OS Image in Azure.
    public string PublisherName { get; set; }
    // Summary:
    // Optional. Specifies the size to use for the virtual machine that is created
    // from the OS image.
    public string RecommendedVMSize { get; set; }
    // Summary:
    // Optional. Specifies the URI to the small icon that is displayed when the
    // image is presented in the Azure Management Portal. The SmallIconUri element
    // is only available using version 2013-03-01 or higher.
    public Uri SmallIconUri { get; set; }
    You can get this class libraries by nuget manage cmd:
    Install-Package Microsoft.WindowsAzure.Management.Libraries -Pre
    My Blog
    Please use Make as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • Is it ok to set "auto shrink" ON for reportserver and reportserverTempDB database?

    Is it ok to set "auto shrink" ON for the reportserver and reportserverTempDB databases?
    I have read multiple 'best practice' advice articles to not se 'auto shrink' to true, and I understand the potential issue with index fragmentation, but I percieve this advice is for user created application databases and not for the ReportServer and
    reportserverTempDB databases.

    Hello Tom,
    Could you put it on - sure. Should you put it on - (My personal opinion is) never.
    There is more to it than just fragmenting indexes.
    About every half an hour or so the internal information kept about the database will be used to figure out if it should and can shrink and to about what size. This might be great for overnight when no one is using it, but the first time new extents are needed
    (since it just shrunk very small from no/light usage of reporting services) all requests will be halted until the data and log files grow. Basically you'll create a cycle of start->grow->stop->shrink->grow->shrink->grow->ad nausea. If
    you don't want to waste the resources of constantly growing and shrinking (plus all of the stopping when it happens) then don't enable it. If you don't care or it's not a big deal, go ahead and enable it but I'm not quite sure why a few MB would make a big
    difference?
    The reporting server databases are still "user" databases, they are not special system databases.
    Hope this helps.
    Sean Gallardy | Blog |
    Twitter

Maybe you are looking for

  • Part of my Touch screen not working, out of warranty. Please Help

    This just started a few days ago, I have been going crazy. I can't access a bar in the upper portion of the screen. I can't dial 4 5 6 buttons. I can't type a t in landscape mode keyboard. This is my second iphone, the first one I dropped once and th

  • Designer 10.1.2.3

    Hello guys, I have downloaded the software and installed it successfully but when I start it it asks me for user/password which is normal when I enter my connection information it says: "this user does not have an installed rpository, invoke the repo

  • Nitrogen wallpaper switcher: Dual Screen wallpaper via bash?

    I've grown quite attached to a little script for my laptop that lets me randomly switch the background with nitrogen: #! /bin/bash WALLPAPERS="/home/elias/Pics/BackgroundShow" ALIST=( `ls -w1 $WALLPAPERS` ) RANGE=${#ALIST[@]} let "number = $RANDOM" l

  • Anyone know if Adobe Acrobat 8 Pro works ok with Leopard?

    Has anyone installed and used Acrobat 8 Pro in Leopard? Any problems? Thanks! Captain

  • My ipod keeps shutting off when go to the music menu

    I have had my black 4 gb nano for a while and today it started shutting off when i push the center button when going into the music button kind of like it is going to sleep because when i turn it back on the apple logo shows up does anyone know how t