Two EJBS in a single transaction

          Hi,
          I have one ejb(ejb no.1) calling another ejb (ejb no.2) and few other methods
          having database updation.
          If any of the method gives an exception then the database changes done by ejb
          no.2 does not roll back. Why is this happening ..?
          This is a container managed transaction and have 'Required' transaction isolatin
          level. I don't have any setrollbackonly as the transaction is started at ejb no.1
          level.
          Can anyone answer my question.
          Can anybody help me about putting
          

Are you using a TXDatasource to get your dbms connection??
          Are both ejb's updating the same dbms same connection pool.
          If container managed ejb 2 would need to call setrollback only if you
          want it to roll back and also setrollback on ejb1.
          So something like
          ejb1 - makes dbms calls all ok
          calls ejb2 ejb2 has error
          call setrollback only in ejb2
          throw exception
          If both are on the same tx then both should rollback. I suspect you
          are not using a tx datasource.
          usha wrote:
          > Hi,
          > I have one ejb(ejb no.1) calling another ejb (ejb no.2) and few other methods
          > having database updation.
          > If any of the method gives an exception then the database changes done by ejb
          > no.2 does not roll back. Why is this happening ..?
          > This is a container managed transaction and have 'Required' transaction isolatin
          > level. I don't have any setrollbackonly as the transaction is started at ejb no.1
          > level.
          >
          > Can anyone answer my question.
          > Can anybody help me about putting
          

Similar Messages

  • Contact Two Datasources in Weblogic 10 in a single transaction

    Hi,
    my requirement is to create two datasource which points to two different schemas of oracle 10 g database.
    In a single transaction i may be in requireemnt of contacting both the datasource to get respective db connection and do a insert/update.
    I created two datasources A and B which use Oracle 9 thin driver.
    When my application starts my app is able to get connection of datasource A and unable to get connection on datasource B. what may be the problem ??
    both uses Oracle non-XA driver with one phase commit;
    Let me know how to connect to two diff datasources in a single transaction.
    Thanks in Advance.
    Sreehari.

    Do you get like any error for second datasource like jndi lookup failed or exactly what do you see error. If I understand your usecase:
    DataSource_1 -> Uses ConnectionPool_1 -> DB Schema_1
    DataSource_2 -> Uses ConnectionPool_2 -> DB Schema_2.
    So in your java application, I guess you are using JNDI Lookup and pass above Datasources unique JNDI names, and get 2 instances. I mean you have like 2 sets of Jndi lookup code to get 2 connection objects. This looks pretty straight forward. Does not matter what drivers you use.
    Are you reusing any objects in your code, like have a single connection object and then close it and try to recycle it for second something like that...If not, check for any errors in the log files.
    Ravi Jegga

  • Is it possible to deploy two different EJBs in one single descriptor file?

    Hi, I'm working with two EJBs I wanna deploy them in one single jar, so my question here is, is it possible to deploy two or more EJBs within the same xml descriptor file?, if so, could you please give me an example of it?, I'm working with Stateless session beans, thanks in advance.

    You can have as many beans in an EJB deployment descriptor as you like - i think, i have not run into a limit yet...
    <ejb-jar>
    <enterprise-beans>
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>BEanOne</display-name>
    etc...
    </session>
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>BeanTwo</display-name>
    etc...
    </session>
    </enterprise-beans>
    </ejb-jar>
    m

  • Multiple db2 instances with informix in a single transaction

    Hi All,
    Can somebody tell how this can be achieved.
    I do have 3 db2 instances in three physical mahines. Within a transaction I will
    only be writing to a one instance but will be retieving data from the other two
    instances. In the same transaction I will be writing to a Informix database as
    well. All the systems are on windows.
    The application server is Weblogic 7.02.
    For DB2 the driver is db2jcc driver which does not support XA transactions. And
    for informix we do use the driver which comes along with the informix installation
    which is a XA supported driver.
    We do have seperate TXDatasources created in the Web logic server and EJBs are
    used in the project.
    As welogic can give the XA features only for one none XA driver. How about implementing
    the above scenario.
    Waiting for a early response.

    Hello Sebastien,
    Thanks for your response!!!
    Let me make it bit more clear.In deploymewnt descriptor,we define jndi name for any resource and do a lookup on that resource from the code.
    Let us consider that resource as JDBC data source for our discussion.usually you define any jdbc data source under a JDBC resource provider.
    So my question is,in a single transaction can you access multiple data sources defines under multiple JDBC resource providers.
    Ex:A datasource "x "defined under resource provider "A"[say DB2 jbdc provider] and a datasource "y" defined under respurce provider "B"[say mysql jdbc provider].
    Thanks

  • Multiple Database access in a single transaction

    Hello All,
    I have read in a book which states that "according to J2ee Specification,a single transaction(an EJB method for example) may not be provided access to multiple JDBC resource providers.."
    Does it mean that i cannot access multiple databases from different vendors in a single EJB transaction??
    Any help is very much appreciated
    Thanks

    Hello Sebastien,
    Thanks for your response!!!
    Let me make it bit more clear.In deploymewnt descriptor,we define jndi name for any resource and do a lookup on that resource from the code.
    Let us consider that resource as JDBC data source for our discussion.usually you define any jdbc data source under a JDBC resource provider.
    So my question is,in a single transaction can you access multiple data sources defines under multiple JDBC resource providers.
    Ex:A datasource "x "defined under resource provider "A"[say DB2 jbdc provider] and a datasource "y" defined under respurce provider "B"[say mysql jdbc provider].
    Thanks

  • Multiple records as a single transaction in JDBC Receiver Adapter

    Hi,
    I am sending multiple records in a single message to a JDBC receiver adapter to get updated to the database. How to make all the insert a single transaction. Like all the records has to be inserted else all has to be rolled back.
    For eg for table Employee two fields EMPNO and EMPNAME
    EMPNO  EMPNAME
    1            Jay
    2            Christie
    These two records are in the same message and has to be updated
    if one fails the other has to be rolled back.
    How can i achieve it using a JDBC Receiver Adapter.
    Thanks
    Sebin

    Hi Rolf Micus,
    My xml structure to insert 2 tables are as follow:-
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_PODB xmlns:ns0="http://abeam.com/xi/fer_filejdbc_scenarios1">
    ..   <STATEMENT_HEADER>
    ....      <ROW action="INSERT">
    ......         <TABLE>ZPO_HEADER</TABLE>
    ......        <access>
    ........            <PONUMBER>001</PONUMBER>
    ........            <PODATE>20070801</PODATE>
    ........            <POAMOUNT>200.99</POAMOUNT>
    ....         </access>
    ....      </ROW>
    ..   </STATEMENT_HEADER>
    ..   <STATEMENT_DETAIL>
    ....      <ROW action="INSERT">
    ......         <TABLE>ZPODETAIL</TABLE>
    ......         <access>
    ........            <PONUMBER>001</PONUMBER>
    ........            <PONO>1</PONO>
    ........            <POITEMCODE>A12345</POITEMCODE>
    ........            <POITEMDESC>Testing A</POITEMDESC>
    ........            <POITEMAMOUNT>2990.00</POITEMAMOUNT>
    ........            <POITEMQTY>55</POITEMQTY>
    ......         </access>
    ....      </ROW>
    ..   </STATEMENT_DETAIL>
    </ns0:MT_PODB>
    Fro the structure that you have declared..there is only contained 1 statement, try to admend your MT to have 2 statements.
    If you wish to insert multiple records, just create a loop/multiple of access tag inside STATEMENT tag. For example, multiple records insert into Header should have multiple access tag in Header STATEMENT. Same goes for muliple records insert into Details STATEMENT should have multiple access tag in Details STATEMENT.
    With this structure, whenever any records insert/update/delete failed...it will rollback all the transactions together, ie. Header and Details.
    PS: For different table, please create different STATEMENT.
    Hope it helps.
    Message was edited by: Pua Ming Fei

  • Making DB updates and sending message to JMS queue enclosed in a single transaction

              using a container managed transactions can we achieve sending a message to the JMS
              queue and updating DB as part of single transaction with the data base driver not
              supporting XA. If yes what all configurations setting I need to do. I tried to achieve
              this using 2PC but I am getting the error that "javax.transaction.xa.XAException:
              JDBC driver does not support XA, hence cannot be a participant in two-phase commit.
              To force this participation, set the enableTwoPhaseCommit property on the corresponding
              JDBCTxDataSourceproperty, to true. Pool = ejbPool".
              

    As far as I know, your only options is to do as the exception you cut-and-pasted below
              states:
              "To force this participation, set the enableTwoPhaseCommit property on the corresponding
              JDBCTxDataSourceproperty, to true. Pool = ejbPool"
              The "enableTwoPhaseCommit" property has definite drawbacks
              see the javadoc and/or documentation for configuring
              a "JDBCTxDataSource".
              This problem is specific to non-XA resources in general, not JMS (which is an XA resource),
              you may wish to get more info by posting to the transaction newsgroup.
              Tom
              Manoj Bansal wrote:
              > using a container managed transactions can we achieve sending a message to the JMS
              > queue and updating DB as part of single transaction with the data base driver not
              > supporting XA. If yes what all configurations setting I need to do. I tried to achieve
              > this using 2PC but I am getting the error that "javax.transaction.xa.XAException:
              > JDBC driver does not support XA, hence cannot be a participant in two-phase commit.
              > To force this participation, set the enableTwoPhaseCommit property on the corresponding
              > JDBCTxDataSourceproperty, to true. Pool = ejbPool".
              

  • Share persistence.xml file between two EJB modules in EAR

    Hello, everybody!
    First of all, I would like to say that I already posted this question in another forum:
    [http://community.jboss.org/thread/154128?tstart=0]
    But as I haven't got any answer from there and this issue is very crucial to me I'm posting it here too in the hope that I get an answer. So, here it goes:
    I have two EJB modules in an EAR module. I would like to know how to share a single persistence.xml file with these two EJB modules. If I replicate the persistence.xml file in the two EJB modules, the EAR project deploys ok, but of course that's not what we want. If I remove the persistence.xml file from any of the EJB projects, the EAR doesn't deploy properly. I'm stuck with this. I've already tried many kind of configurations but none worked. I really would like to have some help with this issue to proceed working. This is my EAR structure:
    solicitacoes-ejb.jar       (EJB session beans)
    solicitacoes-dao.jar       (EJB interfaces)
    solicitacoes-dao-jpa.jar   (EJB session beans)
    solicitacoes-ejbClient.jar (entities and EJB interfaces)
    solicitacoes-web.war
    META-INF/This is my application.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <application
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
    version="5">
        <display-name>solicitacoes-ear</display-name>
        <module>
            <ejb>solicitacoes-ejb.jar</ejb>
        </module>
        <module>
            <ejb>solicitacoes-dao-jpa.jar</ejb>
        </module>
        <module>
            <web>
                <web-uri>solicitacoes-web.war</web-uri>
                <context-root>solicitacoes</context-root>
            </web>
        </module>
    </application>If I remove the persistence.xml file from one of the EJB modules, let's say solicitacoes-dao-jpa.jar, I get this error when deploying the EAR file:
    ... 39 more
    Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'null' in AbstractVFSDeploymentContext@28359170{vfs:///C:/jboss-6.0.0.20100429-M3/server/default/deploy/solicitacoes-ear.ear/solicitacoes-dao-jpa.jar/}
    at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107) [:1.0.2-alpha-1]
    at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:778) [:1.3.1]
    at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1517) [:1.3.1]
    at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:130) [:1.3.1]
    ... 43 moreI need help with this issue. As you could see, the EJB container doesn't like to see an EJB module without a persistence.xml file. This is clearly a dumb decision though. I agree with it if there was only one EJB module in an EAR. But the container should have been smart enough to require only one persistence.xml file in an EAR module with more than one EJB module, and share that persistece context with the whole EAR.
    Acting the way it is acting now, the container forces us to duplicate the persistece.xml file and kill our application modularity. This is clearly wrong. I've already tried to put the entity classes and persistence.xml file in the lib directory of the EAR, but it didn't work either. The container needs to have the persistence.xml file in both EJB modules.
    I don't know if this is a JBoss implementation decision or if it comes from the Java EE 6 specification. Whatever it is, it goes against all good modular and good design decision. Please if some of you know how to solve this, took a little time to tell me how. I would be very grateful.
    Thank you in advance.
    Marcos

    Dear Mr. gimbal2,
    In another occasion I would not reply to such a 'helpful' answer like the one you gave me (yes, it is undoubtedly an answer because that's how you classified it in the beginning of your reply), but as today I have plenty of time here in my job, for this week we're not working full time as usual, I decided to reply to it.
    You have to completely overhaul your attitude.I really didn't know I was taking so personal on this issue to have to 'completely overhaul my attitude'. Thank you for pointing that out.
    In stead of calling the technology dumb, admit to yourself that perhaps you don't understand it properly and that your ideas of what is correct design perhaps is a little lacking. I didn't call the technology dumb because I stated very clearly that I don't know for sure if it is working this way. I said in the last paragraph:
    +"I don't know if this is a JBoss implementation decision or if it comes from the Java EE 6 specification. Whatever it is, it goes against all good modular and good design decision."+
    So, I let implicit the fact that the technology or the implementation of the technology is dumb only if it doesn't allow this possibility. Regarding the fact that your said that I should
    admit to myself that perhaps I don't understand it properly, where did I stated in my question that I understand it completely? It's clear in the last paragraph that I don't. If I'm asking that's because I have doubts. Maybe my ideas of what is correct is wrong, and that's why I'm here in this forum. But everyone with a good sense knows that what I propose in this discussion is by no means a wrong design decision. Where is it a sin to have more than one EJB module in a EAR and a persisntece.xml file shared for the whole EAR? Does everyone that has more than one EJB module in an EAR module need to connect to more than one database? Is it wrong to want to have your DAO implementation in a separate EJB module in order to make deployment easy and also changes, if you later want to replace that implementation with another one without affecting
    the other modules? I don't think that a design decision that seeks this is lacking. I don't think that Java EE today is a dumb technoloby, but everyone knows that before it gets to the present level, it was a technology known to have made big dumb decisions that the community latter corrected, with ideas like O/R mapping (Hibernate), dependency injection (Spring), Struts and lots of other examples that we all know. No one can deny this and lots of wrong things will continue to be fixed in later releases.
    Maybe when you rise yourself back to that level, you open yourself up again to thinking in correct solutions in stead of trying to hammer through your own poorly chosen one.To be sincere, I see you took very personal about this issue. You really shows to be someone that has no respect to other people and you judge them too. I must say that I got surprised by the way you answered my post. I didn't expect to get such sarcastic answer to what I asked. I personally don't act this way. If I can't help a person, I also don't try to ridicularize him.
    Marcos

  • How more than one MDB can be made to run in single transaction

    Hi All,
    I am working on EJB 2.0 with Application server as Websphere 5.0 and Messaging middleware as WebSphere MQ5.3
    I am facing a design issue, I need to use more than one MDB in single transaction unit. Since an MDB can only run in transaction started by itself I am looking for some alternative approach
    The problem in detail is as below:
    Consider there is an MDB M1 listening on Queue Q1
    Bean M1 reads Message (say msg1) from Q1, writes another message into Q2.
    We have a mainframe system which reads message from Q2 does some processes and write it's response into Queue Q3.
    Now we have another MDB M2 in same application server listening on Q3.
    The requirement is if there is any ERROR in message at Q3, transaction started by MDB M1 should be rolled back and hence the message (i.e msg1) should be put back on queue.
    Since trancation started by MDB M1 and M2 are independent I do not have any control to rollback M1 from M2.
    Pls suggest me what alternative approach I can use.

    I think if you are using container managed
    transaction and have set the trans attribute to
    "required" then MDB M-1 and MDB M-2
    should have same container transaction.
    wrong !
    There is never a client transaction context available when a message-driven bean is invoked because a transaction context does not flow with a JMS message. [EJB spec. 2.0 15.4.7]
    Nishant Saini
    Daffodil Software Ltd.
    http://www.daffodilsolutions.com
    Nishant , you should have added this to you'r site:
    Why India ?
    India 's abundant human resources: a bunch of clueless developers !
    :-)

  • Can we call two layouts for a single script?

    Can we call two layouts for a single script?
    Where dow e assign print program to a script?
    in NACE transaction is it possible.......
    Thanks in advance.
    Regards.
    Abhilash.

    Hi Abhilash.
    Greetings for the day.
    U can use one script in diffrent programs.
    Yea u can do it in NACE transaction.
    procedure would b as foloows:-
    1.NACE
    2.Select the apllication
    3.Output types (press tab).
    4.again selet the output type which u require
    5.then press "procedure routines"
    here u can give the program name and fom name.
    plz reward if found helpful.
    regards
    prashant tiwari

  • Single transaction through multiple service objects [Spring]

    Hello.
    I have multiple service objects, while methods in service objects represent use cases.
    If I call the method from the other method in the same service object, then the second (called) method uses the same transaction as the first (caller), because of default propagation REQUIRED is applied.
    .. as is shown in the following pseudo code:
    @Transactional
    public class PersonService {
         private PersonDAO personDAO;
         public void otherMethod() {
         public void savePerson(Person person) {
              otherMethod();
              personDAO.save(person);
    }But I need to call service methods of different service objects, because some use cases use other use cases. I also need all those called methods to be done as a single transaction.
    @Transactional
    public class OrderService {
         private OrderDAO orderDAO;
         public void saveOrder(Person person, Order order) {
              PersonService personService = CONTEXT.getBean("personService");
              personService.savePerson(person);
              orderDAO.save(order);
    }If I do it like that, the new transaction proxy is created and all personService stuff is executed in the new transaction. How to configure @Transactional annotated objects or Spring beans to do all service stuff in single transaction?
    I have Hibernate sessionfactory, DAOs and services beans simply configured in Spring configuration XML, using autowiring and transaction annotation config. I prefer using @transactional annotated service classes, but if I had to use more complex Spring transaction configuration to achieve the goal I won't have any problem with it.
    Thank you in advance.

    I would like it to be done is single transaction but it isn't. As the bean is retrieved from the spring context in OrderService's method
    PersonService personService = CONTEXT.getBean("personService");a new transaction for PersonService is started. So then I have two transactions in progress - one for OrderService and second for PersonService. I need the PersonService (or any other service object) to detect already pending transaction and use that. Not create new (it's own). I use no arguments in @Transactional annotation so default propagation REQUIRED should be used, but it still creates a new transaction for PersonService stuff.
    I'm posting my applicationContext.xml (simplified slightly)
    <beans default-autowire="byType">
         <bean id="dataSource"
              class="org.springframework.jdbc.datasource.DriverManagerDataSource">
         </bean>
         <!-- Hibernate SessionFactory -->
         <bean id="sessionFactory"
              class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
              <property name="dataSource">
                   <ref local="dataSource" />
              </property>
         </bean>
         <bean id="hibernateTxManager"
              class="org.springframework.orm.hibernate3.HibernateTransactionManager">
              <property name="sessionFactory">
                   <ref local="sessionFactory" />
              </property>
         </bean>
         <tx:annotation-driven transaction-manager="hibernateTxManager" />
         <!-- DAOs -->
         <bean id="personDAO" class="net.package.dao.PersonDAO" />
         <bean id="orderDAO" class="net.package.dao.OrderDAO" />
         <!-- Services -->
         <bean id="personService" class="net.package.service.PersonService" />
         <bean id="orderService" class="net.package.service.OrderService" />
    </beans>Thank you

  • How could JNDI differentiate two ejb have same jndi name but on difference

    how could JNDI differentiate two ejb have same jndi name but on difference server
    suppose that:
    we have two J2EE Server those are Server1 and server2, and both of them have a ejb named Test deployed on it, and I need a java client maybe it is a java Application, servlet or ejb in server1 to get the reference to the ejb name Test, how to use JNDI to get the reference to both of them. those two ejb have same name but on difference server. how could the java client locate them?

    You've hit problem #1 in the alleged scalability of EJB containers.
    Basically, the whole setup assumes that you're only dealing with one naming service. The expectation is that a given name is bound to a single object, which in this case is the Home interface.
    Some systems support clustering, which can allow you to get round this, but the details will depend on you EJB container vendor,
    Sylvia.

  • Two script forms for single driver pgm

    Hi all,
    Is it possible to have two script forms for single driver pgm , each for diff output type.If so watz d procedure.Kindly reply.
    Thanks ,
    kavitha

    Hi,
    Yes it is possible to have two or more script forms for a single driver program that forms will be different output types.
    Procedure:-
    1. Create the different layout sets by going se 71 t_code.
    2. Create the driver program related to script by going se38 t_code.
    3. After creating Driver program and Layout inform to the functional people they will configure NACE transaction with ur driver program, script form and output type.
    Reward points if useful.
    Thanks & Regards,
    Vasudeva Rao

  • TWO ERRO ORA-01427: single-row subquery returns more than one row

    Hi,
    I have a procedure which contains a cursor. If i run the select statement in the cursor separetly, it returns only value and works fine. But the same select statement in the cursor of a procedure throws me the error as below:
    TWO ERRO ORA-01427: single-row subquery returns more than one row
    Not sure what going on...any help appreciated.
    Below is the select statement:
    SELECT DISTINCT PSE.PARENT_POSITION_ID,
    (SELECT DISTINCT PPD1.SEGMENT2
    FROM PER_POSITION_DEFINITIONS PPD1,
    HR_ALL_POSITIONS_F HAPF2,
    PER_POS_STRUCTURE_ELEMENTS PSE2
    WHERE TRUNC(SYSDATE) BETWEEN
    HAPF2.EFFECTIVE_START_DATE AND
    HAPF2.EFFECTIVE_END_DATE
    AND PPD1.POSITION_DEFINITION_ID =
    HAPF2.POSITION_DEFINITION_ID
    AND
    HAPF2.POSITION_ID = PSE2.PARENT_POSITION_ID
    AND PSE2.PARENT_POSITION_ID =
    PSE.PARENT_POSITION_ID
    AND ROWNUM = 1) SEGMENT2,
    (SELECT DISTINCT PAPF1.FIRST_NAME || ' ' ||
    PAPF1.LAST_NAME CHIEF_NAME
    FROM PER_ALL_PEOPLE_F PAPF1,
    PER_ALL_ASSIGNMENTS_F PAAF1
    WHERE TRUNC(SYSDATE) BETWEEN
    PAPF1.EFFECTIVE_START_DATE AND
    PAPF1.EFFECTIVE_END_DATE
    AND TRUNC(SYSDATE) BETWEEN
    PAAF1.EFFECTIVE_START_DATE AND
    PAAF1.EFFECTIVE_END_DATE
    AND PAAF1.POSITION_ID = PSE.PARENT_POSITION_ID
    AND PAPF1.PERSON_ID = PAAF1.PERSON_ID
    AND ROWNUM = 1) CHIEF_NAME
    FROM PER_POS_STRUCTURE_ELEMENTS PSE,
    HR_ALL_POSITIONS_F HAPF,
    PER_POSITION_DEFINITIONS PPD
    WHERE PSE.SUBORDINATE_POSITION_ID = 52744
    AND TRUNC(SYSDATE) BETWEEN HAPF.EFFECTIVE_START_DATE AND
    HAPF.EFFECTIVE_END_DATE
    AND HAPF.POSITION_ID = PSE.SUBORDINATE_POSITION_ID
    AND HAPF.POSITION_DEFINITION_ID = PPD.POSITION_DEFINITION_ID;
    Thanks
    PK
    Edited by: user539616 on Jun 30, 2009 6:30 PM

    Hi,
    The cursor has a different parameter? Maybe the query is not exactly the same. Could you check this?
    This is your query (formatted):
    SELECT DISTINCT PSE.PARENT_POSITION_ID,
                    (SELECT DISTINCT PPD1.SEGMENT2
                       FROM PER_POSITION_DEFINITIONS   PPD1,
                            HR_ALL_POSITIONS_F         HAPF2,
                            PER_POS_STRUCTURE_ELEMENTS PSE2
                      WHERE TRUNC(SYSDATE) BETWEEN HAPF2.EFFECTIVE_START_DATE AND
                            HAPF2.EFFECTIVE_END_DATE
                        AND PPD1.POSITION_DEFINITION_ID = HAPF2.POSITION_DEFINITION_ID
                        AND HAPF2.POSITION_ID = PSE2.PARENT_POSITION_ID
                        AND PSE2.PARENT_POSITION_ID = PSE.PARENT_POSITION_ID
                        AND ROWNUM = 1) SEGMENT2,
                    (SELECT DISTINCT PAPF1.FIRST_NAME || ' ' || PAPF1.LAST_NAME CHIEF_NAME
                       FROM PER_ALL_PEOPLE_F      PAPF1,
                            PER_ALL_ASSIGNMENTS_F PAAF1
                      WHERE TRUNC(SYSDATE) BETWEEN PAPF1.EFFECTIVE_START_DATE AND
                            PAPF1.EFFECTIVE_END_DATE
                        AND TRUNC(SYSDATE) BETWEEN PAAF1.EFFECTIVE_START_DATE AND
                            PAAF1.EFFECTIVE_END_DATE
                        AND PAAF1.POSITION_ID = PSE.PARENT_POSITION_ID
                        AND PAPF1.PERSON_ID = PAAF1.PERSON_ID
                        AND ROWNUM = 1) CHIEF_NAME
      FROM PER_POS_STRUCTURE_ELEMENTS PSE,
           HR_ALL_POSITIONS_F         HAPF,
           PER_POSITION_DEFINITIONS   PPD
    WHERE PSE.SUBORDINATE_POSITION_ID = 52744
       AND TRUNC(SYSDATE) BETWEEN HAPF.EFFECTIVE_START_DATE AND HAPF.EFFECTIVE_END_DATE
       AND HAPF.POSITION_ID = PSE.SUBORDINATE_POSITION_ID
       AND HAPF.POSITION_DEFINITION_ID = PPD.POSITION_DEFINITION_ID;Tips: To put formatted code you must use {noformat}{noformat} tags, start tag and end tag are the same,you don't need to put '/' in the close tag.
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Entering multiple scrap accounts in a single transaction

    Hi guys
    Can I enter multiple scrap accounts in OSFM transactions in a single form?
    I hope oracle offers only single a/c for each step.
    This will minimize the data entry effort for me.
    Please suggest any work arounds.
    Regards
    Sreee

    Hello Sebastien,
    Thanks for your response!!!
    Let me make it bit more clear.In deploymewnt descriptor,we define jndi name for any resource and do a lookup on that resource from the code.
    Let us consider that resource as JDBC data source for our discussion.usually you define any jdbc data source under a JDBC resource provider.
    So my question is,in a single transaction can you access multiple data sources defines under multiple JDBC resource providers.
    Ex:A datasource "x "defined under resource provider "A"[say DB2 jbdc provider] and a datasource "y" defined under respurce provider "B"[say mysql jdbc provider].
    Thanks

Maybe you are looking for

  • Vendor Name not appearing in NWDS

    Hi, We have successfully installed and made necessary post-installation steps, configurations in our NWDI system. Product, software unit, Software component were created in the SLD and Name Prefixes were also defined. I have also created users for de

  • Transferring music from iphone to library

    ive just got a macbook pro and dont know how to load the music on my iphone onto the library? please help, thanks

  • Re: Skype number keeps saying busy

    When I tried to call my Skype Number is always busy. I called Microsoft Technical Support, and they said there is no issue! I tried to call again my skype number and still it is busy! I don't know when this issue can be resolved?! Please note that th

  • How to fill out and submit a web form using LabVIEW

    Almighty Forum, This question will require knowledge not only of LabVIEW, but also of HTML, JavaScripting, and possibly more.  I don't know about you, but I have an on-line account for pretty much everything: Bank, Credit Card, Savings, ETrade, 401K,

  • How to display smartform as PDF in web dynpro java

    Hi, Where can I find sample program to display smartform as PDF in web dynpro java. Thanks. Regards, Henry