OC4J EJBQL and EJB 2.0 features

Hello Debu Panda and All
I've got all howtos and I mangaged to get some parts of OC4J [Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020323.1689)] working.
There are still some issues that are stalling our development. Could you please comment on them, maybe providing an estimate of when they will be solved/implemented?
First of all, a little background. Our application uses many Java Swing application clients that connect to the EAR application in the container.
The ear application has the following structure:
All database access (Oracle 8i, located in its own server) is done exclusively by means of CMP entity beans. A entity bean may access other entity beans. There are workflow session beans (stateful and stateless) that access the entity beans. All clients see only the workflow session beans (session beans fagade).
Our applicatoin is complex, having more than 80 session beans and more than 25 entity beans (not counting entity beans that exist only to represent relationships among entity beans).
There goes the questions:
1) It seems that entity beans cannot currently be referenced by remote interfaces. We couldn't deploy our application using it. Since we could use only local interfaces fot entity beans, thats what is been done now.
2) There is no CMR supported. Is this true?
3) EJBQL seems to be very limited. In the howto examples there are EJBQL statements that compare two numbers. However, when we tried to use String comparisons, it didn't work. Here is the statement:
"SELECT DISTINCT OBJECT(p) FROM Person p WHERE p.name = ?1"
If I compile, package and deploy the ear applicatin with the above EJBQL statement, OC4J generates an exception when executing the finder method. The exception is:
"java.rmi.NoSuchObjectException: Session has timed out
at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisat
ception(StatefulSessionEJBObject.java:188)
at Cad023Remote_StatefulSessionBeanWrapper0.obterPessoasPorParteNom
023Remote_StatefulSessionBeanWrapper0.java:754)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:8
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)"
If I remove the where clause, the expection is gone. However, I get all records. ;-)
4) It seems that all EJBQL clauses must be capitalized. Is this true?
FINALY)
Is there a newer OC4J build that could use to get the development going? Do you know where there will be one? Is there any way of contacting the OC4J development team to report bugs?
If you would like, we could discuss it in private e-mail (please use my private mail [email protected]).
Thanks for your attention,
Luis Fernando Soeiro
Hi !! OC4J 9.0.3 developer's preview has most features of EJB 2.0. We are working on updating on our docs and samples for EJB 2.0
Please look at the following URL that has some How Tos on EJB 2.0 features such Local Interfacea, EJB QL, etc : http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-how-to.html#ejb
regards
Debu Panda
Oracle --------------------------
Luis Soeiro <mailto:[email protected]> <mailto:[email protected]>Type : Question Date : Apr 11, 2002 15:15 PT Hello
Some colleagues and I are trying to port a large project from JBOSS to OC4J. We used JBOSS 3.0 (beta) in order to evaluate EJB2.0 features and see if we could use it. We already have OC4J in production, but only as a JSP/Servlet container. The next step would be to deploy our EJB application to OC4J.
We have read the material and it is written that OC4J (developers preview) is EJB 2.0 compliant. However, the specific documentation and the examples don't show how to specify OC4J specifc XML files. We absolutely need CMR and Local Interfaces, because we don't have the time required to downgrade our JBoss EJB2.0 application to the EJB 1.1 specification. We have over 80 Session Beans and over 20 Entity Beans.
Is there anybody there that can confirm that OC4J developer's preview is really EJB2.0 compliant? If so, could you send me some pointers to information about OC4J container specifc deployment descriptors? The docs listed at the web site don't have EJB2.0 features listed, nor does the Oracle samples.
Thanks for your attention,
desperately,
Luis Fernando Soeiro

HI,
I worked out CMR and EJB-QL with single bean.
Using CMR, it is possible to get one bean reference through other bean, but
When I tried EJB-QL with bean to bean navigation then I run into problem.

Similar Messages

  • OC4J 9.0.3 and EJB 1.1 deployments???

    I can not deploy my ejb1.1 beans on 9.0.3 container.
    OC4J crashes with an XML parse error as a null pointer exception.
    If I remove my O-R mappings from my orion-ejb-jar.xml file, the container starts up ok (app wont run as it needs the mappings)
    9.0.3 docs claim I should be able to use my 1.1 ejb in this ejb 2.0 container.
    Solaris release notes for 9.0.3 claim I must migrate to ejb2.0
    Someone else posted this same question but got no replies.
    Anyone else deployed ejb1.1 with OR mappings in 9.0.3 successfully yet?
    thanks

    I have tried migrating to an ejb2.0 set of beans and ejb-jar.xml file.
    With no <query> tags installed for my finders I notice that a typical finder produces this:
    <!-- Generated SQL: "select Isp.isp_Id from Isp -->
    This is vastly different from the 1.1 orion-ejb-jar.xml which would list ALL column names in the finder - hence how am I going to do a findAll? The currently generated sql is way off. Deployment of the "ormap" demo also shows a lack of column names in the generated SQL finder methods in orion-ejb-jar.xml.
    Further, as soon as I introduce the query in the 2.0 version of ejb-jar.xml, the container dies with a null pointer exception. Removing this from the ejb-jar and bean deploys. Useless, cause theres no finders though.
    Also, attempts to add to the <finder-method query=...> tag yield container crashes with null pointers too.
    This is not very robust to say the least. Can you provide names of jar files that would cause such exceptions?
    When NO query tag is inserted in the ejb-jar file, attempts to run a sample client using findByPrimaryKey return successfully but use of findAll causes timeouts similar to whats described in
    "finders giving "timeout expired waiting for an instance" after 0, 1, or 2 calls" in this same forum.
    Heres the query out of the ejb-jar.xml file...
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>
    SELECT OBJECT(o) from IspTb o
    </ejb-ql>
    </query>
    IspTb is the <abstract-schema-name> Tables exist in db.
    The full error...which prevents deployment of the ejbs and hence no rewrite of the orion-ejb-jar file.
    =========
    10/23/02 1:54 PM: javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
    10/23/02 1:54 PM: java.lang.NullPointerException
    10/23/02 1:54 PM: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    10/23/02 1:54 PM: at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
    10/23/02 1:54 PM: at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
    10/23/02 1:54 PM: at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
    10/23/02 1:54 PM: at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
    10/23/02 1:54 PM: at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.getClass(PersistenceDescriptor.java:767)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.getStateClass(PersistenceDescriptor.java:753)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.getCMPFieldType(PersistenceDescriptor.java:1302)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.initializeFieldInfo(PersistenceDescriptor.java:1052)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.getPersistentFieldInfo(PersistenceDescriptor.java:805)
    10/23/02 1:54 PM: at com.sun.ejb.sqlgen.SQLGenerator.<init>(SQLGenerator.java:151)
    10/23/02 1:54 PM: at com.sun.ejb.sqlgen.SQLGenerator.generateSQL(SQLGenerator.java:360)
    10/23/02 1:54 PM: at com.sun.ejb.sqlgen.SQLGenerator.generateSQL(SQLGenerator.java:309)
    10/23/02 1:54 PM: at com.evermind.server.ejb.deployment.EJBPackage.translateEjbqlQeries(EJBPackage.java:2100)
    10/23/02 1:54 PM: at com.evermind.server.ejb.compilation.Compilation.translateEjbqlQeries(Compilation.java:140)
    10/23/02 1:54 PM: at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:178)
    10/23/02 1:54 PM: at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:551)
    10/23/02 1:54 PM: at com.evermind.server.Application.postInit(Application.java:431)
    10/23/02 1:54 PM: at com.evermind.server.Application.setConfig(Application.java:136)
    10/23/02 1:54 PM: at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1635)
    10/23/02 1:54 PM: at com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1585)
    10/23/02 1:54 PM: at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1240)
    10/23/02 1:54 PM: at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
    10/23/02 1:54 PM: at java.lang.Thread.run(Thread.java:479)
    10/23/02 1:54 PM: javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.getClass(PersistenceDescriptor.java:770)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.getStateClass(PersistenceDescriptor.java:753)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.getCMPFieldType(PersistenceDescriptor.java:1302)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.initializeFieldInfo(PersistenceDescriptor.java:1052)
    10/23/02 1:54 PM: at com.sun.enterprise.deployment.PersistenceDescriptor.getPersistentFieldInfo(PersistenceDescriptor.java:805)
    10/23/02 1:54 PM: at com.sun.ejb.sqlgen.SQLGenerator.<init>(SQLGenerator.java:151)
    10/23/02 1:54 PM: at com.sun.ejb.sqlgen.SQLGenerator.generateSQL(SQLGenerator.java:360)
    10/23/02 1:54 PM: at com.sun.ejb.sqlgen.SQLGenerator.generateSQL(SQLGenerator.java:309)
    10/23/02 1:54 PM: at com.evermind.server.ejb.deployment.EJBPackage.translateEjbqlQeries(EJBPackage.java:2100)
    10/23/02 1:54 PM: at com.evermind.server.ejb.compilation.Compilation.translateEjbqlQeries(Compilation.java:140)
    10/23/02 1:54 PM: at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:178)
    10/23/02 1:54 PM: at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:551)
    10/23/02 1:54 PM: at com.evermind.server.Application.postInit(Application.java:431)
    10/23/02 1:54 PM: at com.evermind.server.Application.setConfig(Application.java:136)
    10/23/02 1:54 PM: at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1635)
    10/23/02 1:54 PM: at com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1585)
    10/23/02 1:54 PM: at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1240)
    10/23/02 1:54 PM: at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
    10/23/02 1:54 PM: at java.lang.Thread.run(Thread.java:479)

  • JDev 10g and EJB 2.0 on non-OC4J server

    It looks like JDev 10g only supports EJB 2.0 for OC4J out-of-the-box. Is this correct?
    If we wanted to generate EJB 2.0 CMP entity beans etc to deploy to a non-OC4J app server (e.g. JBoss) using JDev 10g, what would we need to do? Are there any tutorials/how-to's available?
    As a newbie to JDeveloper and J2EE, trying to work out how to re-write our Forms system in J2EE, I have to say I'm getting tired of how most of the JDev documentation - and much of the software - only seems to relate to using OC4J (or 9iAS) as your app server. If we and our customers wanted to be restricted an Oracle app server, we could just stick with Forms 9i and save ourselves a world of Java pain.
    Plus, nearly all the 10g client documentation relates to JSP clients, but we want a rich GUI using Swing (JClient would be useful but we can't figure out how to deploy it 3-tier to JBoss).
    So, Oracle, how about giving your users some more documentation on how to use JDev10g/JClient/ADF/EJB 2.0 etc with non-OC4J servers and perhaps even without JSP?
    I am sure that JDev10g and ADF could offer us a great deal of help in building our system, if only we could figure out how to use it.
    Thanks,
    Chris

    Thanks, Deepak.
    But the how-to is for old versions of JDev/JBoss:
    "This document was written for Oracle9i JDeveloper Release Candidate and JBoss 2.4.4 (Dated December 29, 2001), although other versions of Oracle9i JDeveloper and/or JBoss should behave the same."
    I'll let you know if this works with JDev 10g and JBoss 3.2.3, but I have my doubts.
    If anybody has some more recent information on this, please let me know!
    Chris

  • Any documentation on EJB 2.0 features wrt OC4J?

    Is it my imagination, or is there no information in the documentation set that describes, or even demonstrates, any of the EJB 2.0 features? A simple search for "EJBLocalHome" found no occurrences, but a search for "EJBHome" found several occurrences in the documentation.

    OTN has a series of tutorials that use the Financial Brokerage Service (FBS) sample application to demonstrate programming techniques that take advantage of features defined in the J2EE and EJB 2.0 specifications. While describing parts of the larger application, each tutorial is self-contained, and each explains how to use a technique or perform a task.
    Topics include local interfaces, CMP, CMR, and EJB Query Language.
    The URL is:
    http://otn.oracle.com/sample_code/tutorials/fbs/fbstoc.htm

  • JDO 2 and EJB 3

    I saw the letter posted on JavaLobby
    (http://www.javalobby.org/thread.jspa?forumID=61&threadID=14630&start=0&mode=flat)
    about the JDO and EJB working groups working together and think that's
    great. I think a unified persistence API will be a huge win for the Java
    community.
    Here is my question/comment to the Solarmetric people on the JDO board:
    What is the impact this has on JDO 2.0 and it's timeline? With Kodo 3.2.0
    being on RC2 and having JDO 2.0 "preview" features, I had been hoping that
    JDO 2.0 was going to be released soon. If JDO 2.0 is going to have to be
    re-worked to work with (or be?) the EJB 3.0 persistence system, I would
    assume that it will be a lengthy process and will have to push back the
    release of JDO 2.0. After all, there are large differences between the way
    the two specs handle persistence, and even with the new-found sence of
    friendship, there is likely to be grounds for arguement.
    The problem with pushing back the JDO 2.0 release, is that it increases the
    amount of time that users of JDO have to choose between the 1.0 spec or
    using "preview" releases of 2.0 which SEEM to follow a spec, but really
    leads to vendor lock-in. If we use the JDO 2.0 features in Kodo 3.2.0, we
    have to stay with Kodo since no other vendor supports their particular
    version of the preview spec, and who knows if the post-EJB actual JDO 2.0
    spec will differ significantly enough that Kodo will be forced to keep the
    old "preview" 2.0 features simply as vendor-specific APIs. If we aren't
    coding to a standard, why not just use Hibernate?
    I would suggest considering how the unified persistence framework will
    impact JDO, then make educated guesses as to how the JDO and EJB will come
    together in order to make nessisary changes to the JDO 2.0 spec that will
    help--but not significantly impact the JDO 2.0 timeline. Then, create a new
    JSR for JDO 3.0 which will be able to work within the timeframe of the
    EJB/J2EE spec timeframe. An added bonus would be the fact that EJB and JDO
    would have the same version numbers which may help some people's confusion
    (any little bit helps)
    Thanks,
    Nathan

    Hi everybody,
    I'm glad to hear some more pessimistic comments on TSS about the new plans
    of SUN and the future of JDO/EJB.
    My opinion about the "evolution" of persistence I have already mentioned
    here:
    http://theserverside.com/news/thread.tss?thread_id=28995#139908
    http://theserverside.com/news/thread.tss?thread_id=28995#139903
    I must admit that when KODO 3.2.0 RC2 was released I was a little bit
    confused and suspicious about the new "Single String JDOQL".
    The new syntax reminded me on the syntax of HQL and EJBQL.
    I think that was a sign ...
    If you compare the drafts of EJB 3.0 and JDO2 there were many common
    concepts. But I think JDO2 has really more features which help you to
    optimize the database access in the domain layer.
    So the only think I wanted to know in which direction will the new JSR 220
    go and will it support all the features of JDO2.
    I think it can't since the new persistence will be part of J2SE and also
    the new JSR is lead by the EJB lobby.
    And especially I'm interested in how KODO will look like. KODO is very
    good product with a plenty of features.
    But how will KODO look like in 2 years. Which API's will be supported ?.
    And how will an enterprise O/R mapping tool like KODO with support of
    distributed cache,... fit in the new persistence API that will be part of
    J2SE. Or will two version exists, one for J2SE and one for J2EE.
    So think of a big project in which you have to realize a big domain layer.
    Which persistence technology/API should you use in the next two years ?
    I'm looking forward to the Q & A and hope that they will make everything
    clearer ?
    Thanks,
    Matthias
    Alex Roytman wrote:
    Hi Patrick,
    Any comments?
    http://theserverside.com/news/thread.tss?thread_id=28995#139905
    http://theserverside.com/news/thread.tss?thread_id=28995#139908
    http://theserverside.com/news/thread.tss?thread_id=28995#139912
    Thanks
    Alex
    "Patrick Linskey" <[email protected]> wrote in message
    news:[email protected]...
    Alex Roytman wrote:
    If I understood Sun announcment, there will be no JDO2 - just maintenance
    for JDO1 and some JDQL enhancements. So whatever JDO2 features are
    implemented by vendors might be a dead-end since evolution of JDO2 is
    not in plansSun's press announcements to date (or at least, as of five hours ago) were
    relatively vague. According to my knowledge, JDO2 will continue pretty
    much as planned, except that the JDO2 team will work on ensuring that a
    few pieces of the JDO2 puzzle can be easily reused by the new team working
    under the auspices of JSR220 as well.
    Hopefully, Sun's FAQ will make these issues clear. Sun had intended to
    release the FAQ today along with the announcement, but things got delayed,
    basically for logistical reasons from what I understand.
    -Patrick

  • Oc4j, jdeveloper and apache, port conflicts ?

    Hi all,
    I am currently in the process of deploying my first EJB on Oracle 9i AS.
    I have successfully installed oc4j.zip and set the login credentials.
    I am however, unable to connect to the index page of the OC4J server from any computer besides the server.
    My URL is http://prams_nt_03:6666 and this works on the server. The reason for it being 6666 is that I have changed it to avoid conflicts with the oc4j server. I have changed it in the default-web-site.xml file. There is a danger of conflict because I want to access the OC4J server behind Apache.
    I have also created the oc4j.conf file, which httpd.conf looks at :
    <IfModule mod_proxy.c>
    ProxyRequests On
    ProxyPass /servlet/ http://prams_nt_03:6666/servlet/
    ProxyPassReverse /servlet/ http://prams_nt_03:6666/servlet/
    </IfModule>
    Does anyone have any suggestions as to what else I need to do ? Maybe I need to specify somewhere else that I am using port 6666 ?
    Also, another point is that I am unable to deploy from JDeveloper, the connection test to the application server fails with the error message : Disconnected.
    My server is Win NT sp6, my AS is 1.0.2.2.2a.
    Thanks in advance for any help you can give.

    Hiya Debu,
    1) Are OHS and OC4J running on the same server ?
    - Yes, along with 9i DB rel 1
    2) What ports are used by OHS and OC4J ?
    The ports are 8888 for both, I have removed the setting for the OC4j Server, which means the OC4J server is not working behind Apache.
    3) Can you go to OC4J's homepage directly i.e. http://myhost:6666 ?
    I cannot go using hostname, but can using I.P address
    4) Can you go to OHS (aka Apache)'s homepage directly ?
    Yes, using I.P and hostname
    5) Do you get any errors during startup of OC4J or OHS ? You will an error port already in use error when a port is used by someone else ?
    None that I can think of.
    I think you hit the nail on the head when you said it could be a DNS problem ! I will configure that now. Thanks for your help, you're a star !

  • ADF and EJB. Why so little samples / information

    Hi All,
    I was wondering if other JDev / ADF developers have the same feeling as me in regards to ADF / EJB.
    There is barely enough information and examples on using ADF with EJB. Seems that most examples and blogs are related to BC instead.
    I was reading an article (sorry, don't have the link to it) not long ago that an Oracle Executive was asked if BC or EJB was Oracle's future and EJB was the answer. However, that doesn't seem to be the what most blogs and sample are about.
    I know that BC has tight integration with ADF, but it's not a standards based back-end framework. We are locked in the ADF UI for all of our development, but not touching BC at all. All code is EJB compliant.
    So, my request is:
    - comments? do other developers out there feel the same way?
    - bloggers, the great articles from "Frank Nimphius" and "Andrejus Baranovskis", not to mention others, can you guys post a little more on using ADF with EJB?
    BTW: great article on that "http://www.oracle.com/technology/products/jdev/tips/fnimphius/ControlHintsWithPojos/controlHintsWithPojos.html" (How-to find and set control hints on POJO entities in bean Data Controls)
    Thanks and Regards
    Jonny Oenning

    Hi!
    I rised this issue long time ago - with TP3 I noticed regression in EJB/JPA support with ADFm (binding layer as referred by Shay). Following the development, I draw this conclusions:
    1. Oracle is oriented toward J2EE standards, including the strategic orientation to EJB/JPA. The team that managed JDev 11g initial development phases was oriented toward EJB (but was replaced/fired sometime between TP2 and TP3).
    2. Oracle decided that FMW 11g stack products as well as EBS migration from PL/SQL to EJB is not feasible in short time frame (I think that was poor judgment). So, the BCs got the push over the EJB and TP3/4 was biased toward BCs. Even the default Fusion technology stack is changed - in TP1/2 the Fusion Web project was ADF RC + EJB buy default and then changed to ADF RC + BC4J. Also the development guides were "rephrased".
    3. As BC4J are proprietary Oracle technology, the are lacking many J2EE standard features and many strong points of the modern multi-tier architecture. Many developers are witnessing the performance / scalability issues as the BC4J are basically a mutant: they are SQL based concept wrapped into EJB for deployment! But they are not relaying on proven scalable J2EE technologies (like JPA/JTA, object caching etc.). They are trying to reinvent the wheel, decalratively offering the heaven of J2EE multi-tear architecture to old fashion SQL-focused architects/developers. But it is just a marketing - the truth is that BC4J are not and cannot be the replacement for proven J2EE architecture. They are trying to mimic the concepts of J2EE (like object-entity mapping, like JTA/JPA, like scalability and caching, transparent web-services exposition etc.) but they are lagging behind even J2EE 1.4 and we are facing the J2EE 6 in few months!
    4. Oracle is aware that EJB is the future but they are trying to bridge the gap between their legacy code written mainly in PL/SQL. So they developed and they are developing the JDeveloper 11g in fashin that should support and serve for their primary goals - migration of their own old PL/SQL based products to new, J2EE, world (of BEA!).
    So, anyone who is expecting the that Oracle JDeveloper is what they are marketing (full scale J2EE IDE) - is going to waste some time and money waiting the Oracle to finish it's half-way migration from PL/QL and Forms/Reports to PL/SQL + ADF RC! In few years from now.
    Thus, if you need efficiency in J2EE standards development - try something else than JDeveloper. Or, as suggested by Shay, don't use overmarketed ADFm as it is not compatible with EJBs in scalable / clustered deployment! Yes, that is proven issue (but I wont elaborate here as it is already well elaborated in this forum in another tread but the Oracle guys wisely neglected that issue).
    And beside few very very old and for me useless blog entries (one of which is not working in 11g as you may read in comments) there will be no much support for EJBs in this release of JDeveloper - I can bet!
    But, as final message to the public, I'm still stuck with JDev and EJBs as. When you develop you own patterns, it is still the best combination for developing the scalable, high performance apps on Oracle FMW 11g platform - mandatory including several grid technologies that are making the difference in scalability of true J2EE apps and quasi-J2EE "Fusion" apps based on BC4Js "silently" wrapped in EJBs for deployment.
    Regards,
    PaKo

  • Load-balancing and fail-over between web containers and EJB containers

    When web components and EJB components are run in different OC4J instances, can we achieve load-balancing and fail-over between web containers and EJB containers?
    null

    It looks like there is clustering, but not loadbalancing available for rmi
    from the rmi.xml configuration. The application will treat any ejbs on the
    cluster as one-to-one look-ups. Orion will go out and get the first ejb
    available on the cluster. See the docs on configuring rmi.xml (and also the
    note below).
    That is a kind-of failover, because if machine A goes down, and the
    myotherAejbs.jar are on machine B too, orion will go out and get the bean
    from machine B when it can't find machine A. But it doesn't go machine A
    then machine B for each remote instance of the bean. You could also specify
    the maximum number of instances of a bean, and as one machine gets "loaded",
    orion would go to the next available machine...but that's not really
    loadbalancing.
    That is, you can set up your web-apps with ejbs, but let all of the ejbs be
    remote="true" in the orion-application.xml file:
    <?xml version="1.0"?>
    <!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application
    runtime 1.2//EN" "http://www.orionserver.com/dtds/orion-application.dtd">
    <orion-application deployment-version="1.5.2">
    <ejb-module remote="true" path="myotherAejbs.jar" />
    <ejb-module remote="true" path="myotherBejbs.jar" />
    <ejb-module remote="true" path="myotherCejbs.jar" />
    &ltweb-module id="mysite" path="mysite.war" />
    ... other stuff ...
    </orion-application>In the rmi.xml you would define your clustering:
    <cluster host="230.0.0.1" id="123" password="123abc" port="9127"
    username="cluster-user" />
    Tag that is defined if the application is to be clustered. Used to set up
    a local multicast cluster. A username and password used for the servers to
    intercommunicate also needs to be specified.
    host - The multicast host/ip to transmit and receive cluster data on. The
    default is 230.0.0.1.
    id - The id (number) of this cluster node to identify itself with in the
    cluster. The default is based on local machine IP.
    password - The password configured for cluster access. Needs to match that
    of the other nodes in the cluster.
    port - The port to transmit and receive cluster data on. The default is
    9127.
    username - The username configured for cluster access. Needs to match that
    of the other nodes in the cluster.

  • Servlet jndi lookup to remote EJB, servlet and EJB not in the same application

    Hi,
    I think that the subject explain my problem.
    I have Oracle IAS9i 9.0.2.0.0, and JDeveloper 9.0.2.829
    I have deployed and EJB in IAS9i and i want to use from the developer machines, which have JDeveloper.
    how can i to do remote calls from JDeveloper?.
    I have modifed the orion-application.xml, and added remote=true.
    I have modifed the rmi.xml and added the hosts where the Jdeveloper placed.
    Any ideas?
    Thanks and cheers
    P.D The app server and jdeveloper are in the same net.
    if it is posible replys me to [email protected] too.

    Steps to access a remote EJB from within OC4J
    ++++++++++++++++++++++++++++++++++++++++++++++
    1) Deploy EJB application (ApplicationRemote) to remote container (REMOTE)
    "java -jar admin.jar -deploy ormi://REMOTE.hostname:REMOTE.port REMOTE.username REMOTE.password -deploy -file ApplicationRemote.ear
    -deploymentName ApplicationRemote"
    2) Ensure that local application (ApplicationLocal) has ejb-ref tags for remote EJBs accessed (in web.xml or ejb-jar.xml)
    3) Deploy to local container (LOCAL) an empty application (ApplicationEmpty) with the same name as the remote application (ApplicationRemote)
    "java -jar admin.jar -deploy ormi://LOCAL.hostname:LOCAL.port LOCAL.username LOCAL.password -deploy -file ApplicationEmpty.ear -deploymentName
    ApplicationRemote"
    5) Deploy local application (ApplicationLocal) to local container (LOCAL)
    "java -jar admin.jar -deploy ormi://LOCAL.hostname:LOCAL.port LOCAL.username LOCAL.password -deploy -file ApplicationLocal.ear -deploymentName
    ApplicationLocal"
    4)Restart local container
    ApplicationEmpty should consist of just an application.xml file - no modules. The same file can be deployed with different application names for all the remote
    applications that must be accessed.
    ApplicationLocal should access the remote EJB by using the following JNDI properties
    java.naming.factory.initial = "com.evermind.server.rmi.RMIInitialContextFactory"
    java.naming.provider.url = "ormi://REMOTE.hostname:REMOTE.port/ApplicationRemote"
    java.naming.security.principal = "REMOTE.username"
    java.naming.security.credentials = "REMOTE.password"
    regards
    Debu Panda

  • Wierd functionality of OC4J with BMP EJB....Crazy or is this supposed to happen?

    Hi. I'm in a class developing a BMP Entity EJB. I deployed the
    bean, whose functionality does simple insert, update, delete
    from one table. I created a test client to run from the command
    line which works for the create (it inserts a row into the
    database). I run SQLPLUS to confirm this.
    I then go in to the database through SQL PLUS and delete the row
    and commit.
    Then I RERUN the test client and the application gives me an
    javax.ejb.DuplicateKeyException . Should this happen? When I
    look in the database, the ejbCreate is called because the row is
    inserted back in, so that much works, but for some reason the
    exception is called. Anybody have an idea?
    Thanks - Matt

    Figured it out thanx to the instructor. Apparently OC4J sets an
    EJB setting in the orion-ejb-jar.xml file.
    Under <entity-deployment>,
    you need to set exclusive-write-access = "false"
    The current default is "true"
    The default of "true" basically assumes the EJB is the only way
    to access the data in the database, so it gives better
    performance since data is cached. However, if your application
    is used in a distributed environment where you have other
    applications working with the data (i.e. Developer App, or
    SQLPLUS), then you will want to set this field to "false".

  • Javafx 2.0 and ejb 3.x

    Hi,
    Does javafx 2.0 supports ejb injection. I am trying to inject ejb using annotation in fxController. It is simply not recognizing class ejb. Is it supposed to be done in old fashioned way using Service Locator.
    Could someone direct me to the literature related with javafx 2.0 and ejb.
    Thanks
    Sarad

    Hi Sarad,
    Injecting stuff (whether it is via EJB or Spring or whatever) usually requires that the bean is loaded (i.e. newed) via some context. In FXML the Controller is created via the FXMLLoader so unfortunately you can't easily inject into it. This is a bit of a problem for a few of us and there is an open feature request being considered for future releases: http://javafx-jira.kenai.com/browse/RT-16724. You may want to up-vote if this is important for you.
    At this stage of the game I would suggest your best bet is to have your controller look up your EJB via JNDI (as per the unit test in http://openejb.apache.org/3.0/injection-of-other-ejbs-example.html) and then have your controller delegate calls onto the EJB. You will likely want to thread the calls onto this as well, using JFX's Task or Service.
    Hope that helps,
    zonski
    Did you find this answer useful? If so, please mark as 'Correct' or 'Helpful'.

  • Want to run servlets, jsp and ejb

    Hi there, I have just installed Oracle9iAS on my PC and want to check how to use OAS with servlets, JSPs and ejbs, so can any one tell me where can I find some worked examples and step by step deployment process, any help would be appreciated, regards, Shabbier

    If you have installed Oracle9iAS, you should be able to get to the welcome page at
    http://<machine_name>:7778/
    You can see J2EE demos off that page.
    Also, you can find info about oracle9iAS and documentation
    at http://otn.oracle.com/products/ias/content.html
    OC4J info can be found at
    http://otn.oracle.com/tech/java/oc4j
    -Prasad

  • Diff b/w bc4j model and ejb model in adf11g

    hi all,
    iam murali iam new for adf 11g i have some dout's in adf11g ,can u please solve my probleam
    what is the difference b/w bc4j componet and ejb componet,how to develop ejb application in adf11g.

    ,how to develop ejb application in adf11gTake a look at this tutorial for starters:
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ejb/ejb.html

  • I would like to know how to insure that all track from a CD I rip into i-tunes all go into the same file regardless of the artist on the CD. I was recdently importing an All Time Low CD into i-Tunes for my daughter and because one track featured a guest a

    i would like to be able to insure that when i import a CD into i-Tunes that all tracks from that CD go into a single file for that album in their proper order regardless of whether or not there is a featured artist on one or two tracks or whatever. i recentl;y imported an All Time Low CD into i-Tunes for my daughter and because one song featured a guest artist i-Tunes placed that song in a seperate folder and so when i synced my daughters i-Pod Touch that one track is not with the rest of the tracks form the album and has to be listened to seperately. The song is from the same album and should be where it belongs with the rest of that album so she can listen to the entire album with the tracks in the proper order. I am sure that this can be done i just don't know how.

    Edit the Name of the problem song to Name [Feat. Guest]
    Change the Artist of that song to All Time Low
    marley2012 wrote:
    ... and i want to make sure that from now on all songs from any CD I import into i-tunes all go into the same album file if they are on that album originally. i do not want i-tunes seperating songs from my CD's for any reason. hopefully this is more clear.
    What you want cannot be done. iTunes has its quirks, and the above is the kind of workaround needed to make the media display sensibly on any device. The article I pointed you to has others that you may find useful in future.
    tt2

  • HT5824 I've been using numbers for iPad and I accidentally deleted a column. And the auto-save feature saved that and now I can't undo it. Does iCloud storage have backups of saved files from like 10 minutes ago? I have number

    I've been using numbers for iPad and I accidentally deleted a column. And the auto-save feature saved that and now I can't undo it. Does iCloud storage have backups of saved files from like 10 minutes ago? I have numbers synced to iCloud.
    I tried to undo it but the app crashed.
    I am hoping there's like a previously saved version of my file in iCloud somewhere. 

    No, iOS does not do short term incremental back ups to iCloud such as you get with Time Capsule.It backs up when you do soo manually, or if set properly, when the device is plugged in and connected to WiFi. It will not have saved your changes as of 10 minutes prior.

Maybe you are looking for

  • SID Generation Error while activating the DSO.

    Hello Gurus, Am trying to load the data to a dso in FIGL, the data is getting loaded to the dso very fine, this is extracting data of 1700000. But the problem is while activating the dso it throws an error "Activation of M records from DataStore obje

  • Tax code Error in PO

    Hi Friends, I have one issue. When I am trying to create a Purchase order, I am getting below error Taxcode X0 is not maintained for Juridiction code XXXXXXXXXX. Could anybody please help me? Thanks, Bhairav

  • Import library and playlists from Windows Media Player without duplicates

    How do I import all the music and playlists from Windows Media Player into iTunes without creating duplicates? I add the folder containing all my music to iTunes and all my music arrives nicely. I begin importing playlists and the playlist comes over

  • File Save As Other Text  IS NOT WORKING.  Why?

    I have a PDF file with a table and selectable data.   I want to save it as text.   I go to File > Save As Other > Text.  The Save As dialog box opens, I name the file, click Save.  NOTHING.  Absolutely nothing.  Not in the save location.  I repeat th

  • My display screen looks like a photograhic negative, what is wrong?

    The display looks like a photgraphic negative.  Is there a simple way to change it back?