Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. russland

    how to wait n seconds for Runtime.getRuntime.exec() to execute

    Hi, Some system commands would halt the execution if one has not enough privileges to do so. How, can I allow my runtime to try for - let's say - 10 seconds. But if nothing is return and the command is blocked, then continue. What's a solid approach to this? Thanks for any hints.
  2. russland

    unintentionally overwritting properties

    Right!
  3. russland

    unintentionally overwritting properties

    From looking at the API there's no close method. What method do you refer to? thanks for the comment.
  4. russland

    unintentionally overwritting properties

    Okay, here's the solution. One needs to load the prop.load(new FileInputStream(propFile)); before the FileOutputStream out = new FileOutputStream(propFile);
  5. russland

    unintentionally overwritting properties

    Hi, I store my properties to a file after i populated them with strings using the setProperty(String key, String value) method. However, it keeps overwriting the properties that i have not changed during this action. So I first loaded the properties with an input stream of the file. Didn't help...
  6. russland

    Event without GUI

    Hi, I'm having a listener place which is listening to file changes on my local hard drive (using JNA). works nicely. In this class (singleton), i check if this file is a pdf document (works fine to). If yes, I would like to raise an event that could be captured by another object of my...
  7. russland

    J2EE and EJB3

    Another Hint: deploy (install) AXIS2 war before OpenEJB war on your tomcat server 6.x. Otherwise the tomcat server will not start.
  8. russland

    J2EE and EJB3

    Solution: 1) When OpenEJB Plugin for Eclipse is downloaded and installed from the Apache OpenEJB, do a restart. 2) Create a new EJB Project 2.1) Name it. 2.2) Create a new target runtime. Select OpenEJB 3.x.x from the Apache folder. Target the location %catalina_home%/webapps/openejb/. 2.3)...
  9. russland

    J2EE and EJB3

    Okay I've learned I need OpenESB from Apache for the Tomcat server in order to run EJB.
  10. russland

    J2EE and EJB3

    Where do I need to point the "JRE HOME"? Btw, Tomcat is not a J2EE server suporting EJB? right? Well, if that's the case, I don't need to try any further because then I wouldn't find any libraries for EJB syntax. answer and advice?
  11. russland

    J2EE and EJB3

    hm. yes. good guess. i might have referenced the wrong jre, right? doesn't that J2EE-JRE come with the Eclipse J2EE bundle? sorry, for playing so stupid. It's just no obvious nor plausible to me.
  12. russland

    J2EE and EJB3

    Hi there, I'm a C# developer and diving into J2EE 6.0 and starting with the latest Eclipse Galileo J2EE distribution and Tomcat 6.0. 1) I create a EJB Project (no error). 2) I created a EJB 3.0 Session Bean. Error with import of javax.ejb.Stateless saying: "the import of javax.ejb cannot be...
  13. russland

    ClassCastException: Class to Interface casting

    ow. given the entire fqcn. I think I should try to dynamicly load the IPlugin from the plugin jar. The plugin jar included in the main application??? It's a plugin. I want people to develope plugins for my main application. I don't care what they programm, as long as they give me a name (that I...
  14. russland

    ClassCastException: Class to Interface casting

    ow. Well, if that is a definite answer, than I say thanks! hm... jjj I've got no clue how the main and plugin application should read from the same Interface in order to cast. That seems to oppose the idea of reusability. If you can think of an approach, I'm happy to hear. Thanks for your...
  15. russland

    ClassCastException: Class to Interface casting

    Hm, I didn't think of that. I mean the IPlugin of the Plugin is, OF COURSE, in a different package path than the main application. Also it has its own IPlugin interface in that very same package path. The other IPlugin, the one I use for casting, is stored in the main application. However, they...
  16. russland

    ClassCastException: Class to Interface casting

    Because with Plugins you don't know the class names (caution!!! I hardcoded the fqcn ONLY for test purpose. I want to fetsch it later dynamically. Thanks anyway for your response.
  17. russland

    ClassCastException: Class to Interface casting

    Hi, I tried to use an interface to enforce the plugin developers to implement the function "initialize(Composite parent, int style)". Interface: import org.eclipse.swt.widgets.Composite; interface IPlugin { void initialize(Composite parent, int style); } a Test-Plugin is this: public...
  18. russland

    cfajaxproxy --> absolute path?

    okay. we need to add the same path to the javascript code when invoking. so, no just to the cfajaxproxy attribute. [for JavaScript] var auth = new wr.lib.BLL_DAL.authentication(); [for CFML] <cfajaxproxy cfc="wr.lib.BLL_DAL.authentication" /> hope this helps others, too.
  19. russland

    cfajaxproxy --&gt; absolute path?

    Hi, The documentation of cfajaxproxy states that the reference to the cfc can be absolute. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_3.html I do have the authentication.cfc in a BLL directory which is placed way far from the directory where I invoke it. How do...
  20. russland

    default value = &quot;WR&quot; + [column 1]

    Yes, I would concur. Development Environment only.

Part and Inventory Search

Back
Top