Sloan Bowman

Ranch Hand
+ Follow
since Jan 21, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sloan Bowman

The problem is I cannot determine the name it is bound to. I've attemped using mappedName name and others in the annotation however when doing the lookup we can never seem to find the correct bound name? Any tips?
Guys/Gals,

I have a project that is really starting to get to me. I wanted to run this by you to see if you had any ideas. Currently I have 3 projects (Using Maven) One EAR project for the completed build and deployment, one EJB project which contains the Beans and POJO's for the business logic, and WEB project which uses JSF amount other frameworks. The problem I am having I would think would be simply however its driving me nuts. From withing my EJB project I have a standard POJO that I want to access a stateless session bean. I have attempted injection but found out that this method does not work from within the POJO. My next step was to use JNDI lookup however I cannot get it to find the object. I'm going to post the examples below to see if somebody has any ideas. I'm getting frustrated and figured somebody here could open my eyes. Also you should know that accessing these beans from the web side via Servlets and Managed Beans works 100% with no problems.


** Stateless SessionBean



*** POJO using injection (Does not work)


*** POJO using JNDI


OR



Both of these JNDI examples return back NameNotFoundException. Can anybody shed some light as to what is going on?
If this isn't the proper place to post this I apologize however it seems to be maven related so lets give it a try. The issue is as follows. I have a project setup using maven as I have with pretty much all of my projects. Within this project I have standard code to load a props file from a resource stream. The properties file is located in the resources directory and is copied to the target directory as it should be on build. However when I run the project I get FileNotFoundException even though it is in the class path. Is there a trick to getting this to work with maven builds? I'm getting a bit tired of dealing with it. My environment consist of Netbeans 6.1 MavenIDE plugin (3.1.3)and the standard project archetype. Any ideas? I appreciate your time.
16 years ago
So basically using the flyweight with Panels or any component that needs to have multiple nested components there is no other way other than creating several instances of that component if you want it inside the same nested component correct?
17 years ago
I have an application that uses panels to display data. This can grow into thousands of panels all of the same type. I've been looking into using the flyweight design pattern to lower system resources and make the application faster all around. Can you use the flyweight pattern with JPanels? I've been attempting to do so but haven't had any luck thus far. I've created the factory which works but it only displays the 1 panel which happens to be the last in the list created. Below are some of the requirements I need

1. Each panel has the same appearance
2. Each panel has a different question object attached which holds information about what to display inside the panel
3. Each panel has icons being displayed based on conditions being passed.

What would be my best route for this type of situation? Thanks for the help.
17 years ago
The only way to do this would be to 1. sign the applet or 2. use Servlets to communicate with the DB and return the data encapsulated in an object that way.
18 years ago
So are you asking how to repaint the tree to make sure the newly added nodes show up properly? If so you should be able to run the validate() and repaint() and be in good shape. Am I missing something?
19 years ago
If you get it working properly let me know what you did. I've been messing with this in my spare time also.

Thanks
19 years ago
I'm not sure you understand the different between a JFrame and a JApplet. By using either one of these does not determine which is the best method for your layout. The different between these is that one is used for building an applet (to be viewed on a webpage) or a standalone application. Deciding how to partition (layout) the components has to do with the layout managers you use. Explain your question in more detail and I might be able to help you out.
19 years ago
You should create your constraints so the right hand has a higher weight. For example.

constraint = new GridBagConstrait(1,1, 1,1, 1.0, 1.0 etc...

If you post some code I'll be glad to help you out.
19 years ago
you should use the panel.validate() also if you have the chance this will help you.
19 years ago
I appreciate the responses I have received so far regarding this. From reading it appears this is the best way to go by far. Is there a pretty big learning curve to implementing this?
I have been using J2EE for some time now but have never used the built in security that comes with it. I am creating a new web based application that I would like to implement the security directly into the application instead of using my own home grown method. Does anybody have any advice on the best and quickest way to implement this? I am currently using JBoss 4.0.2 as my application server. Is this a good idea for a smaller scale project or should I stick with using good ole homegrown security through databases and some programming?
Did you ever figure out how to do this? I am looking to do the exact same thing.
19 years ago
JSF