Win a copy of Fixing your Scrum this week in the Agile forum!

Nikita Deshmukh

Ranch Hand
+ Follow
since Jun 08, 2005
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 Nikita Deshmukh

Hi all

I am trying to write a simple stateless ejb and I can't compile the interfaces and the bean class. One of the errors I am getting is as follows :

DemoHome.java:12: cannot find symbol
symbol : class CreateException
location: interface com.EJBPract.DemoHome
public Demo create() throws CreateException, RemoteException;
^
I have tried setting the classpth also. Some guidance on setting the classpath would help.

i have downloaded and installed j2eesdk-1_4_02_2005Q2-windows.exe. Any problem with this.

Please I need help with this so that I can proceed forward ....

Thanks
Niki
Hi all,

I am trying to run this sample webservice on JBOSS, the samples that come with WSIF. I am trying to run the ejb AddressBook sample, but the error that I am getting is

Exception in thread "main" org.apache.wsif.WSIFException: Unable to find an available port
at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
at ejb.client.dynamic.Run.main(Unknown Source)

Any ideas abt this error ??
Need help ...

Thanks
Niki
15 years ago
Hi everybody

I am trying hard to get one of the samples in wsif to work but i am getting this error when I run the .wsdl file .....

Exception in thread "main" org.apache.wsif.WSIFException: Unable to find an available port
at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
at ejb.client.dynamic.Run.main(Unknown Source)

Any help ??

Thanks
Niki
15 years ago
Hi,

Thanks for the reply. It is just asking me to set the an_home path and copying /bin & /lib to a directory.

Is that all to it??

Thanks,
Niki
15 years ago
hi,

i downloaded apche ant but have no clue as to how to install it .... please some help would be greatly appreciated .....

thanks,
niki
15 years ago
Hi

Is it possible or valid to specify multiple transaction attributes for a single method ??

Thanks
Nikita
Hi ranchers

Has anybody heard of or read abt javax.naming.context.rebind in context with SCBCD ?? what does it mean ??

Thanks
Nikita.
So finally B is the correct answer ??

Thanks
Nikita
Given :

7. try{
8. ssb.dbtAcc(30,120000.00,6.5);
10. //some code
11. }catch(java.rmi.NoSuchObjectException ex1){
12. //exception handling code here
13. }catch(java.ejb.EJBException ex2){
14. //exception handling code here
15. }catch(javax.transaction.TransactionRequiredException ex3){
16. //exception handling code here
17. }catch(java.rmi.RemoteException ex4){
18. //exception handling code here
19. }

Assume ssb is a reference to a stateful session bean's remote component interface. which line will never be reached ?

A. line 12
B. line 14
C. line 16
D. line 18

Ans C.

Shouldn,t the answer be B since this is a remote component exception and hence EJBException will not be thrown ??
please advice.

Thanks
Nikita.
Hi

I passed SCWCD inn June. I went for an interview a couple of days and the interviewer asked me if I knew the disadvantages of servlet chaining. Well I didn't know and he said he was trying to see how well I 've done on scwcd. Does anybody know that ??

Thanks
Niki
Hi,

I am using the manning exam study kit. Is there something like javax.naming.Context.rebind ?? I have certainly not seen anymention of it in the book and not in the spec either. If there is something like this .. then what is it and where can I read more about it ??

Regards,
Nikita.
Hi all,

This is really confusing. Ih ave been going thru the specs and I really don't know what to think. Now here's the question :

Given the session bean with a run-as identity, What is returned from getCallerPrincipal when invoked from the bean's business method ??

A. the run-as identity.
B. the principal associated with the client invocation.

Now the answer states A as the correct option. But the ejb-2.0 specs on the page number 437 clearly state that

"Note that getCallerPrincipal() returns the principal that represents the caller of the enterprise bean, not the principal that corresponds to the run-as security identity for the bean, if any."

Which one is correct.

Thanks,
Nikita.
Hi,

Is it legal to use an input parameter in the FROM clause or the SELECT clause of an EJB-QL query.

Thanks
Nikita
Hi,

Does the bean provider have to implement an ejbRemove method in the bean class ??

I mean bothe the forms of ejbRemove or anyone form will do ?? In the case of stateless session bean can the bean provider get away by not implementing the ejbRemove method ??

Also does the bean provider have to implement the handle classes ??

Thanks,
Jyotsna.
Hi,

Can multiple entity beans use the same primary key class ?

Thanks in advance.