Vasanthi hiremath

Ranch Hand
+ Follow
since May 05, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Vasanthi hiremath

Thanks so much for your response. I was wondering why non of them are responding to my query. I really appreciate at least you responded to my query.

Thanks
again.
HI,

I am coming back to this forum after 7 long years. I have passed SCJP 2.1 and now since I had lost touch, I want to take OCPJP certification. Can I take the exam or I have to still pass OCAJP exam before taking it, please let me know.

Please note I had passed SCJP 2.1 in the year 2001.

Thanks
Vasanthi
Hi everybody,

I passed SCBCD on 22nd October 2009, but still I have not got my certificate on hand, i have not got even my logo. I sent a email to Sun, but they say that they need site or the registration number of SCJP. I do not have any of those details as i misplaced them somewhere. I had passed SCJP test in 2001, so I just have the certificate with me.Can anybody help me what else i can do to get my certificate.


Many Thanks
Vasanthi
12 years ago
Hi Everbody,

I have around 6 years of experience in java/J2EE and I am SCJP, SCWCD, SCBCD. But I left my job 2 years back as there was some family problems. now that i have lost the confidence in attending the interview. Earlier i was working in India and now I am un UK. Looking at the family now I feel that i can spend the time only from 9am to 3PM. Now I am ready to do any knid of job, so please suggest what kind of jobs i can do using my past experience.


Regards
Vasanthi
12 years ago
Hello everybody,

Thanks for your wishes.

Regards
Vasanthi
12 years ago
Hi All,

Today i passed SCBCD with just 59%, i know its just passing the exam. But I felt that the exam was quite difficult. I prepared for almost 2 months.I am quite unhappy that the passing percentage is very low

Thanks all for helping to pass this exam.

Regards
Vasanthi
12 years ago
Hi All,

Today when i was taking mock test from Enthuware I found 2 mistakes, please tell me if I am wrong.

1)

@Stateless
@Remote(Easy.class)
public class EasyBean {
public void doIt() throws MyException{
if(true) throw new MyException();
}
}

The code for MyException is as follows -

public class MyException extends Exception{ }

If a client calls doIt() method on EasyBean (assuming that it is declared in the remote interface), what will happen?

The client will get RemoteException.
The client will get EJBException.
The client will get MyException.
The client will get NullPointerException.
The client will get EJBException that wraps MyException.In the above question the bean is not implimenting the interface, so i marked as EJBException. So please clarify my doubt.

2)

Consider the following code for a session bean class:

//... valid cdoe
//Line 1: insert code here
public class TellerBean implements
com.enthu.ejbplus.TellerRemote, com.enthu.ejbplus.TellerLocal {

// ... valid code
}

This bean sends messages to a Queue in its business methods. Which of the following line of code should be inserted at // Line 1 to declare a TYPE-level dependency on the JMS Queue?
(Assume appropriate import and other necessary statements.)

@Resource
Queue myQueue;

@Resource
private static Queue myQueue;

@Resource(name="jms/myQueue", type=javax.jms.Queue.class)
@Resource(name="jms/Queue")

Queue myQueue;

The answer given by Enthuware is in bold but there is one more question below that is contredicting the above question.

Consider the following code for a session bean class:

//... valid code
public class TellerBean implements
com.enthu.ejbplus.TellerRemote, com.enthu.ejbplus.TellerLocal {
//Line 1: insert code here
}
}

This bean sends messages to a Queue in its methods. Which of the following line of code should be inserted at // Line 1 to inject a Queue object?
(Assume appropriate import and other necessary statements.)


@Resource private Queue myQueue; c

@Resource private static Queue myQueue;

@Resource(name="jms/myQueue", type=javax.jms.Queue.class)
A variable is required. It would have been valid if it were put before the class definition.

@Resource(name="jms/Queue")
Queue myQueue;

If the name is not specified, a default name is assumed which is generated using the complete class name prependend to the field name i.e. com.enthu.ejbplus.TellerBean/myQueue

@Resource public final Queue myQueue;

Please tell me if i am wrong.

Regards
Vasanthi
Hi,

Sorry for the delayed response, Harish I tried the way that given in that web page i was till getting the same error.
Karekar,as you told me it may be possible what ever you have mentioned. can you please tell me how to solve that problem....
Guys I have been tryin very long, I am not successfull in Stand alone client application , but i am successful in the web client application. Please llet me know whats oing on in my code....


Regards
Vasanthi
Hi All,

I am appearing for SCBCD, I am little confused about the two exam SCBCD 310-091 & 310-092, can anybody tell me which exam to take?.

Regards
Vasanthi
Hi,

Please can anybody respond to my problem...

Regards
Vasanthi
Hi,

My bean code is as follows

package lesson.stateless;
import javax.ejb.Stateless;
@Stateless(name="helloworldejb", mappedName="ejb/HelloWorldJNDI")
public class HelloWorldBean implements lesson.stateless.HelloWorld {
public String getMessage() {
return "Hello vasanthis Client EJB World";
}
}




And in my client code I am doing the look up as follows


InitialContext ctx = new InitialContext();
helloWorld = (HelloWorld) ctx.lookup("ejb/HelloWorldJNDI");

I am able to deploy the EJB but my client is still throwing the same exception as I posted in my 1st message

Please let me know why I am getting the error & I changed my sun-ejb-jar.xml file as follwos

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
<sun-ejb-jar>

<enterprise-beans>
<ejb>
<ejb-name>helloworldejb</ejb-name>
<jndi-name>ejb/HelloWorldBeanJNDI</jndi-name>
</ejb>
</enterprise-beans>


</sun-ejb-jar>



Regards
Vasanthi
My sun-ejb-jar.xml file is as below

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
<sun-ejb-jar>

<enterprise-beans>
<ejb>
<ejb-name>HelloWorldBean</ejb-name>
<jndi-name>ejb/HelloWorldJNDI</jndi-name>
</ejb>
</enterprise-beans>


</sun-ejb-jar>


But I did not get about the Bean header,I have posted the code of interface, Bean & the client previously. Please let me know if this is sufficient.

Regards
Vasanthi
Hi,

The deploy failed as it is not able to recognise the HelloWorldBean in xml tag <ejb-name> of sun-ejb-jar.xml. It says illegal argumnet exception. This bundle has no bean of name [HelloWorldBean].

Help needed urgent....
Regards
Vasanthi
Can anybody please give the response for my problem, I know it could be silly, but I am stuck & not able to continue

Regards
Vasanthi