EJB in ADF BC project

I am currently using JDeveloper 11.1.1.3 with WL 10.3
I have created a fusion project and use the BC extensively. However - I have a lot of code the needs to be run as actions in many screens.
I typically seperate this logic into EJBs to support the application.
BC cannot support more than Validation and simple things related to the database.
I have created the EJB (local interface only) and tested it in the Model - all is well.
I do not want to have seperate projects - it make things very complicated with maintenance and support.
I have created a session bean that I wanted to Inject the EJB into so I can access this from the pages and page fragments.
I have tried the traditional method @EJB EjbName eJBName in the session bean (which is supposedly supported) but get nulls all the time rather than the ejb.
Maybe a missing library?
I have tried creating a data control (but there is no documentaion on how to use this - I have tried several ways - with less than desirous results)
I do not want to complicate this by using web services - there is no need for this application.
There should be no need in manually writing a servlet for every EJB (as the do in 10g examples) as it adds complexity that is not needed in this day and age.
Has anyone done this successfully and are there any examples (straight forward) - I can find many but they are for 10g and rather obscure and none of them really address this issue.
almost all the example are how to use entity beans - which I have no desire to do - and they are quite different from "pure logic" beans.
I have seen comments about the lack of information on this - and I have to agree.
This should really be simple and well documented - I am very suprized.

hi rogerappl
... BC cannot support more than Validation and simple things related to the database. ...Are you referring to ADF Business Components?
Could you post an example of what you need and is not supported?
About your question, I can only refer you to this part of the documentation that might help you
"Oracle® Fusion Middleware Java EE Developer's Guide for Oracle Application Development Framework - 11g Release 1 (11.1.1) - Part Number E16272-01 "
at http://download.oracle.com/docs/cd/E14571_01/web.1111/e16272/toc.htm
regards
Jan Vervecken

Similar Messages

  • Cannot deploy ADF JSF project from JDeveloper 10.1.3.3.0 to AS 10.1.2.0.2

    Hi All,
    I've a small deployment issue which you guys might be able to help me with.
    I've developed an ADF BC JSF project using JHeadstart 10.1.3.2.50 and it was running fine on my self contained OC4J instance. But when I try to deploy it across to my Oracle 10G AS version 10.1.2.0.2., it had the following errors:
    ----- START OF LOG ------
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command redeploy D:\OraHome_3 D:\jdevstudio10133\jdev\mywork\PAM2070C\ViewController\deploy\webapp1.ear webapp1 UNDEFINED
    Command = REDEPLOY
    Reading application's ear file
    Ear file was successfully read
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = c0a8238746b50fc1d5b78e274fcfb38b81a490036726
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=c0a8238746b50fc1d5b78e274fcfb38b81a490036726
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-8)
    #### HTTP return code was -8
    Exit status of DCM servlet client: -8
    Elapsed time for deployment: 18 seconds
    #### Deployment incomplete. #### 15/05/2008 17:00:33
    ---- END OF LOG ----
    Has anyone been able to deploy ADF JSF project with JHeadstart using JDeveloper 10.1.3.3.0 to Oracle 10G AS 10.1.2.0.2? I'm using window environment. Any feedback is much appreciated. Thank you for your assistance and have a nice day.
    Kind Regards,
    John

    Hi all,
    I had also tried out something else...
    I am now portalizing the ADF application using PortalFacesBridge and portlet.xml. Then I deploy it on the Local OC4J of my system and expose it as a WSRP Portlet using the url: 'http://hostname:portname/warFileName/info and generating a WSDL URL...
    I am then using this WSDL URL to regester this portalized application on the Oracle Portal10.1.4 which i am able to accomplish successfully...
    However after regestration, when I try to view this on the portal page, It is throwing the following error:-
    Error: Could not get markup. The cookie or session is invalid or there is a runtime exception.
    Also I would like to add that this method was working perfectly fine previously...
    What might be the clue for this sudden error...
    Any kind of help is greatly appriciated... Thanks...

  • Help needed with Sun Java Studio Creator and EJB in a Portlet Project

    Hi
    I have created an web-application with JSF in Sun Java Studio Creator 2. The web application uses a lot of EJB's which acts as the dataProviders. In a typical jsp page i have more that one data providers(the EJB's) getting used. When i run the project everything opens up properly in the browser and the application seems to be fine.
    But when i create a JSP 168 Portlet project and do exactly the same thing for some reason the Apache Pluto(comes as the default Portlet Container with Studio Creator) conks off.
    Then i started going ahead step by step:
    1. First i created a portletpage and added only one dataProvider(EJB) and ran the project...It gets deployed properly in Pluto and the browser comes up and everything shows up fine.
    2. Just to re-confirm i did the same thing with another dataProvider(EJB). So still we have just 1 EJB in the portlet page. As expected it also worked fiine.
    3. Then when I added more that one dataProviders(EJBs) in the porlet page the Apache Pluto conks off(saying that Pluto is not available)
    I tried doing a lot of things but nothing works...Surprisingly the same thing works when u create a JSF web Application project but the same thing does not work when u create a JSR 168 JSF Portlet Project...
    Did anybody face the same problem..Is it a bug in the Studio Creator...Any help would be highly appreciated.

    Hi,
    There are a few discussion threads in the feedbackprograms portal for Creator 2 EA 2. The URL is:
    https://feedbackprograms.sun.com/login.html
    In the EA discussion forum you will find threads which discuss the concerned topic. In specific look for threads titled:
    # Deploying Portlets
    # Taking a JSC Portlet to Tomcat creates a Faces Mapping Error
    # Problem with Pluto when trying to deploy a portlet
    # Request: JSR-168 Portlet Project without JSF
    We kindly request you to post your further queries related to EA in the above mentioned forum.
    Cheers
    Giri

  • Error while deploying ADF Model Project to OIM 11g R2

    Hi
    I am getting the following error when deploying ADF Model Project in OIM 11g R2
    oracle.jbo.NoDefException:JBO-25058: Definition UsrLastName of type Attribute is not found in UsrLastName
    any inputs is appreciated...thanks in advance....

    See if you can find something helpful in the following links:-
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2329750
    oracle.jbo.NoDefException: Error in Quick Search when we use View  Criteria

  • JDeveloper - ADF Faces projects - calling a jspx from another project

    I have an ADF Faces project which has a jspx file and a backing bean. The jspx file is called 1.jspx and the backing bean is called 1.java. Navigation within the page and outside of the page is controlled by the faces-config.xml.
    However, I want to be able to navigate to another jspx in another project. Let's call this jpx, 2.jspx. How would I be able to make this call without losing the current context in my first project? Please note I do not want to have to copy the 2.jspx and 2.java files into my current project.
    Thanks
    Chris

    Hi,
    according to the JavaEE specs, a J2EE context demarks the scope of a session, which means that as soon as you call out to another application, you start a new session, loosing all the information of the other session. So if you don't want to deploy this all in one application, then you have to find a way of persisting context information (e.g. using a shared database instance)
    Frank

  • Cann't launch the ADF Swing Project

    Hello,
    I have created java-application(swing,adf bc) in Jdev10.1.3, and created the Java Web Start(JNLP) files for the application ,run ant target: sign. it created all files ,build ok.
    but when I run the local.html in the Jdev1013, it open IE window, then I clicke the Launch JClient Link and it asks me to download the local.jsp file or open the file.
    If I download , the file "local.jsp.jnlp" would be saved, if I open, it display beblow:
    <?xml version="1.0" encoding="Big5" ?>
    - <jnlp spec="1.0" codebase="http://127.0.0.1:8991/TestJClient-View-context-root">
    - <information>
    <title>Title</title>
    <vendor>Vendor</vendor>
    <description>My ADF Swing Project</description>
    </information>
    - <security>
    <all-permissions />
    </security>
    - <resources>
    <j2se version="1.3+" />
    <jar href="client.jar" />
    <jar href="mymt.zip" />
    <extension name="common" href="localmt.jsp" />
    </resources>
    <application-desc main-class="test.view.test" />
    </jnlp>
    I review the local.jsp in Jdev1013, find some error "should not exist the element jnlp" about below:
    <?xml version="1.0" encoding="Big5"?>
    <jnlp spec="1.0" codebase="<%= buf.toString() %> ">
    Maybe that is jdev1013 bug.
    Anyone know the reason or how to deal with the error ?
    Thanks

    Hi,
    you are mixing releases here. You start with JClient in JDeveloper 10.1.2 and end up with ADF Swing in 10.1.3. Now what is the release you have the problem with. For 10.1.2 we have a whitepaper explaining how to use Java WebStart. We didn't upgrade this paper for 10.1.3, but I get Web Start deployment working when i tried it last time in JDeveloper 10.1.3.
    Note that no file should be downloaded to teh client and instead the JSP file should be executed to generate the JNLP file
    Frank

  • Adf bc project little bug

    When creating a new adf bc project the name for the project is wrong displayed, a "0" is added to the name.
    Model0 is displayed instead of Model or model depending on the location

    Can you provide more step-by-step instructions of what you are clicking on and doing to reproduce?
    Are you using the New Application dialog? Which application template are you picking?
    Are you generating an application into a directory that might already have had a "Model" directory?
    More specifics please. Thanks.

  • Why not generating adf bc projects and components from offline database

    I imported offline database objects from my production database that is big. I would like designing some business components without necessarily the database running and be connected.
    Is it a reason why an adf bc project may necessarily connect to an on line database ?
    Why it is not possible to generate adf bc components from off line database objects ?

    The ADF BC design time has always required a database connection, to be able to test the validity of expert-mode SQL statement for one reason, but not the only one. We have not lifted that requirement in the 11g release.
    I filed ER# 6056701 to track your request. Thanks.

  • Generating a sequence diagram for an ADF/BC project

    hi folks,
    is there an automatic way to produce a sequence diagram? Read something about debug mode but its not working that way.
    Any help apreciated

    Hi John,
    thanks for the info but the documentation says somewhat about break points, but where to set them isnt mentioned - so nothing gets drawn in the diagram. Any info on that would be appreciated. Do i need several break points and especially where do i set them?
    I was allready wondering how a sequence diagram for an adf/bc project would look like - especially if no beans are involved.

  • Error adding session EJBs set to a project

    I have problem adding a set of session EJBs to my JSC2 project.
    I have deployed an EJB module created with NetBeans 5.0 to Java Application Server 8 embedded in Creator 2 and I would add them to my JSF web application, but when I run the wizard inserting this data:
    EJB Set Name: EjbModule1
    Application Server: Sun Java System Application Server 8.1
    Server Host: localhost
    RMI-IIOP Port: 23700
    Client jar: < the name of the deployed client EJB module >
    and pressing "Next" to go to step 2 I get this error message:
    "A java.lang.reflect.InvocationTargetException exception has occurred ..."
    What is wrong ?
    Can someone help me ? Thanks in advance

    and pressing "Next" to go to step 2 I get this error
    message:
    "A java.lang.reflect.InvocationTargetException
    exception has occurred ..."I once had this error message. Dongmei helped with this, he found that the problem was a Session bean without remote methods (local methods only). Make sure that all of your EJB Session Beans have remote methods.
    Anyway the full error log will be good starting point.
    Best regards
    Antonio.

  • Solutions and/or suggestions for documenting ADF Faces projects

    Hello everybody,
    does anyone have solutions and/or suggestions for documenting ADF Faces projects? For C, C++, C#, PHP and Java projects we use Doxygen, but what to use für ADF Faces projects?
    Thank you in advance for your tips!

    Hello everybody,
    does anyone have solutions and/or suggestions for documenting ADF Faces projects? For C, C++, C#, PHP and Java projects we use Doxygen, but what to use für ADF Faces projects?
    Thank you in advance for your tips!

  • Duplicate class definition error while invoking EJB from ADF project

    Hi,
    I am using Jdeveloper TP3 and facing the following problem.
    I have built an EJB project and am ran them successfully in the embedded OC4J via a standalone java program.
    Now I created another project with ADF capabilities and when I tried to ping the EJB i get the following exception
    The application named, current-workspace-app, could not start due to an error.
    duplicate class definition: javax/faces/context/FacesContextFactory Invalid class: javax.faces.context.FacesContextFactory Loader
    This is happenning due to class conflicts between javaee.jar and trinidad-impl.jar/adf-richclient-impl.jar.
    Is there any way of bypassing this class loader issue?

    Hi,
    actually I didn' try the JNDI lookup but used resource injection instead
    In a JSF managed bean I use
    @EJB Ejb30SessionFacadeLocal myLocalInterface;
    public SortableModel getTableModel() {
    List rows = new ArrayList<Employees>();
    rows = myLocalInterface.queryEmployeesFindAll();
    this.tableModel = new SortableModel(rows);
    return tableModel;
    Its a EJB 3.0 session bean that accesses a Local interface. However, if the remote is on the same server then I would think that using @EJB Ejb30SessionFacadeRemote myRemoteInterface; does similar
    Frank

  • How to use ActionForm validate() method in ADF/Struts project

    Hi
    We are developing a project using ADF/Struts. We are not planning to use entity level validation. Rather we prefer to have it at Struts Form Bean level. So we need to have validate() method in Form Bean.
    That mean we need to have seperate bean for all the actions /jsp. The ADF's DataForm form bean is not gonna work for us. Is that correct.
    Please let me know...am I in the right direction.
    That could be a different discussion why we don't prefer entity level validation

    You can use the Struts validator plug-in (there's a howto on doing that on OTN) and it will handle the basics for you through XML definitions.
    If you want to specifically have a Form bean with a Validate() then the issue is that the current "DataForm" is a generic bean driven of the databinding files, so yes you'd have to write a bean per screen to use instead and loose that benefit of having a universal Bean. (Internally the DataPage and DataActions will respect the ActionForm APIs so you can pluf your own ActionForm subclass in with no problem.
    Plan B might be to leave the DataForm Bean in place and instead override the lifecycle of the datapage, probably in prepareModelUpdates()

  • How do I include javax.ejb.EJB in a Web Project?

    Hi,
    I have set up an application with two projects. One is called EJBModel and the other is UserInterface. In my UserInterface project, I am writing a bean class and I want it to access the controller beans created in EJBModel. I created a private type for the controller bean and used the @EJB annotation. When I try to import javax.ejb.EJB I get an error saying it is not found. Other javax packages popup on the list of available imports, but not ejb. How do I include it in the UserInterface project?
    Thanks in advance...

    Yeah your right...let me further explain what I'm doing.
    I'm creating a web application using the Model-View-Controller design pattern. Model represents data, View represents data display, and Controller is control. I created the EJBModel project in my web app to contain the model aspect. So it has entity objects and beans to access/manipulate the data. Then I created the UserInterface project to store the web interface - mostly jsps. In the UserInterace project, I need a managed bean that calls methods from the beans created in the EJBModel project. I can do this using the @EJB annotation and creating an instance of the class, but since the files are in separate projects that can't see each other and JDeveloper shows an error because it can't find the necessary file. It is best practice to create two projects to keep both elements distinct.
    So I wanted to know the best way to access the files stored in separate projects within the same application.

  • ADF ViewController project failed to deploy

    Starting from last night, I am not able to deploy a simple ADF web app. It used to work over the past two or three days. Is there anyone having the similar issue? How can address this issue? I used JDeveloper to deploy the app to the Oracle Java Cloud Service.
    Here is logs I got.
    May 21, 2013 7:41:15 AM PDT (Warning)
    Message Level     1
    Message     User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.InternalError: oracle/adfinternal/controller/resource/AdfcMessagesArb.()V.
    May 21, 2013 7:41:15 AM PDT (Error)
    Message Level     1
    Message     Failure occurred in the execution of deployment request with ID '1369147271870' for task '354'. Error is: 'weblogic.application.ModuleException: '
    Thanks,
    Chih-Jen

    HI,
    check the sdm deployment log file at your WAS server.
    may be your project is deployed with warning. its same as deployment aborted.
    the log files are available at user->........sdm->log.
    the log generated by NWDI has prefix like NWDI or the hostname of NWDI.
    check it. and also perform the step in above post

Maybe you are looking for

  • How do I use a movie rental credit in iTunes?

    I received, along with thousands of others, a rental credit from The Avengers because of the double foreign translations which appeared at the bottom of the screen. My question is : how can I apply the refund?

  • Considering AppleTV, not enough HDMI ports

    I really want to get an AppleTV, because I've got a boatload of iTunes TV and movie content on my Mac, that I want to watch on my TV. Also, some things like the NHL package and other stuff is kind of cool. But, I've got an HDMI port problem, and I'm

  • RETURNING CLAUSE ERROR

    Hi All, I was trying to use RETURNING CLAUSE into pl/sql process but it gives error as :- "1 error has occurred * ORA-06550: line 12, column 13: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 6, column 3: PL/SQL: SQL Statement igno

  • Unable to activate iMessage on iPhone 6 running on iOS8

    Hi all,     I bought an iPhone 6 recently and am unable to activate iMessage for my number on it. I keep getting blank messages from DM-OPNMKT but finally get a error saying unable to activate iMessage. Please help. I have a 3G plan. And I am on the

  • SMTP Mail Bug?

    I've tried to insert an SMTP mail account into my iPhone, but each time I try to enter data, the phone resets to its main menu. Specifically, when I enter a 'password' for 'outgoing mail', any follow-on touch will cause the phone to return to the mai