j2ee

Can anyone recommend an existing java file repository

that will allow my users to edit word documents locally in Word and have them saved back to the server when finished. The project will be Grails based and I'm looking at things like WebDav but I would need security features that won't allow one user to access another users documents. And unfortunately the test I ran opening a word docu...

is .net faster than java

I heard a lot of people saying that java is slow comparing .net, like they had servers with application on java with jboss hibernate and other stuff and it was really slow, but when they moved to .net all the performance issues disappeared. Is java really much slower ? isthere any benchmarks made ? ...

Does an EJB project typically contain only one Enterprise JavaBean or a collection of them?

I'm working with IBM Rational Application Developer for WebSphere; it is based on Eclipse, though I'm not sure of its differences from Eclipse's Java EE features. I want to have two Enterprise JavaBeans. Do I create two separate EJB projects, one per JavaBean, or do I put them as different classes in one project? What are the considera...

A faster way to execute javascript code within Java(sdk1.4)

Currently, I am using Rhino engine to execute some big blocks of javascript code on the server side. However, sometimes, it takes so long(more than 10 minutes) and eat up all CPU usage (at least on my local development env, it is doing this right now). So I am wondering that what I can do to improve the current system or I can try a new...

How to get Full Call graph for Documentation Purposes?

Our team is being required to document every method in our code, and describe what's getting passed in and out and such. Is it possible to auto-generate a document containing a full call hierarchy tree starting at a function and going down to all the possible call expansions? How? Using eclipse, spring, hibernate. Also we have access...

How is a "Context Object" design pattern used to enhance security?

I'm familiar with the use of the context object design pattern - a lightweight context wrapper around objects passed between tiers. If one were to use the context object to track taint (untrusted user input), or the origin tier, I could see how a receiving tier could dynamically filter, encode, or validate accordingly. For example: A ...

File size from ejb 2.1

How can I find the size of the file/directory from an ejb. I understand access of system resources are not allowed according to the ejb specification. But is this an rule. ...

How to profile application running in Tomcat 6 on Solaris 10 Sparc Server ?

My J2EE based application running in Tomcat 6 on Solaris 10 sparc server is very very slow. It works fine on Linux servers. I am using flex as web front end to my application. I need to know how can I configure and run it using any java profiler on Sun Solaris server. ...

Java or Python for a System administrator ?

Hello, I'm currently studying to become a Networks/Systems administrator, and I would like to know what language do you recommend me to learn/improve that could be useful in my career ? I know Java it a lot used in enterprise as Application Servers (J2EE and co), but I also know that Python is used as script and some server-side scripti...

Using an EAR file to create new project in JDeveloper

I'm not even sure if I worded the question correctly. I've tried googling, but can't find anything relevant. Basically I need to create a working project folder in JDeveloper from an ear file. The ear file is all I have, and I need to be able to modify code. The ear has a war and the war has numerous jar files. I have no experience ...

A new HttpSession for each request?

Hi all, I've always taken for granted the JSESSIONID cookie created for every fresh request for a given client when developing applications using the servlet specification. But after giving it a bit of thought, isn't is more logical for the servlet container to create a cookie header only after the session has been requested and created...

Glassfish 2.1 unrelyable deployment

Hi there, i have a glassfish 2.1 server plugged into my eclipses(helious) and it seams that its very unrelable when i deploy my project. I have a very simple EAR wich i wish to deploy and view the web servies of initialy it sucseeded. Since then has been very temprimental sometimes it will deploy and other it will say its depoyed but ...

WebSphere web.xml / bindings issue

I just recently started having issues while deploying EARS within websphere. The error I get after I install the apps is provided below. ------Start of DE processing------ = [7/18/10 10:51:19:309 CDT] , key = javax.management.MBeanException com.ibm.ws.management.AdminServiceImpl.invoke 679 Exception = javax.management.MBeanException So...

How to actually use liquibase in a maven project with svn.

Hello Experts ! Last week i read about liquibase quick start and all the related tutorials but i feel like i don't get the whole drift about using it for consecutive change in the database and i have some questions still opened. i'm developing an application in netbeans using maven with 3 modules: dbunit module, service module a...

J2EE EAR shared location of read/write resources within clustered environment

Within a J2EE environment (happends to be WAS 6.1 but could be any application server) I need to place a XML file, which is a configuration file, so that I can read and write to it. This needs to be available in a clustered environment so I am looking at using the class path to load the file. I am thinking I can store this file in t...

Weird JVM Crashing Issue with CF 9 on RedHat Enterprise Linux

We're currently running ColdFusion 9 on a RedHat Enterprise Linux server and have found that, under certain circumstances, the JVM is crashing causing the CF server to be completely useless and requiring a full server restart. The only error that's being returned by the CF app just prior to the JVM completing its death spiral is a java....

Implementing lazy loading of a many-to-many on EJB3 beans

I have two database tables, User and Role. I'm trying to set up a bidirectional many-to-many mapping in my application but I'm running into performance issues when eagerly fetching. The many-to-many works using a UserRole join table. My DTOs look like this (fat has been trimmed): UserDTO.java @Entity @Table(name = "[redacted].User") pu...

WebLogic Web Services URL/protocol at run-time

Hi all, I've been looking through the WebLogic API and can't seem to find what I'm looking for... Is there a way to determine at run-time the URL being used by an application to access a web service? I have a requirement to log the URL/protocol that was used on every incoming request to the server. Any insight is much appreciated. Th...

What is the difference between servlet and jsp?

Possible Duplicates: What is the difference between JSF, Servlet and JSP? JSP Servlet and Web Programming When it comes to the open-source Java Platform, Enterprise Edition (Java EE) application server, how would you characterize the difference between: JSP Servlet While both are able to generate dynamic Web content, I a...

Data Access control in J2EE technologies

Hi Guys, I am working on a project that requires that i implement a mechanism for controlling data access to the content that displayed on the pages. First off to clarify, i am not refering to the ability for different users to log on to a specific page and or view specific pages. That is a different type of access control. I am more...