irshad ahmed

Greenhorn
+ Follow
since Jun 17, 2003
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 irshad ahmed

From my main program A.java, I need to call another class (B) which is in a .jar file. But I don't have the source code for B.
How do I get A to compile? (What should the import look like?)
Thanks,
Irshad
17 years ago
I am trying out the sample Java code at http://java.sun.com/docs/books/tutorial/uiswing/learn/example2.html
JPanel panel = new JPanel(new GridLayout(0, 1));
panel.setBorder(BorderFactory.createEmptyBorder(....));
But it says "The method setBorder(javax.swing.border.Border) is undefined for the type java.awt.Container...
Any ideas?
Thanks so much in advance,
Sincerely,
Irshad Ahmed
17 years ago
Is it possible to continue a Java program after if it catches and deals with an exception?
For example, say I am processing 1000 records from a file, one at a time. If the 6th record causes a Java Exception, I want to be able to skip it and continue processing the remaining 994 records.
Is this possible with Java Exception handling? If so, how?
Thanks,
Irshad
[ April 06, 2004: Message edited by: irshad ahmed ]
17 years ago
Is it possible to continue a Java program after if it catches and deals with an exception?
For example, say I am processing 1000 records from a file, one at a time. If the 6th record causes a Java Exception, I want to be able to skip it and continue processing the remaining 994 records.
Is this possible with Java Exception handling? If so, how?
Thanks,
Irshad
[ April 06, 2004: Message edited by: irshad ahmed ]
17 years ago
Is it possible to continue a Java program after if it catches and deals with an exception?
For example, say I am processing 1000 records from a file, one at a time. If the 6th record causes a Java Exception, I want to be able to skip it and continue processing the remaining 994 records.
Is this possible with Java Exception handling? If so, how?
Thanks,
Irshad
[ April 06, 2004: Message edited by: irshad ahmed ]
17 years ago

Originally posted by Arundhathi Menon:
Hi all!
Coould u pls help me with this query..
Why do we always create the xml file in the META-INF directory for EJB deployment
Thank you


It's just a requirement for the structure of the ejb jar file, for consistency.
Irshad
Hi,
I am trying out the example in Chapter 1 of the Head First EJB book. I got everything working except the last step. It is unable to find the JNDI context. I specified the context as "Advisor", both on the server and in my AdviceClient.java file.
This is the error:
C:\projects\advice>java AdviceClient
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:22)
at AdviceClient.main(AdviceClient.java:14)
C:\projects\advice>
Does anyone know what I'm missing?
Thanks,
Irshad Ahmed
I was studying Chapter 1 (Intro to EJB) of Kathy & Bert�s book, and they mentioned using the Reference Implementation. I can�t find it on the Sun Java site.
I found something called the Sun One Application Server. Is that the new name for it?
If not, where can I download the Reference Implementation from?
Thanks,
Irshad