Ernest Lee

Ranch Hand
+ Follow
since Aug 20, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ernest Lee

Find all orders in which the shipping address differs from the billing address. This example assumes that the Bean Provider uses two distinct entity beans to designate shipping and billing addresses:

SELECT OBJECT(o)
FROM Order o
WHERE NOT
(o.shipping_address.state = o.billing_address.state AND
o.shipping_address.city = o.billing_address.city AND
o.shipping_address.street = o.billing_address.street)


If the Bean Provider uses a single entity bean in two different relationships for both the shipping address and the billing address, the above expression can be rewritten as:

SELECT OBJECT(o)
FROM Order o
WHERE o.shipping_address <> o.billing_address


My question:
Suppose I am using the 2nd version, how will the container do the comparsion, will it compare the primary keys?? or all the cmp-field??

Thanks.
1. The Spec says "EJB QL only permit like type values to be compared" (P.235)

what does it mean?

2. the spec also says it does not support fixed decimal comparsion, does it mean it cannot do

where ?1 > 1.444?
sorry..

if we are going to provide a web interface (or other interfaces) to interested parties to share/sell their question content... maybe we do need j2ee (or php/.net..)

let's define the XML-schema for our exam first..

wow.. this can be big...
sorry for the late reply.


i agree that we probably won't need j2ee features.

maybe we can use java webstart, maybe javaranch would host for us for free...

i won't have time for this until oct (sorry guys!!), feel free to start ahead, I will join u guys later.



open source?!!
that means no $$$$...

anyone interested in developing a commercial quality one?

we can open source the "exam simulator framework" but not the content...

comments?
Anyone interested in developing our own exam simulators?
We can sell it for 15 bucks!!

Let me know.
The best is if you accept PayPal. I am willing to pay around $15 USD.

Thanks.
please drop me a line if you have one to sell.
are rip off...

they are expensive and yet they made the exam easier to pass...

just spend a 100 bucks and u can get a cert with very little study...

they are hurting the value of the Java certs seriously..

and the price is just non-sense...

but i think they are making lots of money by hurting the value of the cert.. how ironic..
In the Ontario (Canada) area.

Any idea?

I am going to have an interview with IBM (application designer) in Ontario...

Is 85k too much?
19 years ago
How does classloader effect EJB lookup?
More details:

in the web.xml
<ejb-local-ref>
<ejb-ref-name>ejb/SessionEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>ejb.SessionEJBLocalHome</local-home>
<local>ejb.SessionEJBLocal</local>
<ejb-link>SessionEJB</ejb-link>
</ejb-local-ref>


then in the ejb-jar.xml, I have

<session>
<display-name>SessionEJB</display-name>
<ejb-name>SessionEJB</ejb-name>
<local-home>ejb.SessionEJBLocalHome</local-home>
<local>ejb.SessionEJBLocal</local>
<ejb-class>ejb.SessionEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>


the web app and ejb are in separate jaf files (war and jar, not packaged up in ear)....

When I deploy the Web App, it keeps complaining:

weblogic.deployment.EnvironmentException: [J2EE:160101]Error: The ejb-link 'SessionEJB' declared in the ejb-ref or ejb-local-ref 'ejb/SessionEJB' in the application module 'sessio
Test.war' could not be resolved. The target EJB for the ejb-ref could not be found. Please ensure the link is correct.]
in the web.xml
<ejb-local-ref>
<ejb-ref-name>ejb/SessionEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>ejb.SessionEJBLocalHome</local-home>
<local>ejb.SessionEJBLocal</local>
<ejb-link>SessionEJB</ejb-link>
</ejb-local-ref>


then in the ejb-jar.xml, I have

<session>
<display-name>SessionEJB</display-name>
<ejb-name>SessionEJB</ejb-name>
<local-home>ejb.SessionEJBLocalHome</local-home>
<local>ejb.SessionEJBLocal</local>
<ejb-class>ejb.SessionEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>


the web app and ejb are in separate jaf files (war and jar, not packaged up in ear)....

When I deploy the Web App, it keeps complaining:

weblogic.deployment.EnvironmentException: [J2EE:160101]Error: The ejb-link 'SessionEJB' declared in the ejb-ref or ejb-local-ref 'ejb/SessionEJB' in the application module 'sessio
Test.war' could not be resolved. The target EJB for the ejb-ref could not be found. Please ensure the link is correct.]
I am trying to access an EJB thru Local Home (in a separate jar file) from an Webapp (in a war file)?
But so far, I have no luck, the lookup keep failing!!

Is this possible to achieve at all?

thanks!