Casttro Francis

Greenhorn
+ Follow
since Oct 08, 2008
Merit badge: grant badges
For More
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 Casttro Francis

Meet Gaurav is exactly rite. Downcasting is not possible in Java..

You are trying something like this
Exception aa = new Throwable(); \\ Impossible in Java

Throwable is a super class of Exception.
15 years ago
Wait() : This function takes parameters as milliseconds and puts the thread in wait state for the desired time of the programmer after time passes the execution starts again.

Sleep() : This function is also used for same purpose using his function by java you can put a thread in sleep state .sleep does not contains any parameters so the thread will not be automatically start execution It needs a wake up signal again which can be Notify() or Notifyall().

So the main difference in Wait() and sleep() is wait takes time parameter and wait for specific time only and sleep throws a thread in sleep mode for unspecified time.

Better read Java API for more information
15 years ago
Yes the default constructor of the super class will always get called when you explicitly called any sub class constructor..Even by default when you create an object for the subclass the super class empty constructor will get called.
Try to develop a script file and run
[ December 10, 2008: Message edited by: Casttro Francis ]
15 years ago
Yes you can follow mastering EJB3 book. But my option for beginners is EJB3 in Action..
HI Deepak,

MDB are similar to stateless session beans. It will not maintain any session with clients..

Ex were MDB will used used: The MDB will pick messages asynchronously from the Queue and if you want you can do some business logics and send the message to another Queue or database. If you configured your MDB for some 50 instances then 50 messages were picked from the Queue and it will process simultaneously.

If you have any message dependency then don�t go for MDB

I guess you didn�t get anything. That�s the reason Christopher assist you to read the tutorial.. It�s better to come from basic understanding.
HI

Just set the ANT_HOME in the path and then execute the ant command in the prompt.


build.xml will get called
15 years ago
Exactly !! Not only in E:/documents. You can call it from any directory
15 years ago
The PATH variable contains directories where binary files (e.g. EXE files in Windows) will be looked for.
If you open a command prompt and type "javac", you're supposed to have the "bin" directory of your sdk into the PATH, otherwise you'll get an infamous "Command not found" error message.

The CLASSPATH contains directories (or JAR files), from where your java compiler/runtime will look for .class files (and some others).
For example, "java Hello.class" will not work unless you set the directory (or JAR file) Hello.class is in, into your CLASSPATH.


PATH : The OS will look into this while executing.
CLASSPATH : The Application will look into this while executing.

Hope this will help you out...
15 years ago
Hi James,

Create a new directory called programs under c: and store the .java or .class files. Now open a command prompt then set the path as


Now change the prompt to your working directory, Ex: c:/programs. Now execute


This will create the jar file in the working directory itself..
15 years ago
Set the path using


Hope this will help you
15 years ago
Hi James

I guess you were executing the command from /jdk/bin directory.. First set the class path and then execute the above command to make jar from programs directory. It will create the myfile.jar in the programs directory..
15 years ago
HI Priya,

Use Trim in the Query itself. It will work..

EX:

trim(' ARVOD TEC ')

You are using Oracle or DB2 ?? :thumb:
I agree that the MDB will pick a message from the Queue Asynchronously. Use data source for better performance

And the important thing here for Performance

1. Try to develop a PL SQL package and insert messages Using a bulk insert. And the PL SQL package using Callable stmt.
2. Or use Execute Update.

If this not suits your requirement. Explain more detail about your requirements.
Yes, Meetgaurav U R rite..

Michael,
Please read the API documentation and look for the execute method. That will explain it all to you.

http://java.sun.com/javase/6/docs/api/java/sql/CallableStatement.html :thumb: