Are Bean Managed Persistance EJBs a better choice for an application with a lot of Oracle 9i JDBC activity?

 

You don't really give enough information to answer the question. Probably the most important questions are the coarseness of the database activity, the need for remoteability, and the need for a component and security model.
The short, rule of thumb, answer is that Entity Beans (regardless of BMP vs. CMP) almost always have a significant performance penalty. You should choose Entity Beans because you need/want the features of Entity Beans, not because of performance.
David

Similar Messages

  • EJB modules were found for this application

    I'm deploy may application on weblogic server 10R3
    myejb.jar file is deployed success
    When I deployed mayapp.war, the following error occured.
    *weblogic.deployment.EnvironmentException: [J2EE:160167]The module jvcwebapp.war in application jvcwebapp uses ejb-links but no EJB modules were found for this application.*
    web.xml
    <ejb-local-ref>
    <ejb-ref-name>ejb/local/SessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local>model.SessionEJBLocal</local>
    <ejb-link>SessionEJB</ejb-link>
    </ejb-local-ref>
    thanks
    Thiensu2810

    The module abc-ViewController-context-root in application abc_Project1_abc uses ejb-links but no EJB modules were found for this application
    Is the application deployed as an EAR application with web and ejb modules? If not, deploy as an EAR application.

  • Clustering read-only bean-managed entity ejbs

              I'm designing a data caching approach that relies on using read-only entity ejbs with bean-managed persistence. My design is based on the fact that WebLogic blocks on entity bean access by concurrent users for a given bean instance (unique primary key). I would like to keep only one entity bean instance active(timeoutSetting=0) for eacy primary key for all users to share. That way I only have to hit the database one time to initially populate data in the entity bean. I'm worried about this approach in a WebLogic clustered environment. From reading notes in this newsgroup and other doc, it appears that WebLogic might not use one instance of the entity bean (based upon unique primary key) in a clustered environment. Is that true (that being multiple users could get their own instance of the entity bean with the same primary key)?
              Thanks,
              Bryan
              

    Typically, the read-write EJBs are on each WL server instance, so there is
              no remote invocation -- it is all done by reference.
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Bryan Dixon" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I guess I'm confused about read-write (not read-only) entity beans being
              pinned or not. This is from WebLogic 5.1 EJB doc:
              > "read-write entity EJBs do not use a clustered EJBObject stub; a client's
              method calls to a particular EJB always go to a single WebLogic Server
              instance. If the server that a client is using fails, the client must
              re-find the entity EJB using the cluster-aware home stub."
              >
              > Doesn't that mean the entity bean instance for a primary key is pinned to
              a single WebLogic Server instance? Maybe I'm just misunderstanding
              terminology about what a "particular EJB" is - I was thinking it is an
              entity bean instance for a unique primary key.
              >
              > Thanks,
              > Bryan
              >
              >
              > "Cameron Purdy" <[email protected]> wrote:
              > >>I was thinking that read-write entity beans were pinned.
              > >
              > >Not unless you pin them. Basically, that means that the JAR/XML that
              > >contains/specifies the EJB only is on one server.
              > >
              > >> So if two separate weblogic instances in a cluster did a find on an
              entity
              > >ejb with the same primary key and then performed some business method on
              > >that entity ejb, would there really be two separate bean instances in
              each
              > >weblogic instance for the same primary key?
              > >
              > >If it is not pinned, yes.
              > >
              > >--
              > >Cameron Purdy
              > >Tangosol, Inc.
              > >http://www.tangosol.com
              > >+1.617.623.5782
              > >WebLogic Consulting Available
              > >
              > >
              > >"Bryan Dixon" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> Toa, thanks again.
              > >>
              > >> There are a couple of things I'm not clear about though. One is that I
              > >want one instance of an entity bean per primary key, not a singleton of
              the
              > >entity bean itself. How would JNDI in a clustered environment help me
              > >there?
              > >>
              > >> The other question I have is about having multiple instances of an
              entity
              > >bean for the same primary key in the cluster. I was thinking that
              > >read-write entity beans were pinned. So if two separate weblogic
              instances
              > >in a cluster did a find on an entity ejb with the same primary key and
              then
              > >performed some business method on that entity ejb, would there really be
              two
              > >separate bean instances in each weblogic instance for the same primary
              key?
              > >>
              > >> Thanks again,
              > >> Bryan
              > >>
              > >> "Tao Zhang" <[email protected]> wrote:
              > >> >
              > >> >"Bryan Dixon" <[email protected]> wrote:
              > >> >>
              > >> >>The reason I was wanting one instance per primary key is that I want
              to
              > >use this entity bean to cache some data from database tables. This data
              > >doesn't change frequently, so we were wanting to get it from this entity
              > >bean's memory instead of constantly hitting the database. This data is
              > >global to all users, so we don't want to store it in stateful session
              beans.
              > >> >>
              > >> >>After reading more about the read-only cache-strategy it doesn't
              appear
              > >that any sycnhronization will occur if the entity bean for a given
              primary
              > >key is updated (state data is updated) in one weblogic instance, that
              change
              > >will not get synced up with other weblogic instances for that same
              primary
              > >key. Is that correct?
              > >> >>
              > >> >It's correct. If you do want to have exact one copy in the cluster.
              You
              > >can read Using JNDI in cluster environment.
              > >> >
              > >> >>If I deploy this entity bean with read-write cache-strategy the
              WebLogic
              > >doc reads as if I will get one instance per primary key that is pinned to
              > >one WebLogic instance and I won't get any fail-over or load-balancing on
              the
              > >ejbObject (the entity bean instance). Did I read this correctly? If
              that
              > >is the case, what is the advantage of setting up read-write entity beans
              to
              > >be clusterable - just the Home objects? I definitely could be
              > >misunderstanding something in the doc since I'm very new to clustering.
              > >> "Tao
              > >> >Zhang"
              > >> ><[email protected]> wrote:
              > >> >>>
              > >> >
              > >> >It's not only instance in the cluster. Probably many instances.
              > >> >
              > >> >If you use 2 tier clustering, failover will not happen because of
              > >co-location. But if you use 3 tier cluster, you can write the special
              code
              > >in the client side to do failover and load-balance.
              > >> >
              > >> >In a 2 tier cluster, actually the ejb load balancing and failover is
              > >almost useless.
              > >> >
              > >> >But in 3 tier, you can use it.
              > >> >
              > >> >Hope this help.
              > >> >
              > >> >
              > >> >
              > >> >>>"Bryan Dixon" <[email protected]> wrote:
              > >> >>>>
              > >> >>>>Thanks Tao.
              > >> >>>>
              > >> >>>>A couple more questions...
              > >> >>>>I was planning deploying this entity bean with the read-only
              > >cache-strategy which means our transaction attribute would be
              > >TXN_NOT_SUPPORTED. Also, our db isolation is TRANSACTION_READ_COMMITTED.
              > >> >>>>
              > >> >>>>Based upon how I was planning on deploying this entity bean, would
              > >WebLogic create an instance of the bean for each primary key in each
              > >cluster? I'm just trying to figure out how many duplicate bean instances
              > >for the primary key I could have across all clusters. I was really just
              > >wanting one instance that is shared among all clients and was hoping that
              > >the clustering would provide me with fail-over if that one cluster went
              > >down.
              > >> >>>>
              > >> >>>If you use 3 tier cluster structure, it's impossible to know how
              many
              > >instances of ejb with the same primary key. Probably one instance for
              each
              > >wls instance.
              > >> >>>In wls5.1, it's impossible to host only read only entity bean
              instance
              > >in the 3-tier cluster. Because read only entity bean are clusterable in
              both
              > >home and remote interface.
              > >> >>>
              > >> >>>>Regarding making the bean a pinned service, which it sounds like I
              > >might have to do to get the results I want, how do I do that? Is that a
              > >deployment descriptor setting? Also, if I make it a pinned service, do I
              > >get any fail-over suport by clustering the bean?
              > >> >>>>
              > >> >>>For the pinned service, you can just deployed on one or several
              server
              > >instances. The per-server properties file is a good place to put the
              > >weblogic.ejb.deploy property. If only one pinned service in the cluster,
              you
              > >can't get fail over. If the that server instance fails, the home stub
              will
              > >be removed from the jndi in other server instances.
              > >> >>>
              > >> >>>Why do you must need only one instance in the cluster? Do you want
              > >exact-only-copy? You can read Using JNDI doc about its in cluster
              > >environment.
              > >> >>>
              > >> >>>
              > >> >>>
              > >> >>>
              > >> >>>>Thanks again,
              > >> >>>>Bryan
              > >> >>>>
              > >> >>>>
              > >> >>>>
              > >> >>>>"Tao Zhang" <[email protected]> wrote:
              > >> >>>>>
              > >> >>>>>
              > >> >>>>>Bryan Dixon <[email protected]> wrote in message
              > >> >>>>>news:[email protected]...
              > >> >>>>>>
              > >> >>>>>> I'm designing a data caching approach that relies on using
              > >read-only
              > >> >>>>>entity ejbs with bean-managed persistence. My design is based on
              the
              > >fact
              > >> >>>>>that WebLogic blocks on entity bean access by concurrent users for
              a
              > >given
              > >> >>>>>bean instance (unique primary key). I would like to keep only one
              > >entity
              > >> >>>>>bean instance active(timeoutSetting=0) for eacy primary key for
              all
              > >users to
              > >> >>>>>share. That way I only have to hit the database one time to
              > >initially
              > >> >>>>>populate data in the entity bean. I'm worried about this approach
              in
              > >a
              > >> >>>>>WebLogic clustered environment. From reading notes in this
              newsgroup
              > >and
              > >> >>>>>other doc, it appears that WebLogic might not use one instance of
              the
              > >entity
              > >> >>>>>bean (based upon unique primary key) in a clustered environment.
              Is
              > >that
              > >> >>>>>true (that being multiple users could get their own instance of
              the
              > >entity
              > >> >>>>>bean with the same primary key)?
              > >> >>>>>>
              > >> >>>>>
              > >> >>>>>
              > >> >>>>>It's true. In a cluster environment, each wls instance can have
              their
              > >ejb
              > >> >>>>>instance. The block of concurrent access to the ejb data is up to
              > >your
              > >> >>>>>transaction attribute and isolation level and your database.
              > >> >>>>>
              > >> >>>>>If you only want to keep one instance active, you can make the
              > >read-only
              > >> >>>>>entity bean a pinned service, to be deployed in one instance. But
              the
              > >> >>>>>network overhead is worse.
              > >> >>>>>
              > >> >>>>>
              > >> >>>>>> Thanks,
              > >> >>>>>> Bryan
              > >> >>>>>
              > >> >>>>>
              > >> >>>>
              > >> >>>
              > >> >>
              > >> >
              > >>
              > >
              > >
              >
              

  • IO7 in good, but the fine lines of the characters are a nuisance. Is there a way to convince Apple to offer a better style for aging persons with limited vision?

    iO7 in good, but the fine lines of the characters are a nuisance. Is there a way to convince Apple to offer a thicker letter type for aging persons with limited vision?

    I turned on Bold Text - the phone will restart itself, that's normal - and it is now MUCH easier on my eyes.
    Give it a try.

  • Laptop monitor choice for photo editing with lightroom and photoshop

    Hi,
    i'm going to buy a laptop, mostly for photo editing with lightroom and photoshop use.
    I'm in trouble with the display choice.
    One laptop has LG LP156WF4 or AUO B156HAN01 display, that should be very similar matte ips display with 55%-60% coverage of AdobeRGB. You can find a review in the "Display" section of these link : http://www.notebookcheck.net/Review-Clevo-W650SJ-Schenker-M504-Barebones-Notebook.114329.0 .html
    The other laptop hasAU Optronics B156HW01 V.4 Matte 95%, that is a TN matte display with  95% coverage of AdobeRGB. You can find a review in these link (the display should be the green bar): http://www.anandtech.com/show/4649/mythlogic-pollux-1400-clevos-w150hr-tested/6
    My question is: which one is better for photo editing with photoshop and lightroom?
    Someone says that ips is better because of the fidelity of color reproduction, view angles and contrast.
    Someone, on the other side, says that the TN 95% is better because of the gamut%.
    Can you help me?
    Thanks,
    Marco Grechi

    Macbook pro is out of budget
    Hp assistance said that in italy they don't sell laptop with dreamcolor (i'll call again tomorrow to be sure ) but i think that it would be out of budget (max 2000 euro).
    They said that the best solution for me is the zbook 15 g2 (2300 euro), but they DON'T know brand and model of the display and if i can have SSD + HD inside the zbook 15 g2.
    The laptop with the lg panel costs 1500 euro. the question is; "i know that the lg display is not the best, but is it almost sufficient for my use?". In this way i may save 500/800 to buy a separated display later.
    I have read that dell xps 15 and dell precision m3800 have great display, but they are glossy and very reflective. Is it a big handicap?
    Do you know the 3k 15,6" display Panasonic VVX16T020G00 ? It should be a 8-bit display with 72%NTSC gamut ( http://www.panelook.com/VVX16T020G00_Panasonic_15.5_LCM_parameter_22014.html )
    Do you sugget me a 3k display for photo editing?
    Thanks

  • Deploying Entity Bean Managed Persistant Example.

    Here is my error after running the client:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Transaction aborted; nested exception is: javax.transaction.RollbackException; nested exception is:
    javax.transaction.RollbackException
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:170)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at Test1HomeStub.create(Unknown Source)
    at Test1Client.main(Unknown Source)
    Here is the J2EE Verification error (allthough it deploys sucessfully I get this error for all the
    tuitorial examples)
    Error: [ ejb/SimpleTest1 ] class [ Test1Home ] cannot be found within this jar [ app-client-ic.jar ].
    For [ app-client-ic.jar ]
    Error: [ ejb/SimpleTest1 ] class [ Test1 ] cannot be found within this jar [ app-client-ic.jar ].
    I have edited the SavingsAccount example so it has only got one table, two fields and a couple of methods. Here is the code:
    create.sql
    drop table test1;
    create table test1
    (id varchar(3) constraint pk_test1 primary key,
    firstname varchar(24) );
    exit;
    Test!Bean.java
    import java.sql.*;
    import javax.sql.*;
    import java.util.*;
    import javax.ejb.*;
    import javax.naming.*;
    public class Test1Bean implements EntityBean {
    private final static String dbName = "java:comp/env/jdbc/Test1DB";
    private String id;
    private String firstName;
    private EntityContext context;
    private Connection con;
    public String getFirstName() {
    return firstName;
    public String ejbCreate(String id, String firstName) throws CreateException {
    try {
    insertRow(id, firstName);
    } catch (Exception ex) {
    throw new EJBException("ejbCreate: " + ex.getMessage());
    this.id = id;
    this.firstName = firstName;
    return id;
    public String ejbFindByPrimaryKey(String primaryKey)
    throws FinderException {
    boolean result;
    try {
    result = selectByPrimaryKey(primaryKey);
    } catch (Exception ex) {
    throw new EJBException("ejbFindByPrimaryKey: " + ex.getMessage());
    if (result) {
    return primaryKey;
    } else {
    throw new ObjectNotFoundException("Row for id " + primaryKey +
    " not found.");
    public void ejbRemove() {
    try {
    deleteRow(id);
    } catch (Exception ex) {
    throw new EJBException("ejbRemove: " + ex.getMessage());
    public void setEntityContext(EntityContext context) {
    this.context = context;
    public void unsetEntityContext() {
    public void ejbActivate() {
    id = (String) context.getPrimaryKey();
    public void ejbPassivate() {
    id = null;
    public void ejbLoad() {
    try {
    loadRow();
    } catch (Exception ex) {
    throw new EJBException("ejbLoad: " + ex.getMessage());
    public void ejbStore() {
    try {
    storeRow();
    } catch (Exception ex) {
    throw new EJBException("ejbStore: " + ex.getMessage());
    public void ejbPostCreate(String id, String firstName) {
    /*********************** Database Routines *************************/
    private void makeConnection() {
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup(dbName);
    con = ds.getConnection();
    } catch (Exception ex) {
    throw new EJBException("Unable to connect to database. " +
    ex.getMessage());
    private void releaseConnection() {
    try {
    con.close();
    } catch (SQLException ex) {
    throw new EJBException("releaseConnection: " + ex.getMessage());
    private void insertRow(String id, String firstName) throws SQLException {
    makeConnection();
    String insertStatement =
    "insert into test1 values ( ? , ? )";
    PreparedStatement prepStmt = con.prepareStatement(insertStatement);
    prepStmt.setString(1, id);
    prepStmt.setString(2, firstName);
    prepStmt.executeUpdate();
    prepStmt.close();
    releaseConnection();
    private void deleteRow(String id) throws SQLException {
    makeConnection();
    String deleteStatement = "delete from test1 where id = ? ";
    PreparedStatement prepStmt = con.prepareStatement(deleteStatement);
    prepStmt.setString(1, id);
    prepStmt.executeUpdate();
    prepStmt.close();
    releaseConnection();
    private boolean selectByPrimaryKey(String primaryKey)
    throws SQLException {
    makeConnection();
    String selectStatement =
    "select id " + "from test1 where id = ? ";
    PreparedStatement prepStmt = con.prepareStatement(selectStatement);
    prepStmt.setString(1, primaryKey);
    ResultSet rs = prepStmt.executeQuery();
    boolean result = rs.next();
    prepStmt.close();
    releaseConnection();
    return result;
    private void loadRow() throws SQLException {
    makeConnection();
    String selectStatement =
    "select firstname from test1 where id = ? ";
    PreparedStatement prepStmt = con.prepareStatement(selectStatement);
    prepStmt.setString(1, this.id);
    ResultSet rs = prepStmt.executeQuery();
    if (rs.next()) {
    this.firstName = rs.getString(1);
    prepStmt.close();
    } else {
    prepStmt.close();
    throw new NoSuchEntityException("Row for id " + id +
    " not found in database.");
    releaseConnection();
    private void storeRow() throws SQLException {
    makeConnection();
    String updateStatement =
    "update test1 set firstname = ? where id = ?";
    PreparedStatement prepStmt = con.prepareStatement(updateStatement);
    prepStmt.setString(1, firstName);
    prepStmt.setString(4, id);
    int rowCount = prepStmt.executeUpdate();
    prepStmt.close();
    if (rowCount == 0) {
    throw new EJBException("Storing row for id " + id + " failed.");
    releaseConnection();
    // Test1Bean
    Test1Client
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class Test1Client {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    Object objref =
    initial.lookup("java:comp/env/ejb/SimpleTest1");
    Test1Home home =
    (Test1Home) PortableRemoteObject.narrow(objref,
    Test1Home.class);
    Test1 duke =
    home.create("123", "Duke");
    duke = home.findByPrimaryKey("123");
    System.out.println(duke.getFirstName());
    System.exit(0);
    catch (Exception ex)
    System.err.println("Caught an exception.");
    ex.printStackTrace();
    Test1Home.jav
    import java.rmi.RemoteException;
    import javax.ejb.*;
    public interface Test1Home extends EJBHome {
    public Test1 create(String id, String firstName) throws RemoteException, CreateException;
    public Test1 findByPrimaryKey(String id)
    throws FinderException, RemoteException;
    Test1.java
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface Test1 extends EJBObject {
    public String getFirstName() throws RemoteException;
    application.xml (Test1App.ear)
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    <description>Application description</description>
    <display-name>Test1App</display-name>
    <module>
    <java>app-client-ic.jar</java>
    </module>
    <module>
    <ejb>ejb-jar-ic.jar</ejb>
    </module>
    </application>
    sun-application.xml (Test1App.ear)
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-application PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 J2EE Application 1.4//EN" "http://www.sun.com/software/appserver/dtds/sun-application_1_4-0.dtd">
    <sun-application>
    <pass-by-reference>false</pass-by-reference>
    </sun-application>
    ejb-jar.xml (in ejb-jar-ic.jar)
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>Test1JAR</display-name>
    <enterprise-beans>
    <entity>
    <ejb-name>Test1Bean</ejb-name>
    <home>Test1Home</home>
    <remote>Test1</remote>
    <ejb-class>Test1Bean</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>true</reentrant>
    <resource-ref>
    <res-ref-name>jdbc/Test1DB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <security-identity>
    <use-caller-identity/>
    </security-identity>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>java.lang.Object</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getHomeHandle</method-name>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>isIdentical</method-name>
    <method-params>
    <method-param>javax.ejb.EJBObject</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getFirstName</method-name>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>findByPrimaryKey</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>javax.ejb.Handle</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getHandle</method-name>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>create</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getEJBMetaData</method-name>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getPrimaryKey</method-name>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>remove</method-name>
    </method>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEJBHome</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>remove</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
    <method>
    <ejb-name>Test1Bean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getFirstName</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    sun-ejb-jar.xml (in ejb-jar-ic.jar )
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 EJB 2.1//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_2_1-0.dtd">
    <sun-ejb-jar>
    <enterprise-beans>
    <name>Test1JAR</name>
    <ejb>
    <ejb-name>Test1Bean</ejb-name>
    <jndi-name>Test1Bean</jndi-name>
    <resource-ref>
    <res-ref-name>jdbc/Test1DB</res-ref-name>
    <jndi-name>jdbc/ejbTutorialDB</jndi-name>
    </resource-ref>
    </ejb>
    </enterprise-beans>
    </sun-ejb-jar>
    application-client.xml ( in app-client-ic.jar)
    <?xml version="1.0" encoding="UTF-8"?>
    <application-client xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd"><display-name>Test1Client</display-name>
    <ejb-ref>
    <ejb-ref-name>ejb/SimpleTest1</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <home>Test1Home</home>
    <remote>Test1</remote>
    </ejb-ref>
    </application-client>
    sun-application-client.xml ( in app-client-ic.jar)
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-application-client PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 Application Client 1.4//EN" "http://www.sun.com/software/appserver/dtds/sun-application-client_1_4-0.dtd">
    <sun-application-client>
    <ejb-ref>
    <ejb-ref-name>ejb/SimpleTest1</ejb-ref-name>
    <jndi-name>Test1Bean</jndi-name>
    </ejb-ref>
    </sun-application-client>
    This is adapted from the Savings Account example. I couldn't get it to work either
    from the source provided though it did work with the provided ear. I have been
    comparing the difference in setting but can see anything.
    I have been able to build and deploy all the other examples in the tutorial but I am somehow
    stuck on ejbs.
    Help would be much appreciated.
    cheers,
    paul

    Just had a look at the client jar. The one generated by the Savings Account provided ear has got a shorter ejb-jar.xml. It doesn't have the functions specified like the one in its ear file.
    Another difference thet the Manifest.mf files for my client jar do not have as many paths specified
    as my test client jar. Don't know why. I am suspecting that maybe there is a slight configuration problem in my j2ee setup. Though I am not sure waht or what to look for. I hope this little bit of
    extra info helps.
    cheers,
    paul.

  • Bean-Managed Persistent Entity Bean - SDA

    Hello,
    I wrote a BMP Entity Bean and it should use a data dictionary that i already have defined, but i do not know what should i write in the ejb-jar.xml file in order to get it works. Could you please tell me what should i write?
    <resource-ref>
      <res-ref-name>???</res-ref-name>
      <res-type>????<res-type>
    </resource-ref>
    Thanks for your help,
    SAPLernen

    Hello,
    I wrote a BMP Entity Bean and it should use a data dictionary that i already have defined, but i do not know what should i write in the ejb-jar.xml file in order to get it works. Could you please tell me what should i write?
    <resource-ref>
      <res-ref-name>???</res-ref-name>
      <res-type>????<res-type>
    </resource-ref>
    Thanks for your help,
    SAPLernen

  • IMAQ Resample performanc​e. Any better choice for 50% downsample​? (average 2x2 - 1 pixel)

    My video source is a 4 Mpixel (2k x 2k resolution) USB3 camera. This is displaying a live image OK in Labview at 45 fps using only 20% CPU.  So far, so good.
    I added a "IMAQ Resample" block to downsize this to 1024 x 1024 image. That works with almost no additional processing time if I select "Zero Order" interpolation (eg. plain subsample to value of nearest pixel). However, I want to average each 2x2 block (4 pixels) in the input image into 1 output pixel. I *think* that is the effect of selecting Bi-Linear interpolation. Doing that works, but takes about 45% of CPU.  I want to do some other processing but am worried I will quickly run out of CPU time and start dropping frames.
    Is there any better way to do this simple 50% downsize (2x2 average), that would take less CPU overhead, or is this the best way?

    Hi jbeale1,
    In NI-MAX (Measurement & Automation Explorer) select your camera. Under the  'Acquistion Attributes' tab do you see an option to change the Video Mode of your camera to a different resolution? If your camera supports it, it would be more efficient to change the resolution there.
    If not , here is a little more info regarding the IMAQ Resample VI:
    http://zone.ni.com/reference/en-XX/help/370281P-01​/imaqvision/imaq_resample/
    You are correct, the Bi-Linear option uses a more intensive interpolation technique which is why it is more taxing on your CPU. I hope this is helpful.
    Robert S.
    Applications Engineer
    National Instruments

  • What are the better load/performance testing tools available for Flex Application with BlazeDS RO?

    In my application is designed with Flex3, ActionScript3, BlazeDS Remote Objects.
    Just i tried with OPENSTA but i cant do the dynamic parameterization in their generated scripts because the response of the calls is binary values and also we cant get the response using with SCL language.
    While testing with OPENSTA with HttpService, i can do the dynamic parameterization and got the response.
    can give the information about the below questions
    whether we can do dynamic parameterization with OPENSTA for Flex Remote objects?
    and  what are the better load/performance tools available for Flex Remote Objects?

    Your approach is fine, depending on how many and what type of CFCs you are talking about. If they are "singletons" - that is, only one instance of each CFC is needed to be in memory and can be reused/shared from multiple parts of your application - caching them in the application scope is common.  Just make sure they are thread safe ("var" or local.* all your method variables).
    You might consider taking advantage of a dependency injection framework, such as DI/1 (part of the FW/1 MVC framework), ColdSpring, or WireBox (a module of the ColdBox platform that can be used independently).  They have mechanisms for handling and caching singletons.  Then you wouldn't have to go to the application scope to get your CFC instances.
    -Carl V.

  • I use my ps3 online gaming, is the airport extreme or the airport express be compatible with ps3? Is it going to be a better connection compair to other router? Which one is a better choice for me, airport express or airport extreme??

    I bought linksys EA3500 router. Its still in the box and before I open it I want to learn more about the apple airport router, is the apple going to work with my online games with ps3? I have iPad, 2 iPhones, apple tv and Mac mini.  If the airport express or airport extreme is a lot better and will work for ps3 which one should I get?

    Airport will work with PS3.  From what you've stated, the Extreme is more than you need.  Buy the Express.

  • Which is a better choice for me? A Macbook Air 11" or 13"?

    Hello!  I am soon to be a college student and I am debating whether to invest in an 11" or 13" Macbook Air.  I've decided that I wanted a Macbook Air because I want a lightweight portable laptop with long battery life.  But which size?  Through some YouTube reviews I've heard a lot of things, I heard that the 11" is better than the 13" just because everything is smaller and more portable, the screen saturation makes it looks better than the 13" and just the freedom to carry it around and hold it under one hand is the ideal college laptop.  But I also heard that it's horrible for holding memory and RAM (which I am completely ignorant about.. and quite frankly not too anxious to get educated to), so the Macbook Air 11" is an excellent SECONDARY laptop. Which freaks me out because I was actually leaning towards the 11" rather than the 13"
    I don't play any games, nor do I video edit much.  I just want a laptop that can hold all of my pictures, hold documents for school purposes, and play Spotify while I do my work.  I don't really care about the Retina Display, only because I didn't spoil my self with it.  But that being said, whatever Air I'm going to buy, it will become my one and ONLY laptop and it will serve as a PRIMARY one.  Given I don't do the complicating video editing (unless it's a college assignment), or gaming with it, which laptop do you think is right for me?
    Thanks for reading everything!
    Should I still be safe and just get the 13"?
    Please put your input!

    Forget everything you think you know. The MacBook Air, 11" or 13", is a very powerful computer that can be the sole computer for anyone who doesn't require extremely powerful graphics. (This is because these computers use Intel integrated video rather than discrete video cards which Apple puts only in its top 'Pro' computers.) For most college students the Air is a perfect computer and if you configure an 11" and a 13" MBA with the same amount of memory, same size SSD, and same processor the only difference between them is the size - which, by the way, will also give the 13" a slightly better battery life because its battery is larger.
    The 11" has a 128GB drive and cannot be upgraded which for some people makes it a tight fit for some but roomy for others. I'd have difficulty making it my only computer but my wife probably could. This is one of three advantages the 13" model offers (to me). The second is the longer battery life. The third is that I found the 11" model to be too cramped. The keyboard is the same size as the 13" but somehow I felt terribly cramped and the screen was too small. That's why I walked in thinking I'd get an 11" and walked out with the 13" MBA. I'd strongly recommend 8GB whichever model you choose.

  • Yellow mark in device manager under other devices pci driver for B50 laptop with Windows 8.1 64 bit

    Dear All,
    in device manager - other devices - pci device is with yellow mark os:windows 8.1 , laptop B5070 series .
    in PCI events tab mesage is:
    Device PCI\VEN_10EC&DEV_5229&SUBSYS_380117AA&REV_01\00000​001004CE00000 was configured.
    Driver Name: null
     error code 28
    pls. suggest how remove yellow mark, suggest or provide link to get compatable driver.
    regards,
    Mallik
    Solved!
    Go to Solution.

    Good day and welcome to the community.
    Based on the device string you included, http://www.pcidatabase.com/index.php returns the following:
    Device Id  Chip Description         Vendor Id  Vendor Name
    0x5229     Realtek PCIE CardReader  0x10EC     Realtek Semiconductor Corp
    For reference, here is the link to your mahine's support pages:
    http://support.lenovo.com/us/en/products/laptops-a​nd-netbooks/lenovo-b-series-laptops/lenovo-b50-70-​...
    and here is the sublink for the Win8.1 drivers for the device detailed above:
    http://support.lenovo.com/us/en/products/laptops-a​nd-netbooks/lenovo-b-series-laptops/lenovo-b50-70-​...
    Hope this helps a bit.
    Regards.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Community Resources: Participation Rules • Images in posts • Search (Advanced) • Private Messaging
    PM requests for individual support are not answered. If a post solves your issue, please mark it so.
    X1C3 Helix X220 X301 X200T T61p T60p Y3P • T520 T420 T510 T400 R400 T61 Y2P Y13
    I am not a Lenovo employee.

  • Preferences for Open Application With is not working (although preferences are saved/appearing. Thoughts?

    Although the preferences for using certain applications to open downloaded files is set and saved (it still appears when accessed), the preferences are either not utilized automatically (for most files) or remembered at all for others (docx files). So, each time I try to download/open a docx file, I have to "browse" and tell firefox to use microsoft word, even though the preference is already set. I see that some people are having trouble with preferences being deleted, but that is not that case here. Thanks!

    Solved using STEP/OPTION 2 "resetpassword" in this post:
    why do i keep loosing my settings and homepage setting in safari
    I believe my problem started occurring after my system became unresponsive while the monitor was transitioning from Laptop display to external display. Safari locked up. I had to reboot the system.

  • What are the basic settings required to run webdynpro for abap application?

    Hi,
              i want some information regarding settings(HOST,Port) to run our application through Browser.What are the settings can i give to run my Application.and also i got some problem that when i create a VIEW it didnt shows the Standard Toolbar of Consisting of all UI Elememts.Is this problem is related Installation?
    Thanks & Regards
    Ravi

    Hi Ravi,
    This will be helpful please check.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/e86de5008b4d9ae10000000a155369/content.htm.
    Reward points if useful.
    Regards,
    Muneesh Gitta.

  • Whether JavaFX is the right choice for my application??

    Hi,
    I am interested in creating a graphics application. I have bunch of sensors on a table and I want to create different images on the table through a projector hung on ceiling facing down. I am have some values for a gray scale. Say for example I have 250 values then I want the screen to be divided into equal 250 rectangles and each of them will be given a color based on the gray scale value I have. If I have 800 X 600 values then I will have that much resolution of the gray scale image. after certain time the values change and I have to change the image as well.
    I thought of using JavaFX but I am not sure should I go with this or there is some other language or tool which will be very helpful in creating application at pixel level?
    Samip

    Pixel level manipulations is not the strong point of JavaFX.
    For the application you describe, I recommend instead using Processing, lot of people use it for shows and exhibitions. And it interfaces well to hardware.

Maybe you are looking for