Do I need j2ee also for compiling ejb classes and running in Weblogic server or weblogic itself have also classes for compiling ejb. If i go to java site they do not talk of weblogic and if i go to weblogic site they do not talk of j2ee. tell me what to do? payal sharma
WebLogic has its own EJB compilation system, including a compiler app named "ejbc". They tried - with less than total success - to run this process via a gui DeployerTool app. A lot of developers just use batch files or the Ant utility to run ejbc. For details on the process, check the WebLogic EJB developer's guide.
Customer surveys are for companies who didn't pay proper attention to begin with.
Hello Tim, Why do you say that the Deployer Tool in weblogic(5.1) wasn't a total success!!. I prefer using the Deployer tool instead of the batch file because, if the batch file fails in in between .. lets say in creating the jar..it will still continue executing the other commands,which is of no point!! I found Weblogic6.0 definitely better, although it prevents the developer from seeing on what is going on in the back ground. But the deployment is a 2 min job if you have all the files and if the files don't have a bug. I have been working on weblogic for the last 2 months and maybe i am missing some thing here.. Can you throw some light on this...
You were more fortunate than I was. There were a couple of fairly nasty bugs in the DeployerTool that caused it to throw exceptions instead of get work done. They must have finally got it patched up, but I know that for a while, at least, neither they nor I were happy about its usability. I'm glad you had better success. I check return codes, so my batch files don't run on mindlessly when compile fail or jar finds a full disk, etc. so that's not a problem for me (Ant's even better - it does all that for me now). I like having a GUI tool, but when I'm doing the same thing repeatedly as part of a larger process, it's better for me to batch it, as I'm too good at forgetting manual steps. Also too much mousing makes my upper arm muscles spasm. Whatever works, though, is good enough!
Manjunath Subramanian
Ranch Hand
Joined: Jul 18, 2001
Posts: 236
posted
0
Hello Tim, I think you are right!! Ans since BEA did not include a Deployer Tool in Weblogic6.0 the only reason could be the bugs you were talking about. And i don't think there was any luck factor on my side because, i only knew how to deploy all the beans on Weblogic5.1 and nothing more(like say ACL's or creating principals , roles etc).Moreover the bean code was very much academic.
Pardon my ignorance Tim, how do you check for the return codes in the batch file? Can you show me a simple example?
Thanks, Manjunath P.S:BTW Have you checked out weblogic6.1?
The ".BAT" file processor contains a very crude (compared to, for example, the 1985 Commodore Amiga) conditional facility. It's essentially an "if [returncode] relational-operator value goto label" syntax, with the [returncode] meaning that it's implied and never explicit. A variant is used for string comparisions such as parameter checing. I think if you type "IF /?" it will help you - at the moment I'm nowhere near a Microsoft OS to be able to get the exact details. Typing "HELP IF" at the command prompt might bring up some detailed documentation. I recommend Ant myself. It understands the types of things that you do in a Java environment and it's OS-independent. It's also nowhere near as formidable as it appears at first glance. http://jakarta.apache.org/ant I worked some with WLS 6, but it's been several months back now.