How do you implement orderby in weblogic 6.1?

I am trying to use the orderby function in weblogic and the method in which
I have implemented I have shown in ejb-jar.xml and
weblogic-cmp-rdbms-jar.xml file shown below. Please do let me know if have
implemented it in the right way.
Thank you
Ronak Parekh
I am getthing the error:
Unable to deploy EJB: sempire_bc.jar from sempire_bc.jar:
Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error
was:
The finder method findAllOrderByRoleName of ejb RolesEJB cannot have
a null ejb ql value.
The finder method findAllOrderByUserName of ejb UsersEJB cannot have
a null ejb ql value.
This is my weblogic-cmp-rdbms-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'
>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>UsersEJB</ejb-name>
<data-source-name>UsersDB</data-source-name>
<table-name>USERS</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>userName</cmp-field>
<dbms-column>USER_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>userPass</cmp-field>
<dbms-column>USER_PASS</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userPass</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>RolesEJB</ejb-name>
<data-source-name>RolesDB</data-source-name>
<table-name>ROLES</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>roleName</cmp-field>
<dbms-column>ROLE_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>roleDesc</cmp-field>
<dbms-column>ROLE_DESC</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleDesc</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
</weblogic-rdbms-jar>
This is my ejb-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Users Entity Bean</display-name>
<ejb-name>UsersEJB</ejb-name>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
<ejb-class>com.sempire.builder.business_component.UsersBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>users</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>userName</field-name></cmp-field>
<cmp-field><field-name>userPass</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>UsersEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/UsersDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM users AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
<entity>
<display-name>Roles Entity Bean</display-name>
<ejb-name>RolesEJB</ejb-name>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
<ejb-class>com.sempire.builder.business_component.RolesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>roles</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>roleName</field-name></cmp-field>
<cmp-field><field-name>roleDesc</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>RolesEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/RolesDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM roles AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>UsersEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>RolesEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>

I am trying to use the orderby function in weblogic and the method in which
I have implemented I have shown in ejb-jar.xml and
weblogic-cmp-rdbms-jar.xml file shown below. Please do let me know if have
implemented it in the right way.
Thank you
Ronak Parekh
I am getthing the error:
Unable to deploy EJB: sempire_bc.jar from sempire_bc.jar:
Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error
was:
The finder method findAllOrderByRoleName of ejb RolesEJB cannot have
a null ejb ql value.
The finder method findAllOrderByUserName of ejb UsersEJB cannot have
a null ejb ql value.
This is my weblogic-cmp-rdbms-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'
>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>UsersEJB</ejb-name>
<data-source-name>UsersDB</data-source-name>
<table-name>USERS</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>userName</cmp-field>
<dbms-column>USER_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>userPass</cmp-field>
<dbms-column>USER_PASS</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
o.userPass</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>RolesEJB</ejb-name>
<data-source-name>RolesDB</data-source-name>
<table-name>ROLES</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>roleName</cmp-field>
<dbms-column>ROLE_NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>roleDesc</cmp-field>
<dbms-column>ROLE_DESC</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleName</weblogic-ql>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
o.roleDesc</weblogic-ql>
</weblogic-query>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
</weblogic-rdbms-jar>
This is my ejb-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Users Entity Bean</display-name>
<ejb-name>UsersEJB</ejb-name>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
<ejb-class>com.sempire.builder.business_component.UsersBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>users</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>userName</field-name></cmp-field>
<cmp-field><field-name>userPass</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>UsersEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.UsersHome</local-home>
<local>com.sempire.builder.business_component.Users</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/UsersDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM users AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByUserPass</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
<entity>
<display-name>Roles Entity Bean</display-name>
<ejb-name>RolesEJB</ejb-name>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
<ejb-class>com.sempire.builder.business_component.RolesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>roles</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>roleName</field-name></cmp-field>
<cmp-field><field-name>roleDesc</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<ejb-local-ref>
<ejb-ref-name>RolesEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sempire.builder.business_component.RolesHome</local-home>
<local>com.sempire.builder.business_component.Roles</local>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/RolesDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAllWithConstraint</method-name>
<method-params />
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM roles AS o]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleName</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllOrderByRoleDesc</method-name>
<method-params />
</query-method>
<ejb-ql></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>UsersEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>RolesEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>

Similar Messages

  • In parallel Accounting of NewGL, how do you implement PS&CO?

    Hello,
    Could you tell me a hint of this;
    In parallel Accounting of NewGL, how do you implement PS&CO?
    For example, there is some difference between IFRS/GAPP,
    parallel value of asset should be handled in CO-OM or PS?
    I know the combination of modules as follows;
    asset depreciation cost(FI-AA) => cost accounting(CO-OM) + project accounting(PS) => general ledger(FI-NewGL)
    regards,
    Katsumi Makabe

    HI,
    if you are using New GL ledger functionality Controlling area covers only the values of the leading ledger (to keep CO data comperable for the whole company, no matter what local differences may occur). I am not totally sure but doesn't PS also cover only the leading ledger values.
    Best regards, Christian

  • How would you implement equals ()

    For complex classes with many data members, my dilema is:
    1. equals should return true only if all fields of the two objects are
    equals.
    2. equals should return true if the key(s) of the two objets are equal.
    For instance, we have the Class Person, that contains dozens of
    data: ID, name, age, job, salary, children, more 1000 items.
    Person is like a record in a DB table. There can not be two persons
    with the same ID.
    In this case, how would you implement equals, and why?
    thanks

    What I'm trying to say is: what is equality foryou?
    Two objects are equal if all there contents areequals
    or is it enough
    to compare their keys?
    In the latter case, there can happen, by somereason,
    that we can end
    up with two objects with the same keys, but all the
    rest of
    the contents different.i think you meant to say that:
    In the latter case, there can happen, by somereason,
    that we can end
    up with two objects with different keys, but
    all the rest of the contents the same.and the answer is, and listen carefully, it totally
    depends on the application you are writing. there
    is no hard definition of equality where custom classes
    are concerned... that is the answer.If this question arises, you should revisit your design.
    If two entities have equal keys, they should be considered to be equal. Otherwise the attributes you call keys are in the fact normal attributes and no keys.

  • How do I use orderby in weblogic 6.1?

    I am trying to use the orderby function in weblogic and the method in which
              I have implemented I have shown in ejb-jar.xml and
              weblogic-cmp-rdbms-jar.xml file shown below. Please do let me know if have
              implemented it in the right way.
              Thank you
              Ronak Parekh
              I am getthing the error:
              Unable to deploy EJB: sempire_bc.jar from sempire_bc.jar:
              Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error
              was:
              The finder method findAllOrderByRoleName of ejb RolesEJB cannot have
              a null ejb ql value.
              The finder method findAllOrderByUserName of ejb UsersEJB cannot have
              a null ejb ql value.
              This is my weblogic-cmp-rdbms-jar.xml file:
              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE weblogic-rdbms-jar PUBLIC
              '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
              'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'
              >
              <weblogic-rdbms-jar>
              <weblogic-rdbms-bean>
              <ejb-name>UsersEJB</ejb-name>
              <data-source-name>UsersDB</data-source-name>
              <table-name>USERS</table-name>
              <field-map>
              <cmp-field>iD</cmp-field>
              <dbms-column>ID</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>userName</cmp-field>
              <dbms-column>USER_NAME</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>userPass</cmp-field>
              <dbms-column>USER_PASS</dbms-column>
              </field-map>
              <weblogic-query>
              <query-method>
              <method-name>findAllOrderByUserName</method-name>
              <method-params>
              <method-param>double</method-param>
              </method-params>
              </query-method>
              <weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
              o.userName</weblogic-ql>
              </weblogic-query>
              <weblogic-query>
              <query-method>
              <method-name>findAllOrderByUserPass</method-name>
              <method-params>
              <method-param>double</method-param>
              </method-params>
              </query-method>
              <weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
              o.userPass</weblogic-ql>
              </weblogic-query>
              </weblogic-rdbms-bean>
              <weblogic-rdbms-bean>
              <ejb-name>RolesEJB</ejb-name>
              <data-source-name>RolesDB</data-source-name>
              <table-name>ROLES</table-name>
              <field-map>
              <cmp-field>iD</cmp-field>
              <dbms-column>ID</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>roleName</cmp-field>
              <dbms-column>ROLE_NAME</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>roleDesc</cmp-field>
              <dbms-column>ROLE_DESC</dbms-column>
              </field-map>
              <weblogic-query>
              <query-method>
              <method-name>findAllOrderByRoleName</method-name>
              <method-params>
              <method-param>double</method-param>
              </method-params>
              </query-method>
              <weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
              o.roleName</weblogic-ql>
              </weblogic-query>
              <weblogic-query>
              <query-method>
              <method-name>findAllOrderByRoleDesc</method-name>
              <method-params>
              <method-param>double</method-param>
              </method-params>
              </query-method>
              <weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
              o.roleDesc</weblogic-ql>
              </weblogic-query>
              </weblogic-rdbms-bean>
              <create-default-dbms-tables>True</create-default-dbms-tables>
              </weblogic-rdbms-jar>
              This is my ejb-jar.xml file:
              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE ejb-jar PUBLIC
              "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
              "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
              <ejb-jar>
              <display-name>Business Component CMP 2.0</display-name>
              <enterprise-beans>
              <entity>
              <display-name>Users Entity Bean</display-name>
              <ejb-name>UsersEJB</ejb-name>
              <local-home>com.sempire.builder.business_component.UsersHome</local-home>
              <local>com.sempire.builder.business_component.Users</local>
              <ejb-class>com.sempire.builder.business_component.UsersBean</ejb-class>
              <persistence-type>Container</persistence-type>
              <prim-key-class>java.lang.Integer</prim-key-class>
              <reentrant>False</reentrant>
              <cmp-version>2.x</cmp-version>
              <abstract-schema-name>users</abstract-schema-name>
              <cmp-field><field-name>iD</field-name></cmp-field>
              <cmp-field><field-name>userName</field-name></cmp-field>
              <cmp-field><field-name>userPass</field-name></cmp-field>
              <primkey-field>iD</primkey-field>
              <ejb-local-ref>
              <ejb-ref-name>UsersEJB</ejb-ref-name>
              <ejb-ref-type>Entity</ejb-ref-type>
              <local-home>com.sempire.builder.business_component.UsersHome</local-home>
              <local>com.sempire.builder.business_component.Users</local>
              </ejb-local-ref>
              <resource-ref>
              <res-ref-name>jdbc/UsersDB</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              <query>
              <query-method>
              <method-name>findAllWithConstraint</method-name>
              <method-params />
              </query-method>
              <ejb-ql><![CDATA[SELECT OBJECT(o) FROM users AS o]]></ejb-ql>
              </query>
              <query>
              <query-method>
              <method-name>findAllOrderByUserName</method-name>
              <method-params />
              </query-method>
              <ejb-ql></ejb-ql>
              </query>
              <query>
              <query-method>
              <method-name>findAllOrderByUserPass</method-name>
              <method-params />
              </query-method>
              <ejb-ql></ejb-ql>
              </query>
              </entity>
              <entity>
              <display-name>Roles Entity Bean</display-name>
              <ejb-name>RolesEJB</ejb-name>
              <local-home>com.sempire.builder.business_component.RolesHome</local-home>
              <local>com.sempire.builder.business_component.Roles</local>
              <ejb-class>com.sempire.builder.business_component.RolesBean</ejb-class>
              <persistence-type>Container</persistence-type>
              <prim-key-class>java.lang.Integer</prim-key-class>
              <reentrant>False</reentrant>
              <cmp-version>2.x</cmp-version>
              <abstract-schema-name>roles</abstract-schema-name>
              <cmp-field><field-name>iD</field-name></cmp-field>
              <cmp-field><field-name>roleName</field-name></cmp-field>
              <cmp-field><field-name>roleDesc</field-name></cmp-field>
              <primkey-field>iD</primkey-field>
              <ejb-local-ref>
              <ejb-ref-name>RolesEJB</ejb-ref-name>
              <ejb-ref-type>Entity</ejb-ref-type>
              <local-home>com.sempire.builder.business_component.RolesHome</local-home>
              <local>com.sempire.builder.business_component.Roles</local>
              </ejb-local-ref>
              <resource-ref>
              <res-ref-name>jdbc/RolesDB</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              <query>
              <query-method>
              <method-name>findAllWithConstraint</method-name>
              <method-params />
              </query-method>
              <ejb-ql><![CDATA[SELECT OBJECT(o) FROM roles AS o]]></ejb-ql>
              </query>
              <query>
              <query-method>
              <method-name>findAllOrderByRoleName</method-name>
              <method-params />
              </query-method>
              <ejb-ql></ejb-ql>
              </query>
              <query>
              <query-method>
              <method-name>findAllOrderByRoleDesc</method-name>
              <method-params />
              </query-method>
              <ejb-ql></ejb-ql>
              </query>
              </entity>
              </enterprise-beans>
              <assembly-descriptor>
              <container-transaction>
              <method>
              <ejb-name>UsersEJB</ejb-name>
              <method-name>*</method-name>
              </method>
              <method>
              <ejb-name>RolesEJB</ejb-name>
              <method-name>*</method-name>
              </method>
              <trans-attribute>Required</trans-attribute>
              </container-transaction>
              </assembly-descriptor>
              </ejb-jar>
              

    You CTRL- or RIGHT-click on a bookmark and select Delete from the context menu.
    If you click on the Bookmark icon in the toolbar they will be listed in the sidebar on the left.

  • How do you implement printing in an addon?

    How does anyone add print functionality to addons?
    Do you create a Crystal Report? Embed it in the addon as a strongly typed report? Call an external RPT with the Crystal runtime which uses default parameter screen?
    Do you make any reports completely outside of the addon?
    Is there an exposed method in a dll for printing layouts?
    Is there a way to implement the standard functionality that ties layouts to forms?
    Any information is appreciated.
    Thanks,
    Bill Faulk

    Bill,
        We are a reseller based in Elmwood Park,NJ and we have developed an addon named CrystalWave that integrates SBO with BusinessOne. Please take a look at the link below:
    http://www.twbs.com/CrystalWave.html
    You can also download a demo version of our program at the following link:
    http://www.twbs.com/selectcwversion.html
    Let me know if you have any questions.
    Thanks,
    Gopal

  • How do you implement 'Dirty Read/ Write' concept?

    Hi,
    I need to implement dirty read/ write concept into my procedure. I wanted to know how to go about it. Does Oracle have provide a way to do this or is this something to be worked out with some logic manually?
    Can someone suggest the exact logic I should follow or chalk out a simple algorithm.
    Any kind of information on this would be much appreciated.
    Thanks,
    Amrita.

    Sorry for this late reply.<br>
    My first reply should have contained an example on how to implement it for the kicks. Don't use this code for anything else but a test. It's absolutely worthless application-wise. But it proves that some dirty read/write functionality can be obtained if one twists everything that is good. Here goes. First I create two java classes and two PL/SQL "wrappers". Then - simply connect with session 1 and invoke exec dirty_write<br>
    make no commit ... and let session 2 select dirty_read from dual. You'll notice that the data written by session 1 is read by session 2.<br>
    create or replace and compile
    java source named "FileAppendTest"
    as
    import java.io.File;
    import java.io.FileOutputStream;
    public class FileAppendTest {
    static public void append() {
      try {
        int vSomethingToWrite = 9;
       File vFile = new File("c:\\db_out.txt");
       FileOutputStream vAppendFile = new FileOutputStream(vFile, true);
       vAppendFile.write ( vSomethingToWrite );
      vAppendFile.close();
      } catch (Exception e) {
       // let this test hide all errors
    create or replace and compile
    java source named "DirtyReadTest"
    as
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    public class DirtyReadTest {
    static public int read() {
      int vError = 0;
      try {
       File vFile = new File("c:\\db_out.txt");
       FileInputStream vReadFile = new FileInputStream(vFile);
       return vReadFile.read();
      } catch (Exception e) {
       return vError;
    create or replace procedure dirty_write as
    language java
    name 'FileAppendTest.append()';
    create or replace function dirty_read return number as
    language java
    name 'DirtyReadTest.read() return integer';
    -- as I mentioned earlier. Only try this code for the fun of it. Don't consider it for anything remotely usable in an application.

  • How would you implement a "real" on key released event?

    Hello there.
    I'm looking into key bindings and I'm trying to implement a "keep doing as long as space is pressed" feature. Figuratively speaking the optimal solution would be:
    space key is pressed -> call something.start()
    space key is released -> call something.stop()
    The thing is, the space key can be held down for several seconds and that does not generate one clear pressed and one clear released event. Instead you get a whole series of pressed and released events during the whole time the key is being pressed down. Actually it's logical. Click on some input field on your screen and keep a key pressed, you will see what I mean. :)
    So if I try to use:
    getInputMap().put(KeyStroke.getKeyStroke("pressed SPACE"), "start");...and...
    getInputMap().put(KeyStroke.getKeyStroke("released SPACE"), "stop");I don't get what I want. Start and stop are being called like crazy.
    So now, what would be the best way to react only to the first pressed and the last released event? Discarding events that follow each other too fast doesn't seem like an elegant solution.
    Thanks
    Cap

    Instead of timers I chose the following IMHO simpler and more reliable solution:
    public class Button
         private boolean on;
         public Button()
              on = false;
              // React to the SPACE key.
              getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("pressed SPACE"), "do");
              getActionMap().put("do", this);
         /* The problem we have to deal with is that a key being held down for several seconds
          * actually fires a whole havoc of pressed and released events. On Windows it fires
          * only a havoc of pressed events and then one released event when the button is
          * finally released. To make the button work right at least on Windows we keep track
          * of the state of the button (on = pressed, off = released). As soon as the button
          * is pressed, it doesn't react to pressed events anymore, this way the pressed havoc
          * can be ignored. It still reacts to released events though, so when the key is
          * finally released, the button goes into the off state again. On Linux this will never
          * work, because not only the pressed havoc, but also the released havoc is fired. */
         public void actionPerformed(ActionEvent arg0)
              if (on)
                   // The button is on, let's turn it off.
                   getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("pressed SPACE"), "do");
                   getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("released SPACE"), "none");
                   on = false;
                   // TRIGGER SOME ACTION HERE
                   dont();
              else
                   // The button is off, let's turn it on.
                   getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("pressed SPACE"), "none");
                   getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("released SPACE"), "do");
                   on = true;
                   // TRIGGER SOME ACTION HERE
                   do();
    }Things would be much easier, if it was possible to differentiate, if the Action was triggerd by a "pressed" or a "released" event. I don't see a way to get this information from the ActionEvent object. If someone knows a way, please do tell.
    Cap

  • How would you implement a page like this?

    Hello
    When you look at www.autoweek.nl you see a little down 6 tab pages (Alle Rubrieken - Autonieuws etc.)
    My question is about the way you could implement the contents of one tab page.
    Would the content be several html regions (one for every message), or would it be a report? Or even something else?
    I'm struggling with the number of items. When I choose a html region for every news item I have a fixed number of HTML regions, which is not flexible.
    A report gives me this flexibility but is not that easy to layout?
    See also: http://www.autoweek.nl/nieuwsindex.php
    Any suggestions appreciated!
    Regards Erik
    Edited by: Erik Trip - Darwin IT on Nov 5, 2010 9:04 AM

    I would say a region per Tab and inside the Tab it is a report.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • How do you implement a pre validation into user's Newsfeed?

    Hi everyone,
    I'm working with the Newsfeed to figure out how I can validate the contents before publish it. Our client wants to filter the comments using a "blacklist" with forbidden words.
    I trying to solve how can we check every word introduced on the newsfeed textbox against the blacklist (on a DB) to decide if the content can be published or not....
    Any ideas will be appreciated,

    Jose_1908,
         One possible solution is to use a custom form for users to type their "status update", then have a JS function parse through the text value from the form against a SharePoint list containing the "blacklisted" words.  If you're using
    a Yammer feed instead of the default SharePoint Site Feed, there's a keyword filter feature to flag the admin to remove the comment.
         Of course, it would be best to create a SharePoint app to handle posting newsfeed updates with this filtering check against a "blacklist".
    thanks,
    Tony

  • [iPhone] How are you implementing email within your apps?

    Hi,
    I want to implement an email feature within my Voice Changer app but I am not sure where to start. Are you passing an attachment through to the integrated emailing app or do you have to write your own smtp client?
    Thanks for any help
    Message was edited by: Ascon

    I wrote my own, using Pantomime API, and combining an adaptation of openSSL....this was roughtly a nightmare to do !!!

  • How do you implement a query that examines if a line is connected at both ends?

    Hey all,
    I want to write a query that examines if a line is connected at both ends (a very common rule in the area of topology) but I cannot seem to find an easy way to do so. (By connected I mean that there is another line that 'touches' the given line.)
    The problem I have is that I cannot find any way to retrieve the start or end point of a line geometry. (I am using Oracle 8.1.7.)
    If someone can give me any suggestions I would be very grateful.
    Thanks in advance,
    Johan Behrenfeldt

    Hey,
    Thanks for both of the answers.
    I eventually solved the problem using Java stored procedures. However, in the case that someone is looking for the answer to the same question I was asking I just wanted to point out a few things.
    Jens' solution seems correct and it was my first approach as well. However, there is a case when it fails and that is if the lines connect in the shape of a triangle. You would find a line that has connected lines at both ends but the connected lines would have a non-empty intersection and would therefore be discarded incorrectly.
    The second suggested solution works, but I have found it less than trivial to find the ordinate tuple that contains the start point of the line string. Many GIS applications insists on using the ordinate array as a storage place for data. They will use the sdo_etype 0 to hide the information from Spatial, but when manipulating the geometries manually they cause a great deal of trouble. (Try writing an sql query to retrieve the start point of a line.)
    The latter is, however, what I ended up using in the end. With the help of Java stored procedures the task became fairly easy.
    Thank you, in any case, for all your help, and I apologize if I come off as a smart-allick here. ;-)
    Johan Behrenfeldt

  • How do you implement serial number generation and/or paypal integration?

    Hi,
    perhaps this question is a bit of topic. But have you ever thought about this point or even better do you have an solution for this?
    Rgds - Wilko

    The only ways to find a serial number without having the iPhone are by looking at the iTunes backup or on the packaging. If you don't still have the box and you didn't make a backup in iTunes or it doesn't show the serial number - see:
    http://support.apple.com/kb/HT4061
    then I know of no way you'll be able to get the serial. It will not be shown in your iTunes Store nor in iCloud.
    Regards.

  • How would you implement a domain in my situation?

    Are the users shared between site 3 and sites 1 and 2? You could do a totally separate domain at Site 3 if not.

    So I have three sites that I manage. I won't get into details as to why some things are the way they are, so I will just let you know what I have to work with.Site 1 and Site 2 are connected by VPN. Site 3 is not connected to these sites by VPN and can't be. I have full control of the Site 3's network firewall, switches, everything. Site 1 and 2 I have full access to everything, but not the firewalls or network switchs (its a contact thing).I have not chosen a domain service yet. I have thought about Windows Active Directory on an in-house system, lack of VPN worries me. I have thought of off site domain services like Univention as well, but I have never met anyone that has used it personally. Are there off site/hosted domain services that work as good as hosting in-house. The stability would be nice, but I have always done everything...
    This topic first appeared in the Spiceworks Community

  • How do you implement basic text markup for content? H1, H2, ul, ol etc?

    Title says it all really - am I missing something?

    Thanks for that, I think I've misunderstood who the software is for?
    I'll post to the features area but if nobody was thinking about content markup during development and testing of the software, I'm not sure anyone is going to appreciate it!
    Even print designers (I have 20+ years in print and 8+ years coding) understand the importance of styles in InDesign so I'm not sure what's gained by hiding such a fundamental aspect to the internet. We're finding that our role is more about content design and less about "Website Design" per se.
    e.g. if you hid all the content on the Apple site, all you'd left with would be a bunch of lines, and light gradients - and that's true for most sites. Content truly is king.

  • How do you implement server side sorting using IPlanet 5.x?

     

    You can use the sort control. The C and Java SDKs also provide support for it. See http://docs.iplanet.com/docs/manuals/dirsdk/csdk41/html/controls.htm#13286 for an example.

Maybe you are looking for