Naidu Sanapala

+ Follow
since Nov 26, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Naidu Sanapala


My RMI client consists of a Java command-line app that uses Naming.lookup to obtain a reference to the remote interface. As one needs to typecast the return object to the remote interface, the client code depends on the remote interface for successful compilation and execution.

Also, I have a data class that is used by both the RMI server components and RMI client components. This is the return type for the remote method invoked by the client.

What is the correct approach out of the options given below?

a) Include the remote interface and the data class in the build classpath. This is inevitable during development and is the only way to compile the client app and remote implementation code.

However, at the time of execution, you may just mention the codebase so that the remote interface and/or data class bytecode gets downloaded. This is applicable to both the client app and the remote implementation.

b) Include the remote interface and the data class in both the build and run classpath. This is inevitable and is the only way to compile and execute the client app and remote implementation.

I would greatly appreciate your answers to my query.

If there is any other approach apart from the ones that I have mentioned, please let me know.

Naidu Sanapala
12 years ago
Are there any JTA implementations available in the market that support nested transactions and multithreaded transactions?
I am new by xDoclet. Does anybody know, how to set bean-managed transaction by EJB with xDoclet?

Naidu Sanapala

I am trying to use JWSDP 1.6 using JDK 1.4.2_05 with WebLogic Server 8.1sp4 to call a service that uses Axis for its SOAP stack and am getting

a classcastexception when invoking the service. This only happens at runtime. Has anyone run into this type issue before? I explictly set the

encoding style to document literal in my ant script which creates the stub code via wscompile and there are no compiler issues when I compile

the code.

Naidu Sanapala
Q1 Which statement about locating or using a session bean's home interface is true?

A) Acquire an InitialContext is required only for remote clients.
B) The Initial Context must be narrowed before it can be used.
C) After it is acquired by a client, a home interface can be used multiple times.
D) The client can aquired a handle for the bean's local home interface.
Q2 Which three are goals for security management in the ejb architecture?(choose 3)

A) allow for portabillity of EJB applications across servers that user different security mechanisms.
B) provide a robust authentication mechanism for standardization.
C) allow the application assembler and deployer to supply the security policies at deployment time.
D) lessen the burden for the bean provider for securing the application.
E) provide a rich secuity API for the bean developer to use within the EJB.
Q3 Which is the true about the client's view of exception received from an ejb?

A) Receiving an application exception communicates to the client that the bean will no longer be accessible
B) The client of a CMT bean can determine if the transaction has been roll back by calling the getStatus() method of the java.transaction.UserTransaction interface
C) If the client receives an EJBException,the client must discontinue the transaction.
D) If the client receives the java.rmi.RemoteException exception, the client will not typically know whether the method has completed.

Q4 Which 2 are true when comparing two session object with different homes?

A) Using the isIdentical() method, stateless session beans will always return true
B) Using the isIdentical() method, stateless session beans will always return false
C) The isIdentical() method can be used for only local object reference.
D) Using the isIdentical() method, stateful session beans will always return true
E) Using the isIdentical() method, stateful session beans will always return false

My answer Q1: C Q2:BCD Q3:C Q4:BE

But I don't sure Q3 whether C Or D

If whoever think those answer not as same as me . Would you please explain reason for your answers