How can I write a program in WebSphere that does not have a package name, yet can access the J2EE stuff, maybe even (if Websphere or the groundrules permit) use existing programs that are using som
Posted on 2004-09-16
Please advise as to what is the most practical way to go with reference to the issue below : Thank you in advance
Can a batch program(s)(two be run from Windows XP) be developed from
WebSphere 5.0. I have to use a public static void main in the program. Is also
possible for me to use existing classes that are located in an ejb project of
WebSphere? I have to access a couple of databases, plus some business rules, and ultimately having to send emails to selected people. Since JavaMail is from the javax.mail.*, that means it is J2EE. All of these programs have the name of the package of where the programs reside in WebSphere. Also, one program that connects to a databases thru use of JDBC and uses below:
How can I write a program in WebSphere that does not have a package name, yet can access the J2EE stuff, maybe even (if Websphere or the groundrules permit) use existing programs that are using some EJB(s).
If I can’t use the EJB stuff can I still use the javax mail and sql and jdbc that I will
have to develop in a program that can be executed from a windows Schedular?
It seems that the main program cannot have a package statement. When I test and
from DOS, it will fail because of a NoClassDefFoundException. Is there
something I’m supposed to do with a jar file in WebSphere to accomplish my
Initially I want to access two databases, and send an email using JavaMail to myself.
This will prove that I can accomplish my mission before I get into the much larger complexities of writing another program(s).