Shanmugam Karthikeyan

Ranch Hand
+ Follow
since Aug 02, 2002
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Shanmugam Karthikeyan

Hi,


Hi i am getting a parse error when i tried to execute the following using catsearch.

>>> CATSEARCH (item_title,'{SIGN PEN SIGN R50 (M)), 12 PCS/BOX, RED}', null) > 0;

whereas when i use contains operator, there is no problem.

>>> contains (item_title,'{SIN PEN SIGN R50 (M)), 12 PCS/BOX, RED}') > 0;


Can anyone pls let me know the reason for this behaviour and also the solution for

this problem.

regards

S.Karthikeyan
11 years ago
Hi,

I am getting the following error while using the catsearch of oracle text.

ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50901: text query parser syntax error on line 1, column 47
ORA-06512: at "PROC_GMALL_PC_MASK", line 123
ORA-06512: at line 2

I am using catsearch in my stored procedure as

CATSEARCH (item_title,C2.ITEM_DESCRIPTION, null) > 0)

I am getting this parser problem when the C2.ITEM_DESCRIPTION value is either of the following values.

1. " SIGN PEN SIGN PEN - BALL LINER, PENTEL R50 (M)), 12 PCS/BOX, RED "
2. " PVC MAGAZINE HOLDERS (4")"

I think the above lines has some oracle text keywords which is creating this parser problem.

Can anyone pls tell me know a solution for this problem.


regards
11 years ago
Congrats and thank you very much for your feedback on this exam
Hi,

Great Score.... Congrats....
11 years ago
Hi,

It is not required for a class to definetly implement java.io.Serializable interface in order to get passivated.

According to the spec it is a container's responsiblity to retain the
state of context during the passivation stage.The container is free to
select any technics.

Hope this answer helps you.
Hi Valentino,

Best Of Luck....

regards

S.Karthikeyan
11 years ago
Hi,

Thanks,

I first started with Head First, and later went through the EJB spec.Though the spec was little hard, i went through it twice.In my view EJB spec is easier to read than other specs.

Its worth to go through the EJB spec.I revised Head first twice and took whatever mock exam available.

My favourite is www.ejbcertificate.com.

Hope this helps you.

regards

S.Karthikeyan
11 years ago
Hi All,

Just two hours before i passed SCBCD with 90%.I am very greatful to this forum.

I am planning to be an active member in this forum, which will make me stay in touch with EJB.I am very thankful for the authors of Head First EJB.
Thank you very much for providing an excellent book.

My score got reduced in Message Driven Bean concepts.I got only 50 % for MDB.May be the authors of Head First EJB can shred more light on this topic in the future editions.

regards

S.Karthikeyan
11 years ago
Hi,

Thanks for your answer.

Before asking my doubt i want to make sure that whether i have understood the question in a correct way.

In this case

"A client having a transaction context calls a method mA() on bean A, which in turns calls a method mB() on Bean B"

This means client having a trans TxA called a method mA() on bean A, since bean A method is having tran attribute as requirednew it will suspend TxA and start a new Transaction TxB, which in turns calls a method mB() on Bean B which is having tran attr as supports.Since it is having supports it will continue with the transaction TxB.

So here both Bean A and the bean B methods are invoked with transaction TxB.

Once both the method completes the container will resume the transaction TxA.

Pls let me know whether i am right in understanding this question.

If iam right, if Bean B throws a system exception, the Transaction TxB will be rollbacked and bean B will be discarded.Since Bean A calls Bean B, it will get javax.ejb.TransactionRolledbackLocalException.

Since TransactionRolledbackLocalException is a system exception the container will throw EJBException to the local Client.

Is this the reason why your answer is correct.
Hi,

Can anyone let me know the answer for this question.

Given:
Bean A with transaction attributes of "RequiresNew" for all its methods.
Bean B with transaction attributes of "Supports" for all its methods.
A client having a transaction context calls a method mA() on bean A, which in turns calls a method mB() on Bean B.

Assuming all invocations are local, which of the following statements is correct if mB() encounters a system exception?

1. The client's transaction will be marked for roll back.
2. The client will get a javax.ejb.EJBException but it can continue with the same transaction.
3. The client will get a javax.ejb.TransactionRolledbackLocalException
4. The bean B instance will be discarded.
5. mA() will get a javax.ejb.TransactionRolledbackLocalException
6. The bean A instance will NOT be discarded.
7. Changes made to the database by mA(), will be commited.
Hi ,

Thanks for your reply , Can you explain me why option d is not correct.
Hi,

Can anyone let me know the answer for this question.


1. Which of the following statements regarding an enterprise bean's environment are correct? Enterprise Bean Environment

a. The container provides the tools that allow the deployer to create and manage the enterprise bean's environment.

b. Enterprise bean instances can modify the values of the environment entries at runtime.

c. The deployer sets and modifies the values of the environment entries by editing the enterprise bean's deployment descriptor.

d. Enterprise bean instances obtain the values of the environment entries from the enterprise bean's deployment descriptor.

e. Enterprise bean instances use the JNDI interfaces to obtain the values of the environment entries.
Hi,

Can any one let me know the real usage of <ejb-ref> element in the DD.
1. Which are true about Session bean passivation?

A) Passivation always uses Serialization.
B) A bean can be removed even while in a passivated state.
C) A bean can be passivated even while in a transaction.
D) Both stateless and stateful session beans can be passivated.
E) A UserTransaction reference cannot be passivated.
F) A 'Connection' reference cannot be passivated.
G) A resource manager connection factory reference cannot be passivated.
H) A reference to a bean's privated JNDI environment can be passivated.
I) A null reference can be passivated.
J) Under some circumstances, the bean might be passivated *without*
getting an ejbPassivate method call.


ANS given : B,C,F,H,I - how come option c is possible
my answer : b,f,h,i
1. Which APIs are provided by the container?

A) JMX
B) JSP
C) JAXP
D) JDO
E) JavaMail
F) JXTA
G) JCE

ans given : c,g - what is JXTA
my answer : c,e - IS my answer is wrong ?