This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of React Cookbook: Recipes for Mastering the React Framework and have David Griffiths & Dawn Griffiths on-line!
See this thread for details.
Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!

Arun Yadav

Greenhorn
+ Follow
since Mar 14, 2003
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 Arun Yadav

Thanks Jeanne,

It really worked, I am able to call EJB3.0 from EJB2.1 directly accessing the local interface. No home is requried.

The websphere by default created the local JNDI name as ejblocal:<packageName>.<LocalInterfaceName> for EJB3 component, And I got the reference as below:



Thanks again.
Thanks Shahnawaz,

I am very happy to know this, but I am wondering the EJB2.1 expects home interface in order to get hold of bean component. But since EJB3 doesn't have home interface how EJB2.1 can access EJB 3.0

e.g: If one EJB2.1 wants to access other EJB2.1 the lookup code would be
something like this:




Now if other(called) EJB is EJB3.0, what would be the <EJB>Home in above example. As per my knowledge the EJB3.0 doesn't expose home interface.

I am relatively new to EJB stuff, so please disregard my understanding if its incorrect.

Thanks in advance.
Hi,

Is it possible to invoke EJB3 from EJB2.1, both ejb modules belong to same ear. I need to invoke an EJB3 from ibm webshpere startup bean which is implemented as EJB2.1.

Thanks in advance.
Thanks Venkat and Ritchie for providing this details.
13 years ago
That's bit disappointing ..
can you please advice me what salary I should look for..

Thanks in advance..
13 years ago
Hi,

How much GBP(per annum) would be good enough to have decent life and savings in London. I would be staying with my family.

I am having around 5+ years of java/j2ee experiance. I am expecting salary of 34K GBP in some company in canary wharf, is this good amount? please advice.

Thanks in advance
13 years ago
Hi,

I would like to know the difference in terms of type of work (development, maintenance, prod. support, dev. support etc.) and onsite opportunities between the two divisions of i-Flex Solutions, Bangalore, what kind projects are there in i-Flex services division, specially in Java related technologies. I need this information to make some important decisions.Please help if somebody have some information.

Thanks,

Warm Regards,
16 years ago
Thanks Everyone

Hari,
Any idea how much time IBM take to send .pdf certificate by email, I have only score sheet printout with me as certification proof. Thanks!!
Hi Sandeep,

I dont think you will get such questions, however you can find questions on DOM2 core specification, or questions on comparison of two major parser i.e SAX and DOM.

Good Luck !!

Thanks
Hello Everyone,

Yesterday I passed IBM 141 Exam with 80% (44 of 55), First and foremost I would like to thank this great forum, which helped me to pass SCJP Exam also, 8 months back.

For preparation tips and tricks, I dont want to repeat what is already told in this forum,
I just followed what Hari has provided link

Beside dont forget to go thru this link by Pradeep Chopra, and all the XML Exam lists on javaranch.

One more mock up site, which I think as of now not there on XML exam list is www.skillometer.com (you need to register it for free).

With not much practical and theoritical exposure to XML,it took 2 months of 1 to 2 hrs of casual study plus 2-3 hrs of regular study for last one month. However I do feel, giving more time for preparation is of no use, instead if you know you can give regular dedicated hrs daily, 1 months is OK.

Prepare well for senario based questions, plus topic under XML rendering if you want to score beyond 80% (I scored least on this topic ).

Please come as often as possible to javaranch.com

So All the very best for those who are looking forward for XML certification and thanks to Javaranch.com

Cheers !!


Originally posted by K Gupta

But if i compile following code
1.class A{
2. public void f(){
3. while(true){
4. }
5. }
6.}
it compiles!!
Then what is the problem with assert code




The above code compiles because there is nothing which compiler can see as unreachable, however if we put any statement between line 4 and line 5, wheather its assert or any statement, you will find compiler complaning unreachable statement. hope this explain why its compiling..

Arun
Thanks everyone !!
17 years ago
Hi All,

I am happy to inform you all that I have passed SCJP 1.4 exam with 91% (56/61), and also would like thanks the www.javaranch.com and this forum from where I got all the inspiration to score good marks..

Also I would like to extend my thanks to K&B the only book which I followed and Dan's compilation which gives confidence and clears various doubts on fundamental things..

for those who are pursuing this certification..

The K&B book is sufficient if you already having little knowledge of java along with Dans & Marcus mock test at the end of preparation.. besides various mock tests available on web..

One needs to be careful while answering the questions.. and also it requires very clean knowledge of fundametal like flow conrol, declaration,language fundamentals, exceptions along with topics like Threads.. and wrapper & string classes..

though I am not a very active member of javaranch.. but still I would like to say 'All The Best' to everyone who is pursing this certification..

Thanks & Regards,
Arun,
17 years ago


Here what you are overlooking is the fact that Java deals differently with String object from any other object.

In Java String is "immutable".



When we say "immutable" it means once an object is created you cannot change it, thus for String, once it has created you cannot change its value.

Thus whenever code tries to change the string object, JVM creates new String object with same value and will perform operation on that.

So at the line :

s1 = s1 + "ranch"; return s1;

JVM will create new String object "java" will point s1 to that and will add the "ranch" string to get again new String object with value "javaranch" and make s1 point to this,

thus s2 will point to "javaranch" object, in the doString method
and s1 continues to point at "java".

However in case of array object or any other object, when you change object pointed by reference a1, it actually changing the actual object.
In java you pass object reference by value,

Thus at line:

public long[] changeLong(long[] a1) {...}

a1 is a new reference variable of type array of long pointing to the same long array object in the doLong object. and here whatever you change will change the original array object as it is NOT immutable.


I Hope this will help you..

K&B book nicely explained the java String object.

The answer will be 61433 and not 614, this because of the fact that there is ||(OR) operation between the two boolean expressions. Thus for the first three loops, which will print 614, first boolean expression (x != 3) returns true and since the operation is ||(OR) the second expression will not be evaluated, and in fourth loop the first boolean expression (x != 3) will return false thus the second boolean expression (success < 2)will be evaluted, which turns out to be true similerly for the fifth loop.
Please note: For the ||(OR) operation, second operand will not be evaluated if first operand turns out true and whole expression will be ture.
Again for && (AND) operation, second operand will not be evaluated if the first operand turns out false and whole expression will be false.
However this not true with '|' and '&' bit operations, where both operand are evaluated irrespctive of the value of first operand.
Hope this will clear your doubt to some extent.
Thx