Brad Baker

Greenhorn
+ Follow
since Aug 12, 2002
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 Brad Baker

Hello Authors and all,
When I first started EJB programming, over a year ago, I didn't see much value in it. Now I kicking my self. Anyway I need some advice. What is the best development environment/system currently? I would love an IDE that is intelligent enough to generate the Local and Remote and the Homes from the base EJB Bean. Then make the Deployment descriptors for Weblogic, WebSphere and JBoss. Now I need full control over the getters and setters. Some of our beans don't have all the setters available in the local and the remotes can be more restrictive. Right now we use Eclipse and ant with all the deployment descriptors done by hand. Is there a way to do this with Eclipse and XDoclet?
Thanks,
Brad
17 years ago
Is the Weblogic.jar in you applications class path?

Just a thought,
Brad
18 years ago
Hi All,
I have a simple Entity Bean that is giving me fits.
I am using Weblogic 8 and both it and Weblogic build yell at me when I try to validate my jar.
ERROR: Error from ejbc: In EJB LoggerDAOBean, the home method ejbCreate(java.lang.Integer,java.lang.String,java.lang.String) was defined in the home interface, but a matching ejbHomeEjbCreate(java.lang.Integer,java.lang.String,java.lang.String) method was not found on the bean class.
This is bizarre! When I decompile the LoggerDAOBean.class in the jar I find:

Any clues as to why it clams there is no matching ejbHomeEjbCreate(java.lang.Integer,java.lang.String,java.lang.String) method?
Thanks,
Brad
18 years ago
Hello All,
I am trying my first bean on Weblogic 7 and can't seem to get the deployment descriptor correct. The home interface is, ObjectIDLocalHome and the full class name is
com.oga.gserve.biz.oid.ObjectIDLocalHome. I am using the fully qualified class name so that I can do an EJBHomeFactory latter on.
I have used the WLS console and see my bean in the JNDI tree I also used the following to find it:

I find ObjectIDLocalHome as type javax.naming.LinkRef, as a leaf of com.oga.gserve.biz.oid
So I know it exist!
But why as a javax.naming.LinkRef?
Now when I try the following:

I get:
javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException: Unable to resolve 'java:app.ejb/gs-ejbs.jar#ObjectID/local-home' Resolved: ''
Unresolved:'java:app' ; remaining name 'java:app.ejb/gs-ejbs.jar#ObjectID/local-home'
What is wrong?
It must be in one of the .xmls but I can't see it:

Thank you for any help,
Brad
18 years ago
I have been having problems with ant saying "No modern compiler" when I do the fallowing:
set JAVA_HOME=D:\java\jdk1.4.1
But if I do:
set JAVA_HOME=D:\java\jdk1.4.0
Ant is then happy.
So, why is 1.4.1 not a modern compiler?
Thanks,
18 years ago
Hello Andy,
My OS is Win2k with:
Set JAVA_HOME=d:\java\1.4.1
in my system environment.
I have:

in my build.xml and it gives me:
[echo] JavaHome: d:\java\jdk1.4.1
So as far as I can tell I have JAVA_HOME set.
What have I missed?
18 years ago
I don't undstand why I am geting this:
[javac] Modern compiler is not available - using classic compiler
Here is my build.xml

This is the full output:

My path is:
PATH=d:\java\jdk1.4.1\bin;d:\apache\ant-1.5.2\bin
So why does it say "Modern compiler is not available - using classic compiler"?
anyone?
Thanks,
18 years ago
Arg, That was not meant as an add
It is just a good place to get info on XML-RPC.
19 years ago
Hi,
Soap or CORBA could be too heavy for you. Look at: http://www.xmlrpc.com/ for a light weight solution.
Cheers,
Brad
19 years ago
My bad,
invokeAndWait() would have been better for this example.
Brad
Hello James,
This would have gotten more reponces in the AWT/Swing area but I will do what I can.
Your:

repaint just lets the GUI thread knows that there is something that need to be updated. It does not force it to do it. So you could have incremented 20, 50 even the whole 1000 before it gets around to updating the GUI
The only way to correctly update values that is not from the GUI itself is:

This way all changes happen during the GUI thread and there are no synchronization problems.
I hope this helps some.
Brad
jsitke,
Thanks for the link.
It seems that XSP always try to scriplets are the down fall of JSP. With Tag Libs, JSP don't need scriplets. XSP also uses XSLT to help in the transformation and presentation. Couldn't JSP do the same?
Just wondering what hole XSP fills that JSP can't?
Brad
19 years ago
JSP
I am not sure if we have any XSP programmers here but if so I would love to have have then state the strengths of XSP. I am not trying to start a war. I just don't see the need for XSP. From my limited exposure it seems that with JSP tag libraries you can do everything that XSP can.
What have I missed?
Brad
19 years ago
JSP
Jim,
Thank you for the reply. I guess I bought into the hype that NIO was a silver bullet for all Java IO. Just by changing to it I believed that there would be a HUGE speed increase.
Like all ASSumptions if one is not careful you just become the first three letters of it....
Best Regards,
Brad
19 years ago
Hi all,
I am not sure if this is best hear or in performance but here goes:
I have a function that I am updating to use NIO
void build(File f) throws IOException {
Reader r = new BufferedReader(new FileReader(f));
StreamTokenizer st = new StreamTokenizer(r);
... do stuff ...
}
void build(File f) throws IOException {
FileChannel fc = (new FileInputStream(f)).getChannel();
Reader r = new BufferedReader(Channels.newReader(fc, "ISO-8859-1"));
StreamTokenizer st = new StreamTokenizer(r);
... do stuff ...
}
After the change the method is about 12% SLOWER then before. Now I am very new to NIO and I know that I must be overlooking something.

Any suggestions?
19 years ago