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.

Similar Messages

  • 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?

  • 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

  • URGENT- PLEASE HELP: java.lang.threads and BC4J

    Hi,
    according to my issue "no def found for view" in the same titled thread I'm wondering how you would implement asynchronous calls of methods that use BC4J to update a couple of data.
    To be more precise:
    A requirement of our software is to start an update database job, which can take a couple of minutes/hours, from the web browser. Before it will be executed the logged-in user receives a notification that this batch job has been started.
    I dont't want to use JMS overhead and MD Beans for this simple requirement, therefore I implemented a class that extends java.lang.Thread and put all the update codings within the run method. After having called the start-method of the thread I get a JBO-25022(No XML file found) error when I try to set a new value for an attribute of the row. The row consists of attributes which belong to four entity objects that mus be updated.
    When calling the run method directly, everything works fine.
    My questions:
    * do you know any workaround how to make the xml files
    reachable?
    * how would you implement anschronous calls of long time-
    consuming jobs?
    * is this a bug of BC4J?
    Any help, tip, hint is really appreciated.
    Stefan

    Arno,
    many thanks for your reply:
    Here is an excerpt of the source code of my thread "Aenderungsdienst":
    public class Aenderungsdienst extends java.lang.Thread
    private SviAdministrationModuleImpl mSviModul;
    // Application module that contains view object
    // IKViewImpl
    public Aenderungsdienst(SviAdministrationModuleImpl aSviModul)
    mSviModul = aSviModul;
    public void run()
    ausfuehrenAenderungsdienst(mAenderungsdienstNr); <--error within this methode
    private int ausfuehrenAenderungsdienst(String aAenderungsdienstNr)
    int rAnzahlSaetze = 0;
    try
    IkViewImpl aenderungen = mSviModul.getIkView();
    aenderungen.suchenAenderungssaetze(aAenderungsdienstNr); <-- method within View Object Impl that executes a query with customized where-clauses
    if ((rAnzahlSaetze = aenderungen.getRowCount()) > 0)
    IkViewRowImpl ik = null;
    while (aenderungen.hasNext())
    ik = (IkViewRowImpl) aenderungen.next();
    ik.setBestandsstatus("B"); <-- error occurs here when setting the status of a current row in my rowset to "B"
    mSviModul.getTransaction().postChanges();
    mSviModul.getTransaction().commit();
    catch (Exception e)
    e.printStackTrace();
    mSviModul.getTransaction().rollback();
    //todo: Verarbeitungsprotokoll erstellen
    return rAnzahlSaetze;
    This thread will be called by the application module "sviAdministrationModuleImpl":
    public void ausfuehrenAenderungsdienst(String
    aAenderungsdienstNr)
    Aenderungsdienst aenderungsdienst = new
    Aenderungsdienst(this);
    aenderungsdienst.setAenderungsdienstNr
    (aAenderungsdienstNr);
    aenderungsdienst.start();
    Using the start() method of the thread causes this exception:
    [653] No xml file: /hvbg/svi/model/businessobjects/businessobjects.xml, metaobj = hvbg.svi.model.businessobjects.businessobjects
    [654] Cannot Load parent Package : hvbg.svi.model.businessobjects.businessobjects
    [655] Business Object Browsing may be unavailable
    [656] No xml file: /hvbg/svi/model/businessobjects/IK_Inlandsbankverb.xml, metaobj = hvbg.svi.model.businessobjects.IK_Inlandsbankverb
    09.03.2004 10:27:41 hvbg.common.businessobjects.HvbgEntityImpl setAttributeInternal
    SCHWERWIEGEND: Fehler beim Setzen des Attributs 1 im Entity Objekt: JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
    09.03.2004 10:27:42 hvbg.svi.model.dienste.Aenderungsdienst ausfuehrenAenderungsdienst
    SCHWERWIEGEND: Beim Ausführen des Aenderungsdienstes 618 trat während der DB-Aktualisierung ein schwerer Fehler auf:
    JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
    oracle.jbo.NoDefException: JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:328)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:268)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:649)
         at oracle.jbo.server.EntityAssociation.findEntityAssociation(EntityAssociation.java:98)
         at oracle.jbo.server.AssociationDefImpl.resolveEntityAssociation(AssociationDefImpl.java:725)
         at oracle.jbo.server.AssociationDefImpl.getEntityAssociation(AssociationDefImpl.java:135)
         at oracle.jbo.server.AssociationDefImpl.hasContainer(AssociationDefImpl.java:546)
         at oracle.jbo.server.AssociationDefImpl.getContainer(AssociationDefImpl.java:468)
         at oracle.jbo.server.EntityImpl.getContainer(EntityImpl.java:1573)
         at oracle.jbo.server.EntityImpl.setValidated(EntityImpl.java:1649)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:2081)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:1985)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1700)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:946)
         at hvbg.common.businessobjects.HvbgEntityImpl.setAttributeInternal(HvbgEntityImpl.java:56)
         at hvbg.svi.model.businessobjects.IKImpl.setBestandsstatus(IKImpl.java:174)
         at hvbg.svi.model.businessobjects.IKImpl.setAttrInvokeAccessor(IKImpl.java:770)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:859)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1108)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1019)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1047)
         at hvbg.svi.model.dataviews.IkViewRowImpl.setBestandsstatus(IkViewRowImpl.java:264)
         at hvbg.svi.model.dienste.Aenderungsdienst.ausfuehrenAenderungsdienst(Aenderungsdienst.java:337)
         at hvbg.svi.model.dienste.Aenderungsdienst.run(Aenderungsdienst.java:290)
    Using run(), everything works perfectly.
    The view object IKView consists of four entity objects which are linked by associations. There exists an association between the entity objects ik and inlandbankverb. The xml-file for the association object is named "ik_inlandsbankverb.xml". It seems so that this definition could not be found when calling my thread in asynchronous (via start()-method call) mode.
    Is this a bug of JDeveloper?
    Thanks in advance,
    Stefan

  • Help with exception calling cmp entity bean from session bean

    Hi,
    I know someone else posted a very similar problem recently but I think the root of my problem may be different.
    This is the exception that I receive:
    javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:114)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at itsthes.security._SecurityManager_Stub.findUserRoles(Unknown Source)
    at itsthes.security._SecurityManager_Stub.findUserRoles(Unknown Source)
    at itsthes.security.servlets.SecurityUserListView.processRequest(SecurityUserListView.java:80)
    at itsthes.security.servlets.SecurityUserListView.doGet(SecurityUserListView.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    Caused by: org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
    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:274)
    at java.lang.Class.newInstance0(Class.java:306)
    at java.lang.Class.newInstance(Class.java:259)
    at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:94)
    at com.sun.corba.ee.internal.iiop.LocalClientResponseImpl.getSystemException(LocalClientResponseImpl.java:120)
    at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:133)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    at itsthes.security._SecurityManager_Stub.findUserRoles(Unknown Source)
    ... 17 more
    This is my primary key implementation:
    public final class SecurityUserKey implements java.io.Serializable {
    public java.lang.Integer userId;
    public java.lang.Integer roleId;
    public java.lang.String emailAddress;
         * Creates an empty key for Entity Bean: SecurityUser
         public SecurityUserKey() {
    * @see java.lang.Object#equals(java.lang.Object)
    public boolean equals(java.lang.Object otherOb) {
    if (this == otherOb) {
    return true;
    if (!(otherOb instanceof itsthes.security.entitybeans.SecurityUserKey)) {
    return false;
    itsthes.security.entitybeans.SecurityUserKey other = (itsthes.security.entitybeans.SecurityUserKey) otherOb;
    return (
    (userId==null?other.userId==null:userId.equals(other.userId))
    (roleId==null?other.roleId==null:roleId.equals(other.roleId))
    (emailAddress==null?other.emailAddress==null:emailAddress.equals(other.emailAddress))
    * @see java.lang.Object#hashCode()
    public int hashCode() {
    return (
    (userId==null?0:userId.hashCode())
    ^
    (roleId==null?0:roleId.hashCode())
    ^
    (emailAddress==null?0:emailAddress.hashCode())
    My entity method invocation is this:
    public Collection findUserRoles() {
    Vector userCollection=new Vector();
    try {
    Context jndiContext = new InitialContext();
    LocalSecurityUserHome home = (LocalSecurityUserHome) jndiContext.lookup(this.securityUserBean);
    Iterator i = home.findAll().iterator();
    while ( i.hasNext() ) {
    LocalSecurityUser securityUser = (LocalSecurityUser)i.next();
    SecurityUser sessionBean=mapLocalSecurityUser(securityUser);
    userCollection.add(sessionBean);
    } catch (javax.naming.NamingException e) {
    System.err.println(e);
    } catch (javax.ejb.FinderException e) {
    System.err.println(e);
    return userCollection;
    If anyone could point me in the right direction that would be great.
    thanks,
    William

    Hi,
    The Transaction Rollback exception may be due to the SystemException thrown in your findUserRoles() code which force the container to rollback the transaction. catch the generic exception in your findUserRoles() code and veriy what went wrong.
    i hope this helps.
    -ram

  • 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.

  • 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.

  • 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 ..

  • 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

  • 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?

  • Help: java.library.path and javah

    Hello,
    I have a little problem with my java.library.path!
    I am working on a program which loads a dll in c++ that I have compiled
    and will be used by a java program.
    My java program consists of 2 Classes:
    -- MonitorContainer.class creates an object; this object has an attribute which is a String type and it should be communicating with my dll: Diskid32.dll
    -- This dll is loaded by another class : Diskid32.class with a known
    and documented method: System.loadLibrary("Diskid32").
    When all the following files(MonitorContainer.class, Diskid32.class, Diskid32.dll) are in the same folder, the program works fine
    I need to put the Diskid32.dll and the Diskid32.class into a package! (package myutil.Disk)
    I have two questions concerning the javah tool:
    -- when I when I create the signatures with javah should I run:
    ------ javah Diskid32 or something else like
    ------ javah util.Disk.Diskid32 or ...
    I have tried both of these and they produce header files which are different and both produce the same result in execution error
    when I run my program and it's package
    -- I tried to configure the java.library.path but still no go! When I launch java MonitorContainer I receive the following wrong message :
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no Diskid32 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344)
    at java.lang.Runtime.loadLibrary0(Runtime.java:744)
    at java.lang.System.loadLibrary(System.java:815)
    at myutil.Disk.Diskid32.<clinit>(Diskid32.java:52)
    at MonitorContainer.main(MonitorContainer.java:21)
    My conclusion is that library path is not well configured
    and the JVM is not finding my library diskid32.dll.
    Thank for all...
    Stephane

    Hello,
    I 've solve my problem: to set the library path You must write :
    java -Djava.library.path=c:/xxx/yyy/zzz ; c:/xxx/yyy/zzz is the path to locate the Dll!
    But the really problem was a forgetting in the c++ code, I have write a mistake in the line that references � class!
    (jclass cls = env->FindClass(".../.../...");)
    Thank for all

  • Issue with create user and issue with Java Development tab

    I have two issues with EP,
    1. When i login with Super Admin user, i am unable to Create any user from User Admin tab. Do i have to change the settings of the Super Admin? or is there any criteria for creating the user?
    2. How to assign any user the Java Development tab. Though i login with a super admin user i am unable to see the Java Development role and when tried to assign the role, there were no searches for that Java....

    Hi Adi,
    by default the super administrater has got all permissions. Thus you should be able to create portal users when using a user assigned to the portal group Administrators.
    In order to help you with your first question we need more information. Please describe the malfunction in detail. Have a look into the log files and post related error messages.
    Regarding your second question: You will find the java development role in PCD
    pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.pct.pdk/Roles/com.sap.pct.pdk.JavaDeveloper.
    If not, then you haven't installed the PDK business package in your portal.
    Go to service.sap.com, choose downloads and search the package (PDK should do it). Download the package, and deploy on your portal using SDM.
    Best regards,
    Martin

Maybe you are looking for