About EJB & CORBA on Oracle 8.1.5

Does anyone succesfully use EJB or CORBA
on Oracle 8.1.5?

If you are thinking of successful use of EJB with ORACLE, good luck to you! We are thinking of moving to WebLogic.
null

Similar Messages

  • Problems deploying EJB on a oracle 8i server

    We are trying to deploy a EJB on a oracle 8i server. We crossposted this question in BI Beans forum also.
    For doing so we are using the following command:
    "deployejb -republish -temp temp -u sys -p sys -s sess_iiop://NLWS122:2481:
    LOKAAL -descriptor AQServerReceive.ejb AQServerReceive.jar"
    It seems that everything goes allright (we can trace the classes in the database) but we get this message:
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs.............................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...Exception in thread "main" org.om
    g.CORBA.COMM_FAILURE: java.io.IOException: Peer disconnected socket minor code:
    0 completed: No
    at com.visigenic.vbroker.orb.TcpConnection.read(TcpConnection.java, Compiled Code)
    at com.visigenic.vbroker.orb.GiopConnectionImpl.receive_message(GiopConnectionImpl.java:436)
    at com.visigenic.vbroker.orb.GiopConnectionImpl.receive_reply(GiopConnectionImpl.java, Compiled Code)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(GiopStubDelegate.java:562)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(GiopStubDelegate.java:503)
    at com.inprise.vbroker.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:60)
    at oracle.aurora.AuroraServices._st_JISLoadJava.add(_st_JISLoadJava.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjava.add(Loadjava.java:137)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.loadAndCreate(Loadjar.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.invoke(Loadjar.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjava.<init>(Loadjava.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.<init>(Loadjar.java:52)
    at oracle.aurora.ejb.deployment.GenerateEjb.invoke(GenerateEjb.java:560)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:143)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:575)
    What could be the problem?
    More info:
    We are trying to get the example in the white paper 275199.pdf (Building Internet Applications with Oracle Forms 6i and Oracle8i) working.
    Thx for helping.

    Hi Ralph,
    I don't know if you are aware of this, but Oracle has replaced
    the database embedded EJB container (a.k.a. "aurora") with an
    external EJB container named OC4J (Oracle Containers for J2EE).
    OC4J is available in both stand-alone version and as part of Oracle's
    application server product: 9iAS. Although the database embedded
    EJB container still exists in the latest database versions (as
    far as I know), Oracle has -- for a long time, now -- been discouraging
    its use in favour of OC4J.
    More information on OC4J is available from:
    http://technet.oracle.com/tech/java/oc4j/content.html
    Good Luck,
    Avi.

  • EJB & CORBA Samples

    The URL is: http://technet.oracle.com/tech/java/ejb_corba/index2.htm?Code&files/hotel/hotelHome.htm
    These samples implement a Hotel Reservation Application four different ways: two designs use EJB components and two designs use CORBA components. Compare the source code.
    There are four samples: EJB, CORBA, AQ, and Java Stored Procedures. They have been available for awhile, but I'm posting here to remind people, and to start a thread for a discussion.
    -rh
    null

    Here are some questions from Vadim Katz and answers from the OTN developers who built the AQ Hotel sample app:
    I was able to compile the whole projects but only after doing the following:
    1) Adding JBO 8i Client library which contains
    javax.jts.UserTransaction. This is not mentioned in the example guide
    and UserTransaction is not a part of Sun's javax.jts packageThe AQ EJB/CORBA Sample was developed using JDeveloper 2.0. In JDeveloper 2.0, the CORBA library contains aurora_client.jar, and aurora_client.jar contains classes like javax.jtx.UserTransaction, etc.
    JDeveloper 3.1does not include the CORBA library by default, and that is why you need to add JBO 8i Client, etc.
    > 2) I also had to compile HotelSystemSQLJ.sqlj file to get .class file;
    > otherwise, during global project rebuilt I was only getting .ser file.
    > Missing .class file was causing compilation errors.
    JDeveloper requires you to first compile HotelSystemSQLJ.sqlj and HotelSQLJ.sqlj separately. These steps are
    mentioned in the README.txt.
    3) FINALLY, A BIG QUESTION. Why does travel8i.dmp modify SYSTEM TABLES
    and because of that user "travel" is required to have SYS priveledges???The Sample requires a TRAVEL user with Sample Travel Data. We could have asked the user to create a separate tablespace and import travel8i.dmp into it, but that would increase the installation steps. For
    simplicity, we create the TRAVEL user in the SYSTEM tablespace.
    When you want to delete example data, simply drop the "TRAVEL" user.
    The AQ Sample needs access to DBMS_AQADM and DBMS_AQ packages which are present in SYS user.
    I hope this helps,
    -rh

  • What's the best approach for handeling about 1300 connections in Oracle.

    What's the best approach for handling about 1300 connections in Oracle 9i/10g through a Java application?
    1.Using separate schema s for various type users(We can store only relevant data with a particular schema.     Then No. of records per table can be reduced by replicating tables but we have to maintain all data with a another schema     Then we need update two schema s for a given session.Because we maintain separate scheama for a one user and another schema for all data and then there may be Updating problems)
    OR
    2. Using single schema for all users.
    Note: All users may access the same tables and there may be lot of records than previous case.
    What is the Best case.
    Please give Your valuable ideas

    It is a true but i want a solution from you all.I want you to tell me how to fix my friends car.

  • About pessimistick lock in Oracle

    Hello,
    I have some questions about pessimistick lock in Oracle:
    I know if i do a SELECT..FOR UPDATE statement, those records are locked, and just me can opperate on them.. but me - WHO? How i'm identified in Oracle? If i do a SELECT..FOR UPDATE select in an A procedure, then i call the update procedure B, how can i know that both calls belongs to the same user? If someone tries to update the same records, how the server knows if that person is allowed to make those updates or not? because everyone uses the same connection string.. isn't it?
    Probably it works if i make a SELECT..FOR UPDATE and i make the effective update in that procedure, but this means that the Business Logic is in that procedure..
    Please correct me if i'm wrong somewhere and clarify me.
    Thanks!

    By default the other session has to wait (no error message):
    From SQL Reference SELECT section: http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#SQLRF01702
    >
    NOWAIT | WAIT
    The NOWAIT and WAIT clauses let you tell the database how to proceed if the SELECT statement attempts to lock a row that is locked by another user.
    Specify NOWAIT to return control to you immediately if a lock exists.
    Specify WAIT to instruct the database to wait integer seconds for the row to become available and then return control to you.
    If you specify neither WAIT nor NOWAIT, then the database waits until the row is available and then returns the results of the SELECT statement.
    >
    Edited by: P. Forstmann on 7 janv. 2010 09:00
    Edited by: P. Forstmann on 7 janv. 2010 09:01

  • Know about EJB.

    Hi,
    I dont have any idea about EJB and also how the EJB is differ from java beans.
    Thanks in advance.

    Romain - I think the answer to your question is that the information
    identifying the user is passed into the initial context parameters. Weblogic
    uses this to propagate the security context from the servlet container to
    the ejb container.
    cheers,
    Markus
    "romain" <[email protected]> wrote in message
    news:3b0e8b23$[email protected]..
    >
    Hi
    perhaps it is a dummy question but I didn't find any explicit answer.
    I'd like to know how the ejb can know if a user belongs to a role.
    For example if I want to access my ejb with a servlet, and this servlet isprotected
    (access allowed only for group customer)
    and in my bean's deployment descriptor I have protected one method withthe security
    role customer)
    What I am wondering is when the user is authenticated in the servlet as acustomer
    and then try to access the method how the ejb knows that this user is inthe group
    customer??
    Is this information included in the http session or in the initialcontextcreated
    in the servlet or somewhere else??
    thanks for your help
    romain

  • URGENT : ejb client in Oracle 8

    We developed a EJB client. This client should be called from an Oracle Database 8.1 (ejb compliant). But, each time we tried to load weblogic.jar, we have several errors into Oracle (ie : ORA-29534 NamingContext could not be resolved)
    Do you have an idea why ? Someone already developed an ejb client into Oracle 8.1 ?

    They are reccomended because the next step going from your simple single EJB
    to anything interesting, like adding more EJB's adding web-apps, adding
    web-services etc etc involves ears. If the setup and overhead for an EAR is
    easy, then just start there.
    But no if you just doing helloworld you of course dont have to ears.
    cheers
    mbg
    "Christopher R. Gardner" <[email protected]> wrote in message
    news:3fc0560e$[email protected]..
    >
    "Mark Griffith" <[email protected]> wrote:
    You can still run ejbc from the command line its still there. And you
    can
    still run weblogic.Deployer. (I dont ever reccomend jaring up in dev,
    it
    just takes longer, do exploded its easier and faster).
    But ear's are easy, see:So ears are recommended even if you're just doing EJBs (e.g., a simpleHello World)
    and no web apps (none needed for the Hello World or a PC client)?
    http://www.niffgurd.com/mark/work/blog/
    Cheers
    mbg
    "Christopher R. Gardner" <[email protected]> wrote in message
    news:3fbfd6c6$[email protected]..
    My understanding is ejbc has been deprecated and replaced with appc.Moreover,
    BEA is encourgaging developers to deploy ear files. All I want todo is
    to use
    ant to deploy a jar file with a single EJB in it. I'm not findingthe WL
    documentation
    very helpful. Hopefully, you'll have better luck than I.
    "skmurali" <[email protected]> wrote:
    Hi
    In order deploy EJB application in Weblogic 8.1, is it necessary
    to compile
    the application in WebLogic.ejbc. I did not find such files in
    WebLogic
    8.1
    In weblogic 7.0 versiion has such files.
    The present procedure is as follows.
    1. Create a jar file contains all class files.
    2. Create a jar file contains class jar files, plus .xml files
    3. Deploy into weblogic 8.1 server EJB Deployment utility.
    ==================
    Please help me.
    Murali

  • About EJB 3.0 ?

    i don't know anything about EJB (nither EJB 3.0 nor any previous version )
    i want to learn EJB 3.0, but the final version of 3.0 EJB 3.0 has not been release.
    i have heard that in EJB 3.0 all the old concepts have been changed.
    a) will it be a good idea to start learning the latest version (version prior to 3.0)
    and to get familiar with EJB and then later upgrade ?
    or
    b) wait for the EJB 3.0 and start learning EJB 3.0 only when its final version comes
    please give me a helpful suggestion

    This is a late feedback on your question but now JSR220: EJB 3.0 now is in its "Proposed Final Draft" stage.
    http://java.sun.com/products/ejb/docs.html
    I feel that starting afresh with EJB 3.0 is not a bad idea because there are some major changes in the way EJBs will be developed in future.
    Knowing EJB 2.x is always a plus and you would certainly appreciate the new incarnation for its simplicity.
    Hope this helps.
    Cheers,
    -_.

  • Documents about General ledger in oracle

    where i can find documentation about General ledger in oracle ?

    user649223 wrote:
    where i can find documentation about General ledger in oracle ?Applications Releases 11i and 12
    http://www.oracle.com/technology/documentation/applications.html

  • Caching on ejb container using Oracle 9i Application server

    Hi,
    can we cache on the ejb container in Oracle application server ?
    if so, whats the methodology ?
    Regards,
    Murali

    Can you explain exactly what you want to cache? The complete container: no makes no sences. Objects in the container, makes sences but in case of CMP the entites are already cached.
    Can you provide more information what you want to achieve?

  • A question about EJB timeouts

    Good day!
    I encountered an interesting situation about EJB timer service.
    1) For example, I created an implementing TimerObject Stateless Session Bean.
    2) In ejbSetSessionContext method I created an timer to invoke ejbTimeout on my EJB every 15 seconds.
    3) Ok. Container invokes this ejbTimeout every 15 sec. But what happens is previous ejbTimeout didn't returned because it is waiting for some connection for example. Would container invoke ejbTimeout while processing previous ejbTimeout on this one Stateless EJB?
    I looked in EJB 2.1 spec. but didn't find corresponding answer.

    Hi russiandroopy,
    This isn't specifically mentioned in the spec because the design center of the Timer Service was not fine-grained events. The spec suggests that typical timeouts would be on the order of minutes or hours, which is typically much longer than the duration of the handling time within a timeout method or business method. In SUN's implementation we do not attempt to deliver a subsequent periodic timeout until the previous timeout completes successfully.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Options for EJB - Corba - correct?

    Hi,
    I'm looking at the options for EJB->CORBA and CORBA->EJB method calls in Weblogic Server 5.1 (although we may be moving to 6 soon)
    We are currently using CORBA 2.1 C++ code, and are looking for a migration path into EJBs.
    I've tried to pull together small list of our options, with apologies to Eduardo Ceballos who wrote most of this text originally, and anyone else who's work is included.
    Does any one have the time to read the below, and make any comments on important options that I've missed, or pitfalls that they can see?
    Thankyou in advance;
    Notes:
    -- RMI over IIOP is only available under JDK 1.3
    -- if we use a pre Corba 2.3 implementation (as we currently are), only primitive types may be passed (no OBV available).
    -- Another option is to use WebLogic Enterprise, but we are currently using WebLogic Server. &#8216;WebLogic Enterprise Connectivity gives you the ability to create IIOP connection pools to a BEA WebLogic Enterprise, allowing you to execute WebLogic Enterprise CORBA objects from WebLogic Server servlets and Enterprise JavaBeans.&#8217;
    Calling from a WLS into a CORBA server:
    ========================================
    There are several variations on two ways:
    1. expose the CORBA interface;
    To expose the CORBA interface, you collocate the ORB of your choice within the WLS instance and bind CORBA stubs into the JNDI tree as needed. The application looks up CORBA objects and uses the CORBA server interfaces as you would regardless of WLS.
    This is an example of designing the RMI interface so that it maps in a usable way to the IDL interface.
    2. hide the CORBA interface.
    To hide the CORBA interface, create a RMI interface and a RMI server class; run 'weblogic.rmic -iiop -idl ...' on that class; take the resulting idl and add it to the interfaces which the CORBA servers implement. To gain access to the CORBA servers, use COSNaming to bind the CORBA servers into the WLS JNDI tree. As above, the application looks up the CORBA servers in the JNDI tree, but in this case the application uses the RMI-IIOP stubs to communicate with the CORBA servers.
    This is an example of adding RMI interfaces to existing CORBA servers to establish some level of connectivity.
    If you are using an RMI-IIOP implementation of some sort, then you are effectively hiding the CORBA interface, except you'd ignore any of work that would be done at the IDL level.
    Note: We should use rmic and the &#8211;noValueTypes flag (as we aren&#8217;t using Orbix 2.3).
    Calling from a Corba server into WLS
    ======================================
    It is possible to host an Orb in the app server, contained within a WebLogic startup class. This will allow Corba calls to be delegated to app-server components (see option 1, above).
    Thanks again.

    Comments inline....
    G Morgan wrote:
    Hi,
    I'm looking at the options for EJB->CORBA and CORBA->EJB method calls in Weblogic Server 5.1 (although we may be moving to 6 soon)Yes, move to 6.0.
    >
    >
    We are currently using CORBA 2.1 C++ code, and are looking for a migration path into EJBs.
    I've tried to pull together small list of our options, with apologies to Eduardo Ceballos who wrote most of this text originally, and anyone else who's work is included.
    Does any one have the time to read the below, and make any comments on important options that I've missed, or pitfalls that they can see?
    Thankyou in advance;As far as I can tell, pre-2.3 ORBs can not handle type ids that start with "RMI:". So pretty much the only option at the moment with a pre-2.3 ORB is to delegate through a colocated ORB. As with the the previous response, it's a good idea to host the ORB in a WLS client, that way if the ORB goes south, it doesn't take the server with it.
    >
    >
    Notes:
    -- RMI over IIOP is only available under JDK 1.3
    -- if we use a pre Corba 2.3 implementation (as we currently are), only primitive types may be passed (no OBV available).
    -- Another option is to use WebLogic Enterprise, but we are currently using WebLogic Server. &#8216;WebLogic Enterprise Connectivity gives you the ability to create IIOP connection pools to a BEA WebLogic Enterprise, allowing you to execute WebLogic Enterprise CORBA objects from WebLogic Server servlets and Enterprise JavaBeans.&#8217;
    Calling from a WLS into a CORBA server:
    ========================================
    There are several variations on two ways:
    1. expose the CORBA interface;
    To expose the CORBA interface, you collocate the ORB of your choice within the WLS instance and bind CORBA stubs into the JNDI tree as needed. The application looks up CORBA objects and uses the CORBA server interfaces as you would regardless of WLS.
    This is an example of designing the RMI interface so that it maps in a usable way to the IDL interface.
    2. hide the CORBA interface.
    To hide the CORBA interface, create a RMI interface and a RMI server class; run 'weblogic.rmic -iiop -idl ...' on that class; take the resulting idl and add it to the interfaces which the CORBA servers implement. To gain access to the CORBA servers, use COSNaming to bind the CORBA servers into the WLS JNDI tree. As above, the application looks up the CORBA servers in the JNDI tree, but in this case the application uses the RMI-IIOP stubs to communicate with the CORBA servers.
    This is an example of adding RMI interfaces to existing CORBA servers to establish some level of connectivity.
    If you are using an RMI-IIOP implementation of some sort, then you are effectively hiding the CORBA interface, except you'd ignore any of work that would be done at the IDL level.
    Note: We should use rmic and the &#8211;noValueTypes flag (as we aren&#8217;t using Orbix 2.3).
    Calling from a Corba server into WLS
    ======================================
    It is possible to host an Orb in the app server, contained within a WebLogic startup class. This will allow Corba calls to be delegated to app-server components (see option 1, above).
    Thanks again.

  • Where to get good tutorial about EJB 3.0

    I would like to find some good tutorial about EJB 3.0, any suggestions where I can get it?
    thanks

    JavaEE 5 Tutorial:
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    Sun Java System Application Server Developer's Guide:
    http://docs.sun.com/app/docs/coll/1343.3
    Glassfish EJB FAQ:
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

  • Excellent resources about EJB Transactions

    Is there any good (better, excellent) web resource (or book) about EJB Transactions, covering topics like
    - Flat Transactions vs. Nested Transaction
    - Using EJB EntityBeans & Hibernate together: pay attention to Transaction Isolation
    - Transaction Isolation examples, especially when having suspended transactions?
    Thank you for any hint.
    Michael

    Nothing's better than Google.
    Rich

  • Ejb deployment in Oracle 8i

    deployejb -user scott -password tiger -service sess_iiop://tossserver:1521:orcl -descriptor HelloBeanDescriptor.txt -temp /ejb/HelloEJB \-generated HelloClient.jar myBean.jar
    Exception in thread "main" java.lang.ClassCastException: com.sun.corba.se.intern
    al.iiop.ORB
    at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24)
    at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:7
    8)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.jav
    a:499)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java
    :130)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolI
    mpl.java:101)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.j
    ava:213)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
    1)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)

    Unfortunately, I don't believe this is an appropriate forum to address this question to. The ODBC protocol has nothing to do with Java or EJB.
    Justin

Maybe you are looking for