EJB3 - JDeveloper vs Eclipse

Hi all,
I have some problems that I couldn't figured it out my own, hope you all can help. and I'm very new to EJB3.
I have two tables Organization and GroupABC. Organization table contained a primary key ORG_ID(Fields : ORG_ID, ORG_NAME) and GroupABC(Fields: ORG_ID, GROUP_ID, GROUP_NAME) table contained 2 primaryKey that is ORG_ID and GROUP_ID. ORG_ID is also a foreignkey for this table as well.
I'm trying to get the GroupABC records. I managed to get GROUP_ID and GROUP_NAME only however failed to get ORG_ID from GroupABC table. It always giving me the first record ORG_ID.
To overcome that problem, I thought of using JDeveloper to avoid wasting time creating entity bean. Therefore, I've created CMP Entity Beans from Tables using JDeveloper wizard, however when I copy the code and plug it into Eclipse, it giving me out problem for example : @Column(name="GROUP_ID", primaryKey=true). The primaryKey attribute giving me error in Eclipse. For eclipse, the EJB3 library is imported from JBoss-4.0.3SP1.
Thanks in advance.

JDeveloper's EJB 3 implementation is based on Toplink. JBoss's EJB 3 implementation is based on Hibernate.

Similar Messages

  • How to develop web application using ejb3.0 with eclipse

    Hi ,
    I am new to ejb3.0 with eclipse. If any one familar that please guide me...
    how to develop web application using ejb3.0 with eclipse.please help me... server jboss4.2.2. database mqsql5.0
    Thanks,

    jsf_VWP5.5.1 wrote:
    I am new to ejb3.0 with eclipse. If any one familar that please guide me...http://help.eclipse.org/help33/index.jsp

  • Jdeveloper vrs eclipse

    hi, i want to know wich ide would you select to work with java and why?
    i need technical reazons. why?

    Having used Eclipse and Netbeans and Rational Application Developer v 6.0 and JDeveloper, I must say I like JDeveloper more simply because of all the features, the power it has. Netbeans 5.5 is extremely simple to use but I cant recommend it to anyone since Beta 2 is goign to be launched in mid July and thus it is not a total production-ready product yet.
    RAD 6.0 has caused me some problems. The updates to the software are around 1.65 gb in weight...which is a lot....and honestly I dont see what benefits it provides more than what most developers need that JDeveloper already provides. IMHO Jdeveloper was much faster and easier in creating web services for example.
    Eclipse 3.2 is absolutely useless until you at least download the JDT and WTP (hope i got the names right) through the Callisto update center. Even then Netbeans 5.5 beats it hands down with featuresets. One thing Netbeans lacks in comparison with Eclipse though are some refactoring and some editor features which are really nice to use in Eclipse. Also Eclipse compiles everytime you hit save and gives you a list of problems it found with potential quick fixes. Also i like the code cleanup feature in Eclipse which is sort of like PMD already integrated into the IDE.
    So far I think though JDeveloper has the right mix of everything. It is free and it works very well and is quite fast. My second favorite has to be Netbeans however...a very close second favorite. It is simply so easy to use.
    Hope that helps.

  • JDeveloper or Eclipse?

    Hello,
    What is the preferred tool for Oracle 10g? The BPEL dev guide seems to focus mostly on the Eclipse BPEL designer. Does this mean JDeveloper will eventually go away?
    Thanks.

    JDeveloper! It will not disappear, it is one of the core tools to develop applications not only BPEL but also ADF Faces, JSF, Jsp, Java, EJB, WebCenter, Portlets, ESB, Business Rules, XML and many more.

  • JDeveloper and Eclipse interfacing through Subversion

    WE have a project on Eclipse. We are using Subversion for source version control. Now I've downloaded JDeveloper 11g and would like to bring the project in it. It means some will use Eclipse whereas I want to use JDeveloper and the central repository is on SVN. Is it possible? If so...please let me know how.
    Thanks
    Rashed

    Hi Rashed and Steve,
    I would suggest a slight alternative to Steve. I would create an application and project in JDEV and check all the code out to it. Then I would add the application and project 'container' files (the .jws and .jpr) to the SVN repository.
    This ensures that the context menu options at the application or project level are enabled.
    I blogged about this a while age: http://susanduncan.blogspot.com/2007/11/at-what-level-should-i-version-my.html
    Also, in JDeveloper 11g Subversion is shipped as part of JDeveloper, whereas in 10g it was an extension as Steve pointed out
    rgds
    Susan

  • Migration from jdeveloper to eclipse

    Did anyone migrate any jdeveloper app to elipse. I need to migrate to eclipse becouse of metric testing but i do now how?

    It sounds like you have the right idea -- you want to import the sources, rather than trying to "convert" an Eclipse project to a JDeveloper project. What do you mean that the EAR import is "not happening"? Did you get errors?
    -- Brian

  • CascadeType.REFRESH does not work? (EJB3, Jdeveloper 10.1.3.0.4)

    Hi,
    We have requirement to at least for some entity bans be able to pick external changes to the database records from the appserver. This is why in 1:M relationships we need to be able to see deleted/added/changed children records for arbitrary parent record.
    For some reason, it does not look like CascadeType.REFRESH annotation works as it should (also tried CascadeType.ALL).
    Can anyone please shed some light on this (i.e whether this is a bug or something we do wrong here).
    Steps to reproduce (full code also provided):
    0.
    create table op_testchild
    chld_id NUMBER(12,0) PRIMARY KEY ,
    chld_par_ref NUMBER(12,0) NOT NULL,
    chld_name VARCHAR2(32) NOT NULL
    create table op_testparent
    par_id NUMBER(12,0) PRIMARY KEY ,
    par_name VARCHAR2(32) NOT NULL
    ALTER TABLE NECMS.op_testchild
    ADD CONSTRAINT FK_op_testchild_1
    FOREIGN KEY (chld_par_ref)
    REFERENCES NECMS.op_testparent(par_id);
    1. Generate entity beans from the two tables.
    Then configure parent bean to aggresively fetch children records:
    @OneToMany(mappedBy="opTestparent" , cascade =
    { CascadeType.REFRESH }, fetch=FetchType.EAGER)
    public Collection<OpTestchild> getOpTestchildCollection()
    return this.opTestchildCollection;
    2.
    Define Session Bean with following two methods (so that both insist on refresh of parent, and cascade to parent hopefully):
    /** <code>select object(o) from OpTestparent o</code> */
    public List<OpTestparent> findAllOpTestparent()
    Query q = em.createNamedQuery("findAllOpTestparent");
    q.setHint("refresh", Boolean.TRUE);
    return q.getResultList();
    /** <code>select object(o) from OpTestparent o</code> */
    public OpTestparent findOpTestparent(Long id)
    OpTestparent parent = em.find(OpTestparent.class, id);
    em.refresh(parent);
    em.refresh(parent);
    return parent;
    2.
    Make some changes to selected tables outside appserver.
    What actually is observed during client invocation is this:
    //In this case external changes to parent record are visible, adds/deletes of children records are visible, but changes to existing records never are:
    List<OpTestparent> parents = sessionEJB.findAllOpTestparent();
    for (OpTestparent p2: parents)
    System.out.println("->>parent: " + p2.getParName());
    List<OpTestchild> children2 =
    new ArrayList(p2.getOpTestchildCollection());
    for (OpTestchild c2: children2)
    System.out.println(c2.getChldName());
    //In this case external changes to parent record are visible, external adds/deletes of children records are visible, but changes to existing records are visible only after invoking findOpTestparent() second time around (?):
    OpTestparent p = sessionEJB.findOpTestparent(1L);
    System.out.println("->>parent: " + p.getParName());
    List<OpTestchild> children =
    new ArrayList(p.getOpTestchildCollection());
    for (OpTestchild c: children)
    System.out.println(c.getChldName());
    The simplest code that will demonstrate the problem:
    ///////////////////////////////////ENTITY 1
    package com.ht.model;
    import java.io.Serializable;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    @Entity
    @NamedQuery(name="findAllOpTestchild", query="select object(o) from OpTestchild o")
    @Table(name="OP_TESTCHILD")
    public class OpTestchild
    implements Serializable
    private static final long serialVersionUID = 1L;
    private Long chldId;
    private String chldName;
    private OpTestparent opTestparent;
    public OpTestchild()
    @Id
    @Column(name="CHLD_ID", nullable=false)
    public Long getChldId()
    return chldId;
    public void setChldId(Long chldId)
    this.chldId = chldId;
    @Column(name="CHLD_NAME", nullable=false)
    public String getChldName()
    return chldName;
    public void setChldName(String chldName)
    this.chldName = chldName;
    @ManyToOne
    @JoinColumn(name="CHLD_PAR_REF", referencedColumnName="OP_TESTPARENT.PAR_ID")
    public OpTestparent getOpTestparent()
    return opTestparent;
    public void setOpTestparent(OpTestparent opTestparent)
    this.opTestparent = opTestparent;
    ///////////////////////////////////ENTITY 2
    package com.ht.model;
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.Collection;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.FetchType;
    import javax.persistence.Id;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    import javax.persistence.Table;
    @Entity
    @NamedQuery(name="findAllOpTestparent", query="select object(o) from OpTestparent o")
    @Table(name="OP_TESTPARENT")
    public class OpTestparent
    implements Serializable
    private static final long serialVersionUID = 1L;
    private Long parId;
    private String parName;
    private Collection<OpTestchild> opTestchildCollection;
    public OpTestparent()
    this.opTestchildCollection = new ArrayList<OpTestchild>();
    @Id
    @Column(name="PAR_ID", nullable=false)
    public Long getParId()
    return parId;
    public void setParId(Long parId)
    this.parId = parId;
    @Column(name="PAR_NAME", nullable=false)
    public String getParName()
    return parName;
    public void setParName(String parName)
    this.parName = parName;
    @OneToMany(mappedBy="opTestparent" , cascade =
    { CascadeType.REFRESH }, fetch=FetchType.EAGER)
    public Collection<OpTestchild> getOpTestchildCollection()
    return this.opTestchildCollection;
    public void setOpTestchildCollection(Collection<OpTestchild> opTestchildCollection)
    this.opTestchildCollection = opTestchildCollection;
    public OpTestchild addOpTestchild(OpTestchild opTestchild)
    getOpTestchildCollection().add(opTestchild);
    opTestchild.setOpTestparent(this);
    return opTestchild;
    public OpTestchild removeOpTestchild(OpTestchild opTestchild)
    getOpTestchildCollection().remove(opTestchild);
    opTestchild.setOpTestparent(null);
    return opTestchild;
    ///////////////////////////////////SESSION BEAN
    package com.ht.model;
    import java.util.List;
    import javax.annotation.Resource;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.Query;
    @Stateless(name="SessionEJB")
    public class SessionEJBBean
    implements SessionEJB, SessionEJBLocal
    @Resource
    private EntityManager em;
    public SessionEJBBean()
    public Object mergeEntity(Object entity)
    return em.merge(entity);
    public Object persistEntity(Object entity)
    em.persist(entity);
    return entity;
    public Object refreshEntity(Object entity)
    em.refresh(entity);
    return entity;
    public void removeEntity(Object entity)
    em.remove(em.merge(entity));
    /** <code>select object(o) from OpTestchild o</code> */
    public List<OpTestchild> findAllOpTestchild()
    return em.createNamedQuery("findAllOpTestchild").getResultList();
    /** <code>select object(o) from OpTestparent o</code> */
    public List<OpTestparent> findAllOpTestparent()
    Query q = em.createNamedQuery("findAllOpTestparent");
    q.setHint("refresh", Boolean.TRUE);
    return q.getResultList();
    /** <code>select object(o) from OpTestparent o</code> */
    public OpTestparent findOpTestparent(Long id)
    OpTestparent parent = em.find(OpTestparent.class, id);
    em.refresh(parent);
    return parent;
    ///////////////////////CLIENT
    package com.ht.model;
    import java.util.ArrayList;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import java.util.List;
    public class SessionEJBClient
    public static void main(String[] args)
    try
    final Context context = getInitialContext();
    SessionEJB sessionEJB = (SessionEJB) context.lookup("SessionEJB");
    OpTestparent p = sessionEJB.findOpTestparent(1L);
    System.out.println("->>parent: " + p.getParName());
    List<OpTestchild> children =
    new ArrayList(p.getOpTestchildCollection());
    for (OpTestchild c: children)
    System.out.println(c.getChldName());
    if (1 == 1)
    return;
    List<OpTestparent> parents = sessionEJB.findAllOpTestparent();
    for (OpTestparent p2: parents)
    System.out.println("->>parent: " + p2.getParName());
    List<OpTestchild> children2 =
    new ArrayList(p2.getOpTestchildCollection());
    for (OpTestchild c2: children2)
    System.out.println(c2.getChldName());
    catch (Exception ex)
    ex.printStackTrace();
    private static Context getInitialContext()
    throws NamingException
    // Get InitialContext for Embedded OC4J
    // The embedded server must be running for lookups to succeed.
    return new InitialContext();
    }

    I use the JDK delivered with JDeveloper which is JDK 1.5.0_06
    if I run [jdev-root]\jdev\bin\jdev.exe, I get some error messages in the console window when I'm doing the do to declaration function. I receive a lot of
    at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
    at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
    at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
    at java.net.URL.openStream(URL.java:1007)
    This pattern is repeated many many times (probably > 100).
    Message was edited by:
    user579938

  • Can JDeveloper deploy a WAR created in another IDE?

    I am developing a web application (set of servlets) that will be packaged as a WAR file and that I want to deploy to our Oracle 10g release 1 application server (9.0.4.2).
    Can I use JDeveloper to deploy the WAR even if I didn't develop the application in JDeveloper? I'm still trying to decide whether to use JDeveloper or Eclipse, and the version of Eclipse I'm using (Europa) doesn't seem to support the OAS version I have.
    I know I could deploy the WAR using the OAS Control, but our server people don't want to give me the ias_admin account details. They don't mind entering those details into JDeveloper while I look the other way though.

    The way that you do the one click deploy from JDeveloper is using a deployment profile.
    So you might need to first create a deployment profile for your code in JDeveloper and then deploy it.
    Try doing New->Projects->Project from WAR file to get your source into JDeveloper.
    Then do New->Deployment Profile->WAR and see if it helps.

  • Eclipse java ide

    Hi,
    I've recently tried switch from JDeveloper to Eclipse. It's taken a while to figure out how to integrate Eclipse with the web server JRun as well as the Struts architecture. Luckily I found Eclipse plug-ins for both. Unfortunately I haven't been able to get the eclipse editor to auto-complete jsp syntax or jakarta tag libraries. Also the eclipse editor won't allow me to set break points inside jsp code. Has anyone experienced the same problems?

    Unfortunately with JRUN you can't step through the jsp code as it is, but you can step through the generated servlet code if you get myeclipse or I think even the Web Tools Platform from the eclipse project lets you do it.
    Im curious what version of eclipse and jrun are you using? Im on Eclipse 3.x and Jrun 3 and can't find a suitable plugin.
    Dejan

  • Autoreplace in JDeveloper

    Hi All,
    Do we have auto-replace in JDeveloper like auto-replace in TOAD and PL/SQL Developer.
    If Yes, please let me know the navigation. I am using JDeveloper 11.1.1.3.0
    Thanks
    gt0990

    Do you mean such similar shortcuts?
    http://ikool.wordpress.com/2008/06/23/jdeveloper-and-eclipse-shortcuts-compared/
    or code templates:
    http://baigsorcl.blogspot.com/2010/04/using-code-templates-in-jdeveloper.html
    NA
    http://nickaiva.blogspot.com
    Edited by: Nick Aiva on Jan 31, 2011 5:16 PM

  • Is it possible to integrate ADF Faces with eclipse

    hi experts,
    i am new to JSF.
    i am using myeclipse IDE5.1 eclipse3.2 and java 1.6
    i want to know how to integrate ADF faces into my JSF....
    i have ADF Faces standalone adf-faces-api-10_1_3_0_4.jar and adf-faces-impl-10_1_3_0_4.jar
    and also include the jsf capabilities
    I dont know the integration in web.xml and faces-config.xml..
    and i dont know the documentation which is given by oracle is for Jdeveloper or eclipse too
    please send the one example with jar integration..
    or send the link of that....

    Ralph,
    Maybe I'm deranged the same way you were, but I have the same problem: I see the logs when the server (OpenPortal portlet Container 2.0 with Glassfish) starts, but after that, no logs are displayed in Eclipse console, and breakpoints are ignored in debug mode.
    What was the issue and how did you fix it ?
    Thanks
    Vincent

  • JSP Preview Mode in JDeveloper 10g

    Is there a way to see a JSP page in preview mode within JDeveloper? Eclipse provides a plugin but I don't see that in JDeveloper, I can see the JSP page in design mode but not in preview mode. Isn't there a way Jdeveloper can preview the jsp page using some inbuild web server or using Jboss etc.

    You can just press run and you'll see the page in a browser window :-)

  • JDeveloper, call graphs

    Hello,
    Im looking for a function or extension for JDev to generate call graphs.
    JDev can show dependencies and usages, so this should be possible but I cannot find it.
    The reason for this is, we want to get some overview of which java code uses which webservice.
    The 'architecture is pretty fixed.
    The code itself is struts with a prepare<page> process<page> for each page
    All webservices are called from a dao.
    So I was hoping a call graph can give me the information I want. Because I refuse to write this kind of information in plain text, it will be outdated in less than a week that way,
    Any help?
    Anton

    Too bad,
    But I guess Jdeveloper like eclipse and other IDE’s builds an AST(Abstract syntax tree) of the source code.
    Is there any way for a plugin to access this AST functionality?
    Because I have been looking on the web but I cannot find a decent AST parser implementation for java.
    It seems eclipse has a very nice one build-in but that doesn’t help me.
    With the hints while typing java code in the editor now in JDeveloper I guess your also using an AST.
    Most parsers like the ones used by Jdepend lack the functionality to even give a foundation to build a AST, and I need an AST for callgraphs.
    If anyone can recommend a free AST tool for java that would also be great.
    -Anton

  • Problem in invoking a BPEL process with complex input

    Hi,
    I have an asynchronous BPEL process which has a complex request schema. When I try to invoke the process through BPEL Console, it works properly. But when invoking it through Java API, it seems that the input soap message is not well received by the process. Here are relevant files:
    *==============-BPEL file==================*
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <process name="MapCopyProject"
    targetNamespace="http://mapcopyservices/"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:taskservice="http://xmlns.oracle.com/bpel/workflow/taskService"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:task="http://xmlns.oracle.com/bpel/workflow/task"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:wfcommon="http://xmlns.oracle.com/bpel/workflow/common"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns4="http://mapcopyservices/"
    xmlns:ns3="http://mapcopyservices/types/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:wf="http://schemas.oracle.com/bpel/extension/workflow">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <partnerLink name="MapCheckService" partnerLinkType="ns4:MapCheckService_PL"
    partnerRole="MapCheckService_Role"/>
    <partnerLink myRole="TotalBPELProcessProvider" name="TotalBPELProcess"
    partnerRole="TotalBPELProcessRequester"
    partnerLinkType="ns4:TotalBPELProcess"/>
    <partnerLink name="MapActionService" partnerRole="MapActionService_Role"
    partnerLinkType="ns4:MapActionService_PL"/>
    </partnerLinks>
    <variables>
    <variable name="ClientInput"
    messageType="ns4:TotalBPELProcessRequestMessage"/>
    <variable name="ClientOutput"
    messageType="ns4:TotalBPELProcessResponseMessage"/>
    <variable name="CheckSourceExistance_Output"
    messageType="ns4:MapCheckService_checkSourceExistanceResponse"/>
    <variable name="CheckSourceExistance_Input"
    messageType="ns4:MapCheckService_checkSourceExistance"/>
    <variable name="GetCoordinateSystemType_Output"
    messageType="ns4:MapCheckService_getCoordinateSystemTypeResponse"/>
    <variable name="GetCoordinateSystemType_Input"
    messageType="ns4:MapCheckService_getCoordinateSystemType"/>
    <variable name="CheckSourceExistance2_Input"
    messageType="ns4:MapCheckService_checkSourceExistance"/>
    <variable name="CheckSourceExistance2_Output"
    messageType="ns4:MapCheckService_checkSourceExistanceResponse"/>
    <variable name="InvokeMapAction_Input"
    messageType="ns4:MapActionService_CopyAndTransform"/>
    <variable name="InvokeMapAction_Output"
    messageType="ns4:MapActionService_CopyAndTransformResponse"/>
    </variables>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <receive name="ReceiveInput" partnerLink="TotalBPELProcess"
    portType="ns4:TotalBPELProcessInvoke" operation="initiate"
    variable="ClientInput" createInstance="yes"/>
    <flow name="Flow_1">
    <sequence name="Sequence_1">
    <assign name="Assign_3">
    <copy>
    <from variable="ClientInput" part="parameters"
    query="/ns3:TotalBPELProcessRequest/ns3:destConn"/>
    <to variable="CheckSourceExistance2_Input" part="parameters"
    query="/ns3:checkSourceExistanceElement/ns3:MapConnection_1"/>
    </copy>
    </assign>
    <invoke name="Invoke_CheckSource2" partnerLink="MapCheckService"
    portType="ns4:MapCheckService" operation="checkSourceExistance"
    inputVariable="CheckSourceExistance2_Input"
    outputVariable="CheckSourceExistance2_Output"/>
    </sequence>
    <sequence name="Sequence_1">
    <assign name="Assign_1">
    <copy>
    <from variable="ClientInput" part="parameters"
    query="/ns3:TotalBPELProcessRequest/ns3:sourceConn"/>
    <to variable="CheckSourceExistance_Input" part="parameters"
    query="/ns3:checkSourceExistanceElement/ns3:MapConnection_1"/>
    </copy>
    </assign>
    <invoke name="Invoke_CheckSource" partnerLink="MapCheckService"
    portType="ns4:MapCheckService" operation="checkSourceExistance"
    inputVariable="CheckSourceExistance_Input"
    outputVariable="CheckSourceExistance_Output"/>
    </sequence>
    </flow>
    <switch name="CheckSourceAndDest">
    <case condition="string(bpws:getVariableData('CheckSourceExistance_Output','parameters','/ns3:checkSourceExistanceResponseElement/ns3:result'))='true' and string(bpws:getVariableData('CheckSourceExistance2_Output','parameters','/ns3:checkSourceExistanceResponseElement/ns3:result'))='true'">
    <empty name="Empty_1"/>
    </case>
    <otherwise>
    <terminate name="Terminate_1"/>
    </otherwise>
    </switch>
    <assign name="Assign_4">
    <copy>
    <from variable="ClientInput" part="parameters"
    query="/ns3:TotalBPELProcessRequest/ns3:sourceConn"/>
    <to variable="GetCoordinateSystemType_Input" part="parameters"
    query="/ns3:getCoordinateSystemTypeElement/ns3:MapConnection_1"/>
    </copy>
    </assign>
    <invoke name="Invoke_GetCoSysType" partnerLink="MapCheckService"
    portType="ns4:MapCheckService" operation="getCoordinateSystemType"
    inputVariable="GetCoordinateSystemType_Input"
    outputVariable="GetCoordinateSystemType_Output"/>
    <switch name="CheckPossibility">
    <case condition="number(bpws:getVariableData('GetCoordinateSystemType_Output','parameters','/ns3:getCoordinateSystemTypeResponseElement/ns3:result'))=number(bpws:getVariableData('ClientInput','parameters','/ns3:TotalBPELProcessRequest/ns3:transformMapType'))">
    <empty name="Empty_2"/>
    </case>
    <otherwise>
    <terminate name="Terminate_2"/>
    </otherwise>
    </switch>
    <assign name="Assign_7">
    <copy>
    <from variable="ClientInput" part="parameters"
    query="/ns3:TotalBPELProcessRequest/ns3:sourceConn"/>
    <to variable="InvokeMapAction_Input" part="parameters"
    query="/ns3:CopyAndTransformElement/ns3:sourceConn"/>
    </copy>
    <copy>
    <from variable="ClientInput" part="parameters"
    query="/ns3:TotalBPELProcessRequest/ns3:destConn"/>
    <to variable="InvokeMapAction_Input" part="parameters"
    query="/ns3:CopyAndTransformElement/ns3:destConn"/>
    </copy>
    <copy>
    <from variable="ClientInput" part="parameters"
    query="/ns3:TotalBPELProcessRequest/ns3:transformMapType"/>
    <to variable="InvokeMapAction_Input" part="parameters"
    query="/ns3:CopyAndTransformElement/ns3:transformMapType"/>
    </copy>
    </assign>
    <invoke name="Invoke_MapAction" partnerLink="MapActionService"
    portType="ns4:MapActionService" operation="CopyAndTransform"
    inputVariable="InvokeMapAction_Input"
    outputVariable="InvokeMapAction_Output"/>
    <assign name="Assign_6">
    <copy>
    <from variable="InvokeMapAction_Output" part="parameters"
    query="/ns3:CopyAndTransformResponseElement/ns3:result"/>
    <to variable="ClientOutput" part="parameters"
    query="/ns3:TotalBPELProcessResponse/ns3:result"/>
    </copy>
    </assign>
    <invoke name="Invoke_CallBack" partnerLink="TotalBPELProcess"
    portType="ns4:TotalBPELProcessCallback" operation="onResult"
    inputVariable="ClientOutput"/>
    </sequence>
    </process>
    *==================WSDL file of process invoke port================*
    <definitions
    name="TotalBPELProcess"
    targetNamespace="http://mapcopyservices/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://mapcopyservices/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:tns0="http://mapcopyservices/types/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mapcopyservices/types/"
    elementFormDefault="qualified" xmlns:tns="http://mapcopyservices/types/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
    <complexType name="MapConnection">
    <sequence>
    <element name="layerName" type="string" nillable="true"/>
    <element name="connString" type="string" nillable="true"/>
    <element name="mapType" type="int"/>
    </sequence>
    </complexType>
    <element name="TotalBPELProcessRequest">
    <complexType>
    <sequence>
    <element name="sourceConn" type="tns:MapConnection" nillable="true"/>
    <element name="destConn" type="tns:MapConnection" nillable="true"/>
    <element name="transformMapType" type="int"/>
    </sequence>
    </complexType>
    </element>
    <element name="TotalBPELProcessResponse">
    <complexType>
    <sequence>
    <element name="result" type="int"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="TotalBPELProcessRequestMessage">
    <part name="parameters" element="tns0:TotalBPELProcessRequest"/>
    </message>
    <message name="TotalBPELProcessResponseMessage">
    <part name="parameters" element="tns0:TotalBPELProcessResponse"/>
    </message>
         <portType name="TotalBPELProcessInvoke">
              <operation name="initiate">
                   <input message="tns:TotalBPELProcessRequestMessage"/>
              </operation>
         </portType>
         <!-- portType implemented by the requester of BPELProcess1 BPEL process
         for asynchronous callback purposes
         -->
         <portType name="TotalBPELProcessCallback">
              <operation name="onResult">
                   <input message="tns:TotalBPELProcessResponseMessage"/>
              </operation>
         </portType>
         <plnk:partnerLinkType name="TotalBPELProcess">
              <plnk:role name="TotalBPELProcessProvider">
                   <plnk:portType name="tns:TotalBPELProcessInvoke"/>
              </plnk:role>
              <plnk:role name="TotalBPELProcessRequester">
                   <plnk:portType name="tns:TotalBPELProcessCallback"/>
              </plnk:role>
         </plnk:partnerLinkType>
    </definitions>
    *===================JSP invoking file=====================*
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@page import="java.util.Map" %>
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
    <%@page import="java.util.*" %>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.naming.NamingException" %>
    <%@ page import="javax.rmi.PortableRemoteObject" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>CopyMap</title>
    </head>
    <body>
         <%
    try{
         String xml =
    "<ns100:TotalBPELProcessRequest xmlns:ns100=\"http://mapcopyservices/types/\">"+
    "<ns100:sourceConn>"+
    "<ns100:layerName>1</ns100:layerName>"+
    "<ns100:connString>1</ns100:connString>"+
    "<ns100:mapType>1</ns100:mapType>"+
    "</ns100:sourceConn>"+
    "<ns100:destConn>"+
    "<ns100:layerName>1</ns100:layerName>"+
    "<ns100:connString>1</ns100:connString>"+
    "<ns100:mapType>1</ns100:mapType>"+
    "</ns100:destConn>"+
    "<ns100:transformMapType>1</ns100:transformMapType>"+
    "</ns100:TotalBPELProcessRequest>";
    Hashtable jndi = new Hashtable();
    jndi.put(Context.PROVIDER_URL, "opmn:ormi://amir:6003:oc4j_soa/orabpel");
    jndi.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    jndi.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
    jndi.put(Context.SECURITY_CREDENTIALS, "as123456");
    Locator locator = new Locator("default","as123456",jndi);
         IDeliveryService deliveryService =
              (IDeliveryService)locator.lookupService
              (IDeliveryService.SERVICE_NAME );
         NormalizedMessage nm = new NormalizedMessage( );
         nm.addPart("payload", xml );
    deliveryService.post("MapCopyProject", "initiate", nm);
         out.println( "BPELProcess MapCopyProject initiated!<br>" );
    catch(Exception ex){
    out.println(ex.getMessage());
    ex.printStackTrace();
         %>
    </body>
    </html>
    *===================================*
    Error occurs in first assign activity like this:
    *=========*
    Error in evaluate <from> expression at line "97". The result is empty for the XPath expression : "/ns3:TotalBPELProcessRequest/ns3:sourceConn".
    *=========*
    Please tell me if you know how to solve it. Thanks

    It sounds very much like a namespace issue.
    As it works from the BPELConsole, fill in the values in the BPELConsole initiate page and switch from the HTML to the XML view. Copy the XML to Notepad or another suitable editor; then insert it as fixed values into the Java/JSP code and try to call the server with the hardcoded payload instead of the one you are generating.
    You can also save the payload in the JSP (write it to a file or standard output) before the call; then open it in jDeveloper or Eclipse and validate it against the schema. That way you will find if the XML is invalid.
    Also, check the flow in the BPELConsole. As it fails on an XPath expression you must have a process. If you click on the receive activity you can see the received payload. Again, copy that to jDeveloper or Eclipse and validate it. Also compare it to the XML you get if you initiate the process manuallly. There must be some difference.
    If you still can't get it to work, post the XML from the initiate operation and from the JSP operation (as they are seen in the receive activity) and we can help you check them out!

  • Connecting ADF BC view object w/ param to a JSF Table?

    I'm brand new to JDev so this is probably an easy one, I'm still trying to grasp some of the concepts: I have created an application module that has one view object containing a simple parameterized query (page is a simple search form - user enters keywords - I pass keywords to database and return results.) This Data Control shows up in the Data Control Palette and I am able to associate this with a table on the JSF page. Where I'm struggling is how / where do I tell JDev to bind the query parameter? In the examples from the help files, they show in the Data Control Palette a method with parameters. My Data Control Panel just shows the application module labeled as a Data Control with no parameters? In the Application Module (where I have defined the parameterized SQL stmt), in the Client Interface menu item, there are no methods available. Do I need to create the method even if I don't want to override the default functionality? Any help appreciated.
    Also, many of the tutorial and examples look like they use the EJB/Toplink approach - are there good examples or tutorial for using ADF BC and ADF Faces?
    Thanks. BTW - this product looks awesome so far! I was using myEclipse - this product is light years ahead.

    This new 10.1.3-production JSF/ADFBC tutorial covers a lot of ground and includes an example of building the search page that you're trying to build, too :-)
    http://otn.oracle.com/obe/obe1013jdev/masterdetail_adf_bc/master-detail_pagewith_adf_bc.htm
    The trick is noticing that a View Object with named bind parameters includes an additional built-in operation in its "Operations" folder called ExecuteWithParams. Dropping this operation onto your page gives you the choice of creating a "Parameter Form" for your VO's bind variables. If you then drop the VO as a readonly table to the same page and run the page, you are done. :-)
    Try to do that in Eclipse in two drag-drop operations! ;-)
    It warms my heart to hear you say that about JDeveloper versus Eclipse... Really makes my day!

Maybe you are looking for

  • IPad mini sound is staticky

    My boys iPad mini sound isn't clear and has static like noise

  • Using forms6i and reading data from MS SQL server 7

    Hi! I have been given a new task to connect to Microsoft SQL SERVER 7 with Oracle 6/6i development with ODBC and extract specific data. I am realy stuck with this I hope some one will help me with this as soon as possible. thanka

  • SharePoint 2010 Dataview webpart in Datasheet view

    Is it possible to display a Dataview webpart in Datasheet view? To be more precise,I am using Dataview webpart to display a XML file data(using XML file connection in SPD).I would like to know if i can display this data using Datasheet view from the

  • Checkpoint not complete & more online redo groups

    Hi When i doing a import i found in alert log checkpoint not complete.I am planning to add 2 more groups.TO add online redolog groups & and to take affect in database,whether we need to shutdown the database and restart again. If i have to shutdown t

  • PHOTO EDITOR NOKIA 500 BELLE

    Hi i have a NOKIA 500 BELLE and in my app PHOTO EDITOR i have hundreds of photos i dont want and its taking up alot of memory is there anyway to delet thoes photos?