8.1.7 and Entity Beans. Where is Patch 8.1.7.1???

I would like to be able to deploy CMP Entity Beans to 8.1.7 on Solaris using JDeveloper 3.2.2
The release notes indicate that this is a bug and is awaiting a patch. My two questions are:
1. When can we expect Patchset 8.1.7.1 for Solaris?
2. Could someone please describe for me the best way to write a CMP Entity Bean in JDeveloper 3.2.2 (w/descriptors & JAR'ed etc...) and then use the Oracle Command Line tools to load this bean? ie. what are the pitfalls?
Thanks in advance.

Thx alot..
When will JDev 3.2 be available for evaluation download ?
(The firm im working for is about to buy a complete system from the east, and i need to know how things perform before recommending purchase of system/archtecture and oracle tools).
Incedently, i experienced a problem with session beans on 8.1.6, if i killed my client app somewhere along a lookup and remote.create the sessionbean would completely die, only thing to do was to redeploy it(not even reboot cured it) (i could create it, but reading serilized objects gave a marshall exception every single time..)
I want to know if this is a known issue? and if it is, has it been 'fixed' in 8.1.7?
By the way, everything is running on localhost on a win2k pro box.
Thx alot for your time.

Similar Messages

  • JSF and entity beans

    I'm trying to create an application using JSF for the presentation layer and entity beans and stateless session beans in the model layer using CMP, for deployment with JBoss. I'm basically stuck though on the communication between the backing bean and the session bean (where do I define the JNDI names, the database connection etc). Can anybody suggest a good tutorial/example showing JSF with EJBs?

    Well I was interested in the same topic, I once thought `Sun Java Studio Creator EA2` will have an easier approach ... well it dun seems easy to me neither.
    Anyone of you tried acheiving the purpose by using that approach b4?
    I'm currently working on a `JSF-based portlet` project with `entity beans + managed beans` ... well its very much source shared ... but I'm still green :P
    Anywhere, I'm starting a new thread called `JSF Portlet developement` in my blog (`http://avatar21.superihost.com`), feel free to comment(any ideas will be mostly appreciate).
    Regards,
    Avatar
    there is no specific support in JSF for EJBs.
    the definition of connection pools and other JNDI
    resources are subject to the servlet spec which JSF
    is built on top of.
    you can find usefull examples in the sun J2EE
    tutorial.

  • Flow of sessiob bean and entity bean

    Hi All,
    Can any one help me how is the flow of session and entity beans i.e
    What method is called first and what method is called next.
    There are so many methods like create(),ejbcreate(),
    ejbActivate(),ejbPassivate(),ejbDelete() etc.
    What is the flow of these methods and when they are called.

    Hi vasudulla,
    If you can, go to the bookstore and look for the book:
    Entreprise JavaBeans 3rd Edition by Richard Monson-Haefel.
    In the Appendix B, you can see the State and Sequence Diagrams, all the things you want to know about the Flow.
    --Paul.

  • How many ejbCreate() can be in Session and Entity Bean???

    Hi,
    How many ejbCreate() method can be in a Session and Entity
    Bean???
    How many can be in Stateless and Stateful SessionBean???
    How many can be in CMP and BMP SessionBean???
    Thanks,
    JavaCrazyLover

    How many ejbCreate() method can be in a Session
    ion and Entity
    Bean???For Stateful Session Beans and Entity Beans, as many as you'd like.
    Stateless Session beans can only have one, since their ejbCreate methods can not take any parameters.
    >
    >
    How many can be in CMP and BMP SessionBean???If you mean CMT/BMT(Container-Managed transactions / Bean-Managed Transactions), then
    the answer is the same. The create method requirements are independent of the transactional nature of the bean.
    If you really mean CMP/BMP(Container-Managed Persistence / Bean-Managed Persistence) , it doesn't apply to session beans, only entity beans. However, even for entity beans, CMP vs. BMP has no bearing on the rules regarding # of create methods.
    --ken
    >
    >
    Thanks,
    JavaCrazyLover

  • Basic difference between stateful and entity beans???

    Could anyone please explain the basic diff between stateful bean and an entity bean.as per my understanding,stateful beans are extensions to clients.they perform a job of a client and they r not persistent.also their state goes off when the server crashes or the machine is reeboted.while in contrast,an entity bean can retain its session coz' they represent a persistent field in the DB.What i have seen in few books(O'reilly,etc)where a session bean can insert some values into the DB,which means it also represents a persistent object in the DB,which contradicts the statement that "stateful session beans dont represent any persistent object in the DB".Could anyone please elaborate on this.Thanks in advance.
    Jameel

    Thank u very much crackers for ur valuable
    suggestions.I'll throw a different one in here for free: clarity of writing is a highly-valued and useful skill in a software professional. This is especially true these days when concepts need to be clearly explained to a variety of technical peoples from all over the world. And then there's the other side of the coin: Management.
    You have to get your thoughts across in a very precise manner and, unfortunately for those who have to learn it as a second lanugage, English seems to be the overall preferred medium. Which makes it even more important to use "correct" English in written communications. If you don't, your credibility diminishes and you appear to be (horrors!) unprofessional It's not that much harder to type "you" than it is to use a single letter. Besides, most people that "pay by the byte" appreciate the clarity, as well (as I've seen on Usenet, by way of covering my ass).
    Now, back to our regularly scheduled post...
    Is this wat u were trying to say if i
    understood u correctly.Yes, the EntityBean is directly related to the data being persisted: in this case, a database table. So, using your example from below, the DB table would have two fields: a VARCHAR 'Name' and an INT 'Age.' The EntityBean would have corresponding fields/properties/variables, String name and int age.
    "WHICH BEAN (Entity
    or Sateful Session) SHOULD I GO 4???"No easy answer. The best one is: it depends. On what? It depends upon what you're trying to do with the data, how it's presented/manipulated, load requirements, environmental requirements, caching strategies, and about another dozen or so other high-level requirements.
    My personal preference is if I need caching and the number of EntityBeans actually in existence is pretty "low" (another nebulous and arbitrary value, depending), I'll use a StatelessSessionBean as a Facade (search for "patterns" here in the forum), with the persistence in CMP EntityBeans. Which is influenced by the fact that I like playing with CMP. ;D

  • Proxy object and entity Bean interaction

    Hello,
    I'd like to have some precisions on the interactions between the proxy object (client) and the entity bean(server):
    - does J2EE provides ways for a bean to manage clients, to define roles and permissions, lock, etc ... ? What informations an entity bean can know about the clients ?.
    - how does the context mechanism work on the entity bean side ?
    - how does an entity bean identify different clients ? how does it recognize one from another ? I mean if client c1 and client c2 use same entity bean B, how B can manage different roles for c1 and c2, and how can B returns specific values to a particular client.
    Thx.

    If you can read some tutorial, you will get all the information.
    I'll suggest a book EJB by richard manson publicvations oreilly.
    The activities you are talking about is responsibility of container and user developed bean are totally absytracted from this system level activities.
    Primary service include security which take care of activities like Authentication, access control and secure communication.
    for role based access control u have container providing the identity by Principal object. DDescriptors declare which logical roles are allowed to access even perticular method of the bean.

  • Plaese  HELP  JAVA DEVELOPER DAO and ENTITY BEAN

    WHEN DO WE USE ENTITY BEAN INSTEAD OF DAO

    Generally DAO's are used with Stateless Session beans where the transactions may involve in different query executions. We go for Entity beans for persistence.

  • DAO and entity bean

    I have an entity bean which has a lot of gets and set methods. i am calling all the methods in a DAO. The DAO Recognizes all the old methods but not the last one, i dont understand why a single get Set is not being recognized.

    Your question is not very clear. Could you tell the problem in details?

  • Web services and entity beans

    Hi,
    I want to implement a web service which stores some information.
    I decided to bulid it using ejb.
    Can i expose a web service as an entity bean?
    If so,can anybody introduce me some example?
    If not,what is the solution?

    Yes, u can do that by creating EJB controls first and then add that EJB control to WebService.
    Which Editor is using . if u r using Weblogic Workshop 8.1
    Creat project and then just right click and create EJB Control for that and then add this to web Service
    If u wanna any other information reply ..

  • RemoteExceptions and Entity bean failover

    The documentation gives an example of how to achieve failover with
              entity beans. (See below). How can one tell that the RemoteException
              is due to the server being down rather than some other reason.
              For example in EJB 1.0 aren't many exceptions generated in the bean
              wrapped in a RemoteException? For example if there is an SQLException
              the bean might throw a RemoteException that wraps the SQLException. In
              such a case it doesn't make sense to try it again.
              So what is the correct way to find out whether the exception is due to a
              server failure rather than some other reason?
              dan
              AccountHome home =
              (AccountHome)ctx.lookup("example.AccountHome");
              Account account;
              int attempts;
              while (attempts < LIMIT) {
              try {
              tx.begin();
              account = home.findByPrimaryKey(ACCOUNT);
              account.deposit(500);
              account.withdraw(10);
              tx.commit();
              break;
              catch (RemoteException re ) {
              // Retry
              try {
              tx.rollback();
              attempts++;
              catch (Exception e) {
              // Something unrecoverable has happened
              throw e;
              

    Yes, this is the "nasty" case as I've heard several people put it. It's among the
              problems that make distributed programming difficult. Since the database is managing
              the transaction log, the other app servers in the cluster do not know if the tx was
              committed or not either.
              -- Rob
              dan benanav wrote:
              > If a remote exception is thrown from an entity bean then is it the case that we know
              > the transaction has rolled back? What if the server went down after the transaction
              > was committed?
              >
              > dan
              >
              > Rob Woollen wrote:
              >
              > > dan benanav wrote:
              > >
              > > > Isn't there a more definitive way to determine whether the problem is due to a
              > > > connection error or the server being down?
              > > >
              > >
              > > My first answer to your question is why do you need this? Both a db
              > > connection error and the server going down should be relatively rare events in a
              > > production system. RemoteException is meant to indicate that a system-level
              > > error has occured and the transaction has rolled back. Doing another find in
              > > this case is not going to limit your application's performance / scalability.
              > >
              > > -- Rob
              > >
              > > >
              > > > Rob Woollen wrote:
              > > >
              > > > > dan benanav wrote:
              > > > >
              > > > > > The documentation gives an example of how to achieve failover with
              > > > > > entity beans. (See below). How can one tell that the RemoteException
              > > > > > is due to the server being down rather than some other reason.
              > > > >
              > > > > Any application error should be thrown as an application exception that
              > > > > you could obviously distinguish from RemoteException.
              > > > >
              > > > > As you correctly point out, db errors like SQLException are often
              > > > > wrapped in RemoteException when they reach the client.
              > > > >
              > > > > I would code the application to give up if it gets an application
              > > > > exception. For instance, if you try to withdraw more money than you have,
              > > > > there is no sense in retrying.
              > > > >
              > > > > I would retry (up to a small limit) on RemoteExceptions if it makes
              > > > > sense in your application. Even SQLExceptions may be transient. For
              > > > > instance, Oracle may not have been able to serialize your transaction on
              > > > > the first attempt, but your second try might go through.
              > > > >
              > > > > -- Rob
              > > > >
              > > > > >
              > > > > >
              > > > > > For example in EJB 1.0 aren't many exceptions generated in the bean
              > > > > > wrapped in a RemoteException? For example if there is an SQLException
              > > > > > the bean might throw a RemoteException that wraps the SQLException. In
              > > > > > such a case it doesn't make sense to try it again.
              > > > > >
              > > > > > So what is the correct way to find out whether the exception is due to a
              > > > > > server failure rather than some other reason?
              > > > > >
              > > > > > dan
              > > > > >
              > > > > > AccountHome home =
              > > > > > (AccountHome)ctx.lookup("example.AccountHome");
              > > > > > Account account;
              > > > > > int attempts;
              > > > > >
              > > > > > while (attempts < LIMIT) {
              > > > > > try {
              > > > > > tx.begin();
              > > > > > account = home.findByPrimaryKey(ACCOUNT);
              > > > > > account.deposit(500);
              > > > > > account.withdraw(10);
              > > > > > tx.commit();
              > > > > > break;
              > > > > > }
              > > > > > catch (RemoteException re ) {
              > > > > > // Retry
              > > > > > try {
              > > > > > tx.rollback();
              > > > > > attempts++;
              > > > > > }
              > > > > > catch (Exception e) {
              > > > > > // Something unrecoverable has happened
              > > > > > throw e;
              > > > > > }
              > > > > > }
              

  • Object Oriented Databases and entity beans?

    Does one of the authors care to comment on the benefits of using OODBMS models versus RDBMS models for entity beans? Any differences between BMP and CMP in this scenario?
    Thanks!
    Peter

    Bump?

  • Session vs Entity Bean in Business Layer???

    Hi,
    I am developing a Hotel Management System project, I am planning to use the following softwares for it:-
    Presentation - JSP
    Web controller - Action class(Struts)
    Business Layer - Session Facade( Stateless Session Bean)
    DAO - Hibernate
    DB - Oracle 9i
    Model - ValueObject
    This is what i have decided to use to build the flow of the application.
    I have an idea about JSP,STRUTS,HIBERNATE & ORACLE. Since i have used it before.
    But in the case of business layer, i have doubt (since i am going to use EJB for the first time) whether to use a Session bean or entity bean where i will be writing my own queries(Stored proc.) as well as i will be using the predefined functions of hibernate to store the data .
    I also want to know whether i need to go for StatefullSB or Stateless SB if i use a sessionfacade(which i have planned to do)??
    When in what situation i need to for this approach???
    Please provide an answer for this & pls. do mention my flow is right or
    wrong??
    Excepting ur valuable thoughts..
    Thanks,
    JavaCrazyLover

    Hi
    I also want to know whether i need to go for StatefullSB or Stateless SB if i >use a sessionfacade(which i have planned to do)??
    When in what situation i need to for this approach???That depends on how your application will be used.
    Stateless and Statefull session bean are different.
    If you want to keep informations such as shopping cart, you can use Statefull.
    If you plan to have a huge number of request at time, Stateless can be faster.
    You can also keep your information such as shopping cart in the session scope of your web jsp tier. (if you use only web client.)
    In your case, i would choice, Stateless.
    Anybody, correct me if i'm wrong.
    Tks.

  • Implementation of Entity Beans

    Hi..
    Can anyone help me in my doubts?
    Whenever i have an entity bean object , and say at given instant of time more tan one user wants to update the data that the entity bean represent.
    Take a particular case:
    One user calls an entity bean modifies itzz state say one field but doesn't commit , now at the same time some other user modifies the state say another field and commits it.
    What will happen to the modification made by the first user?are they lost or they are also commited with it.Now the first user undo itzz changes and commit it . What will be the state of the entity bean?
    Thankzz in advance !!
    Somilj

    You first need to understand why two users would update the same row at the same time, and then define what you wish the expected results to be (the behaviour of locking all other users whilst one user updates data may be what you require).
    Once you understand your desired behaviour, you can then consider how isolation levels and transactions help achieve that behaviour.
    Loosely speaking, you can consider a transaction as an atomic operation on data in a database (enterprise resource), and Isolation levels as how that data may be manipulated when held in a transaction.
    You can set isolation levels per entity bean method (e.g. SERIALIZABLE or REPEATABLE_READ) and indicate, per session bean method how it partakes in any transaction (e.g.TX_REQUIRED or TX_NOT_SUPPORTED).
    For example, suppose you need to set some data in a row, perform a lot of other calculations controlled by a session bean, using other session and entity beans, then allow that data to be changed by someone else. To do so, it is likely that you would include all entity/session beans in a container managed transaction with the isolation level for the data set to serializable. Here the data would be 'locked' until the complete operation had finished.
    Suppose you only need to lock the data for a small part of the overall computation, then you could choose to use several container managed transactions, or place the update of data outside a transaction, or use explicit Bean Managed Transactions (where the code you right manages the transaction).
    Adam
    Hi..
    Can anyone help me in my doubts?
    Whenever i have an entity bean object , and say at
    given instant of time more tan one user wants to
    update the data that the entity bean represent.
    Take a particular case:
    One user calls an entity bean modifies itzz state say
    one field but doesn't commit , now at the same time
    some other user modifies the state say another field
    and commits it.
    What will happen to the modification made by the first
    user?are they lost or they are also commited with
    it.Now the first user undo itzz changes and commit it
    . What will be the state of the entity bean?
    Thankzz in advance !!
    Somilj

  • Multiple create methods of entity beans in single transcation

    Hi,
    I have some entity beans with CMR. I am managing these entity beans with a Stateful session bean whose transaction type is Container Managed for all its methods.
    In one particular method of this Session bean I am calling two entity bean's create method. i.e I am creating two entity beans through home.create() methods. There are two home.create() methods one after another inside a try catch block.
    I want that the entire operation be under just one transcation so i have also given the transaction attribute as Required for all methods of Session bean and Entity Beans.
    However if i pass invalid parameters to second create method so that it generates exception then still the first create statement is successful and database is updated.
    what i want is that the first create also should be roll backed.
    How can i acheive this through Container Managed Transaction Session Bean?

    Hi Ashwini,
    "Ashwini" <[email protected]> wrote in message news:400291af$[email protected]..
    I have some entity beans with CMR. I am managing these entity beans with a Stateful session bean whose transactiontype is Container Managed for all its methods.
    >
    In one particular method of this Session bean I am calling two entity bean's create method. i.e I am creatingtwo entity beans through home.create() methods. There are two home.create() methods one after another inside a try catch
    block.
    >
    I want that the entire operation be under just one transcation so i have also given the transaction attribute asRequired for all methods of Session bean and Entity Beans.
    >
    However if i pass invalid parameters to second create method so that it generates exception then still the firstcreate statement is successful and database is updated.
    what i want is that the first create also should be roll backed.
    How can i acheive this through Container Managed Transaction Session Bean?o Do you use TXDatasource with your entity beans?
    o In CMT transactions are automatically rolled back only when RuntimeExceptions
    are thrown. What kind of exception is thrown in your case?
    Regards,
    Slava Imeshev

  • RE: Accessing a CMP Entity Bean

    Hi There,
    I have written a couple of CMP entity beans. When I run the client application, I am getting a ORB minor code 257. The error message follows. My code works with both BMP entity beans and session beans. Can anyone help? Thanks in advance.
    Aug 21, 2005 10:24:57 PM com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_value
    WARNING: "IOP00810257: (MARSHAL) Could not find class"
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
         at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:7987)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1013)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:330)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:296)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:255)
         at com.sun.corba.ee.spi.servicecontext.UEInfoServiceContext.<init>(UEInfoServiceContext.java:30)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.spi.servicecontext.ServiceContextData.makeServiceContext(ServiceContextData.java:114)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.unmarshal(ServiceContexts.java:195)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:365)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:353)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:470)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:327)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:158)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at ctaejb.entitybean.order._IOrderHome_DynamicStub.findByPrimaryKey(_IOrderHome_DynamicStub.java)
         at mainapp.CTestApplication.main(CTestApplication.java:32)
    Caused by: java.lang.ClassNotFoundException
         ... 27 more
    org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: Maybe
         at com.sun.corba.ee.spi.servicecontext.UEInfoServiceContext.<init>(UEInfoServiceContext.java:34)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.spi.servicecontext.ServiceContextData.makeServiceContext(ServiceContextData.java:114)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.unmarshal(ServiceContexts.java:195)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:365)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:353)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:470)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:327)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:158)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at ctaejb.entitybean.order._IOrderHome_DynamicStub.findByPrimaryKey(_IOrderHome_DynamicStub.java)
         at mainapp.CTestApplication.main(CTestApplication.java:32)

    This is probably not the best forum to get an answer. Try this one instead:
    http://forum.java.sun.com/forum.jspa?forumID=13
    Its difficult to know exactly the source of your problem. If your code works for session beans and Entity beans using BMP then I can only think of the following:
    In a CMP Bean, the ejbLoad and ejbStore methods do nothing. The container performs the load and store for you. I don't know whether leaving code in these methods will cause any problems though.
    You will need to make a few changes to your ejbCreate method though. Suppose your ejbCreate method looks like this:
    public PersonKey ejbCreate(String aFirstName, String aLastName) You still need to initialise the firstName and lastName fields in the bean.
    firstName = aFirstName;
    lastName = aLastName;Normally, the ejbCreate method returns the key value for the created object. Using CMP, you must return null. The container generates the new key value and returns it to the client.
    Not sure if that will help. Post on the link above if not.
    Simon

Maybe you are looking for