Rajesh Srivastava

Greenhorn
+ Follow
since May 14, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rajesh Srivastava

Hi All,

I am working on a project to migrate JAX-RPC web services to JAX-WS services. Following are the service details from JAX_RPC wsdl file.

<wsdl:service name="AuthenticationWebServiceService">

<wsdl:port binding="impl:AuthenticationWebServiceSoapBinding" name="AuthenticationWebService">

<wsdlsoap:address location="https://localhost:9080/SSIWebServices/services/AuthenticationWebService"/>

</wsdl:port>

</wsdl:service>

Here service name has got 2 'service' words in service name. When I change this web service to JAX-WS, it takes "wsdl:service name" attribute and creates location as "https://localhost:9445/SSIWebServices/services/AuthenticationWebServiceService". and the wsdl files as AuthenticationWebServiceService.wsdl.

The problem here is that in existing jax-rpc clients service name is consumed as AuthenticationWebServiceService but wsdl name is AuthenticationWebService.wsdl. Because of which the client does not recognize the service. Is there a way to decouple service name with wsdl name.


Thanks in advance.
Rajesh Srivastava
12 years ago
Hi,

I have created file dsn for a Sybase database on a server. I want to access this database from a Java client on another machine. Is there any way to use the file dsn on the server. I want to make use of ODBC.

Thanks in advance,
Rajesh
SCJP, OCP, SCBCD
Hi everyone

I need help on pre selecting items in html:select.
Thanks in advance

Rajesh
SCJP, SCBCD, OCP

When I see through the fog I see myself...

20 years ago
Congrats, Keep it up


rajesh
SCJP 1.4, SCBCD, OCP
20 years ago
Hello everyone
I want to take SCWCD 1.4. Which book(s) shall I refer to? Waiting for reply.


When I see through the fog I see myself...

Rajesh
(SCJP 1.4, SCBCD 1.3, 1Z0-001)
Hello everyone

I cleared SCBCD with 95% score today. I would like to expess my sincerest thanks to Kathy and Bert for their wonderful book.
Thanks to Valentin for his untiring support to the forum and to all javaranch members for their support and inspiration.
I express my thanks to the EJB 2.0 specs team for the precise and clear specs.
Finally I thank the teams of www.ejbcertificate.com and www.jdiscuss.com for the free mock exams. They have done a great service to the Java community.


When I see through the fog I see myself...

20 years ago
Thanks for the confirmation.
It feels great to have a reply from a genius like u


When I see through the fog I see myself...
Thanks for the confirmation.
It feels great to have a reply from a genius like u


When I see through the fog I see myself...
Hello everyone

(1) This one is from www.ejbcertificate.com (Exceptions-3/10 )
Which of the following statements are true when a session bean's client receives a java.rmi.RemoteException? [Check all correct answers]

1 The client will never receives a java.rmi.RemoteException.
2 The client calls the session bean from another JVM.
3 The client calls the session bean from within the same JVM.
4 The container throws a java.rmi.RemoteException if the container performs a transaction rollback.
5 The throws clauses of all methods in the remote home and component interface must declare a java.rmi.RemoteException.


Answer 2, 4 and 5 have been given as correct.
As per the specs remote view is location independent -- Specs page 52.
Hence I think that it is not necessary that the client calls the session bean from another JVM.
Am I correct ?

---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------

(2) Are the values for <env-entry-value> case insensitive (as given in explanation of JDiscuss Question ID 1680). I need some help in this regard as specs page 460 says that content of XML elements is in general case sensitive.


When I see through the fog I see myself...
Thanks for confirmation
Hello everyone

The following question is from www.ejbcertificate.com (Client view of a session bean - 4/10)

Which of the following statements regarding session beans are true? [Check all correct answers]

1 Invoking javax.ejb.EJBObject.getPrimaryKey() on a session bean results in javax.ejb.EJBException been thrown.
2 Invoking javax.ejb.EJBLocalObject.getPrimaryKey() on a session bean results in javax.ejb.EJBException been thrown.
3 Invoking javax.ejb.EJBHome.remove(java.lang.Object primaryKey) on a session bean results in javax.ejb.RemoveException been thrown.
4 Invoking javax.ejb.EJBLocalHome.remove(java.lang.Object primaryKey) on a session bean results in javax.ejb.RemoveException been thrown.
5 Invoking javax.ejb.EJBHome.remove(java.lang.Object primaryKey) on a session bean results in java.rmi.RemoteException been thrown.


The answers given are 2 and 5. But I think that answers are 2, 3 and 4.
Reason - Page 62 of specs reads - The EJBHome.remove(Object primaryKey) and the EJBLocalHome.remove(Object primaryKey) methods result in javax.ejb.RemoveException if called on a session bean.
Is this correct or is there something else which I haven't noticed.
Hello Everyone

Following is a question from JPilot test 1.0


Which are true about session beans?

Select all 3 correct Choices.

1. A client can pass a remote home object reference to another application.
2. The javax.ejb.EJBMetaData interface is intended to allow application assembly tools to discover information about the session bean, and to allow loose client/server binding and client-side scripting
3. The javax.ejb.EJBLocalHome interface defines the method create() which returns javax.ejb.EJBLocalObject.
4. The javax.ejb.EJBLocalHome interface defines the method remove(Object primaryKey) which returns null.

The answers include 1,2,3

But I think answer 3 is wrong because although the create() method must be given
by the bean provider in the Home interface it is not defined in interface
javax.ejb.EJBLocalHome

Is this correct?
Hello Everyone

Following is a question from JPilot test 1.0


Which are true about session beans?

Select all 3 correct Choices.

1. A client can pass a remote home object reference to another application.
2. The javax.ejb.EJBMetaData interface is intended to allow application assembly tools to discover information about the session bean, and to allow loose client/server binding and client-side scripting
3. The javax.ejb.EJBLocalHome interface defines the method create() which returns javax.ejb.EJBLocalObject.
4. The javax.ejb.EJBLocalHome interface defines the method remove(Object primaryKey) which returns null.

The answers include 1,2,3

But I think answer 3 is wrong because although the create() method must be given by the bean provider in the Home interface it is not defined in interface javax.ejb.EJBLocalHome

Is this correct?
Hi Everyone

Folowing is a question from mock exam (difficult question 1/20) given at www.ejbcertificate.com

Q. Which of the following statements are true when a session bean's client receives a java.rmi.RemoteException? [Check all correct answers]

1 The client will never receive a java.rmi.RemoteException.
2 The client calls the session bean from another JVM.
3 The client calls the session bean from within the same JVM.
4 The container throws a java.rmi.RemoteException if the container performs a transaction rollback.
5 The throws clauses of all methods in the remote home and component interface must declare a java.rmi.RemoteException.

The answer given is options 2, 4 and 5. along with the following explanation :

The Container catches a non-application exception; logs it (which can result in alerting the System Administrator); and, unless the bean is a message-driven bean, throws the java.rmi.RemoteException (or subclass thereof) to the client if the client is a remote client, or throws the javax.ejb.EJBException (or subclass thereof) to the client if the client is a local client.

I think option 4 is not correct because the container need not always throw
java.rmi.RemoteException whenever it rolls back a transaction. Am I correct?