Nancy Antony

Ranch Hand
+ Follow
since Sep 06, 2007
Merit badge: grant badges
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Nancy Antony

Hi Ranchers,

I am preparing for Oracle SOA Suite 11g Certified Implementation Specialist. Where can I find Good Mock test to know the level of difficulty and prepare better.

Nancy
Hi Ranchers,

I passed 1Z0-897, Oracle Certified Expert Java EE6 Web Services exam

Nancy
Hi Ranchers,

I am member from quite a number of years now...

I passed my OCM for Java EE Architecture wirh 86% marks.

Nancy
10 years ago
what is the difference between " and
11 years ago
JSF
I created these beans :



I'd like to use how can I use this bean in facelet to set and get its values? Any good coding based book or tutorial on JSF 2.0.
11 years ago
JSF
Hi Ranchers,

I want to take Web Services Certification for Java EE6 i.e. 1Z0-897 exam. Can I find some practice exams from Oracle itself. Which books to follow?

Nancy
I tried the suggestions, but it didn't work.

I got this stack trace : I'm using Glassfish 3.1

Nov 9, 2011 8:00:08 PM com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
javax.naming.NamingException: Lookup failed for 'java:global/HelloBean/SayHello!hello.SayHelloRemote' in SerialContext ,orb'sInitialHost=localhost,orb'sInitialPort=3700 [Root exception is javax.naming.NameNotFoundException: HelloBean]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:442)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at allworld.TestBeanSaysHello.main(TestBeanSaysHello.java:21)
Caused by: javax.naming.NameNotFoundException: HelloBean
at com.sun.enterprise.naming.impl.TransientContext.resolveContext(TransientContext.java:252)
at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:171)
at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:172)
at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:58)
at com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:89)
at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:146)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:176)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:682)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:216)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1841)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1695)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1078)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:221)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:797)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:561)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2558)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:492)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:528)

Any help ?
I create a Remote Stateless session Bean with the following simple code


And Class Implementation is :


And I wrote a Java SE Client as follows:



I added HelloBean Project in library and gf-client.jar from glassfish modules. When I run this I get :

Nov 9, 2011 8:02:58 AM com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate

and it keeps running infinitely

Can anyone help?

Hi Ranchers,

Can anyone suggest ?
which book to follow?
where to get practice questions?

Thanks,
Nancy
I installed JDK6. And when I write a simple program with assertion it neither works in command prompt nor in Netbeans6.9. I think if it will work in command prompt it will work in JDK. I tried java -ea both in command prompt as well as in Netbeans VM options. Any idea why its not working.

Regards,
Nancy
13 years ago
Thanks Ralph. I'm certainly looking at much more than this.that is how internal implementation of method call happens. I understand that all non-final methods by default are like virtual methods in Java. I wanted to see how parentRef=ChildObj denies to call a pure child method, the real tracing by JVM to implement method invocation.

Regards,
Nancy
13 years ago
Hey Ranchers,

C++ handles runtime polymorphism with virtual pointers and virtual tables. How does Java do it? I know the process, no issues I'd like to know its internals. Any idea? Any website? Anyhting...

Thanks
nancy
13 years ago
Hi Ranchers,

when I write int i=-1;

i=i>>>31;
System.out.println(i); // i is 1 understood

when I write

int i=-1;
i=i>>>32;
System.out.println(i); // value is -1

Why so?

Regards,
Nancy
13 years ago
Constructor does not allocate memory for the object/instance, that is done by new. what is the role of constructor is to initialize the instance variables. Now there are two issues which needs attention and I'd like to confirm with you ranchers

1. when I donot write any constructor in my class Java provides one, which we usually say that intializes the instance variables to their default values, but I think default construtor doesn't do anything as any variable screated on heap is automatically initialized, am I right?

2. What does constructor returns ? Current Object i.e this that means object reference as this is a reference to the current object. So I understand the process as such. new allocates memry and constructor is called by passing this to the constructor and the only code which is present in default constructor is return this and in paramterized constructor , return this statement is automatically added?

Any suggestions or additions....

Hi,

Problem is when I want to print unicode character in Java program

say char ch1='\u6789', ch2='\u67f9';

When I print it using System.out.println(ch1+" "+ch2); // output is ? ?

I'm not able to print actual character which is suppose to be printed, say chinese or japanese character.

How can I work with unicode character set which works well?

Nancy