Franck Smith

Greenhorn
+ Follow
since Dec 21, 2005
Merit badge: grant badges
For More
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 Franck Smith

Hello,

What OS are you using ?
I had this probleme with debian but not with other distrib ...
17 years ago
I've been used ant in several projects. Now I have to migrate 5 projects to maven. I can say that ant and mavan are different. Maven is not just a building tool, it provide an organization and a structure layer. All you do in ant can be done in Maven because you can call ant target.
Projects I'm working on have very big and complex ant builds and don't have exactly the structure of maven convention but it's still possible to migrate them.
The most advantage to migrate to Maven are : standardization of how to handle a project, dependencies are clearly defined, the concept of artifacts that can be shared to other projects, documentations and reports, remote and local repository concepts.
18 years ago
Hi,

Is it possible to put in the remote repository arctifacts without a version, for example in maven 1 :

<groupId>myGroup</groupeId>
<artifactId>myArtifact</artifactId>
<type>jar</type>
<version>myVersion</version>
<jar>my-jar-name.jar</jar>

so the artifact in the remote repository will be located at /myGroup/jars/my-jar-name.jar instead of /myGroup/jars/myArtifact-myVersion.jar

thanks
18 years ago
You can make like that :

<dirname property="build.lib.dir" file="${build.lib.jars.dir}"/>
<pathconvert pathsep=" "
dirsep="/"
property="build.manifest.classpath">
<map from="${build.lib.dir}" to="."/>
<path>
<fileset dir="${build.lib.jars.dir}"/>
</path>
</pathconvert>
<manifest>
<attribute name="Built-By" value="FranckSmith"/>
<attribute name="Class-Path" value="${build.manifest.classpath}"/>
</manifest>
18 years ago
Yes it's very efficient for studying a complex build even more when the author has disappeared

I has succeeded to execute my targets with eclipse 3.1.1.

The running animation is pretty fun !
18 years ago
Does anyone know "yWorks Ant Explorer" ?
It's pretty good to visualize dependencies into a build.xml file. It maps graph with source code and the properties. But I have a probleme to run target with it.

Any Idea ?
18 years ago
It seems that you not compile your class in the write directory. Do you use a plugin for Eclipse ?
Before you use EJB, you may use JDBC connection to access your database.
EJB are not part of MVC pattern.

For more information you can go to the online tutorial from sun :
http://java.sun.com/developer/onlineTraining/J2EE/Intro2/j2ee.html
You can try to check that :
- you are in the java view.
- your project has the javanature in you .project (that you can see in ressource view)
- your source path is referenced as "kind=src" (if your source are in src/java) in the .classpath that you can see in the ressource view.
Hi,

I know that there is a maven plugin which let you manage was 5.1
So if decide to migrate to maven
http://maven-plugins.sourceforge.net/maven-was5-plugin/properties.html
18 years ago
I've never heard about something like that with ant but It's a best practice to reference exactly what you want to put in your classpath whereas list jars contained in a directory. Indeed in Maven we can easyly do it but Maven oblige you to reference all you dependencies in the pom.xml.
18 years ago
My preferences to develop J2EE Projects :

IDE : Eclipse + several plug ins (for you JBoss IDE to deploy, hot deploy and hot buil your application) or WTP.
The best tools I've seen is MyEclipse, a J2EE plugin (but under license) for eclipse witch contains very useful tools to develop, deploy, and test J2EE applications that containts JSP, Servlet, EJB's (generated with XDoclet).

Unit Test : JUnit + JUnit plugin for eclipse

Build Process Tool : Maven + MavenIDE for eclipse.

Continuous integration : CruiseControl

That my experience.
Use of Business Delegate is a j2ee design patterns that have a lot of advantages. Most important patterns to implement if you decide to use EJB : Service Locator (use to look up your ejb) and Proxy(use to make separation and abstraction between your presentation layer and the ressource one).

I recommend you to see the sun documentation about it :
http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html

Don't forget to think about packaging of your j2ee module then will contain at least 2 j2ee module now so that you can use the j2ee application classloading advantages.
I think that it's not a good idea to do that. EJB don't have to be linked with configurations files neither to chose wich JDBC URL use. EJB just point a Datasource (that the name can be configure in a property file) with its jndi name and the deployer have to change the connexion linked by this datasource if needed (It's its role). In JBoss indeed he have to change the datasource configuration file.
For me a ValueObject is a kind of JavaBeans. It's just a matter of Design pattern : the pattern "Value Object" which define a way to encapsulate data (in VO) in order to transfer them between different layers. We use the term of Value Object to refer to the Design patterns but in the fact it's just a JavaBean.