Hi Hiranya, thank very much for your mail.
Now, I'm trying to add the $BASE_DIR/lib directory to the front of the classpath with IDEA (I'm searching about IDEA usage...). But, concernig to the question 3) I noted (whit some comments that I put in the source) that the javaw.exe permanent process is create by: > configctx = ConfigurationContextFactory. > > createConfigurationContextFromFileSystem(axis2Repolocation, axis2Xml); in the start() method of modules/core/src/main/java/org/apache/synapse/ServerManager.java. Normally when a general program terminates correctly in the IDE, also the related javaw.exe process terminates. In this case the javaw.exe process created with line above (configctx=...) remains in the active processes until I shutdown Eclipse or I terminate it manually. Thanks Pasquale 2008/11/25 Hiranya Jayathilaka <[EMAIL PROTECTED]> > Hi Pasquale, > > Please see my comments in-line. > > On Tue, Nov 25, 2008 at 4:48 AM, Pasquale Campitiello < > [EMAIL PROTECTED]> wrote: > >> I'm proceeding with my project to create an interface to connect jUDDI >> 0.9rc4 and Synapse 1.4. I have some questions: >> >> 1) I imported the source code of Synapse in Eclipse with the parameter >> specified by Asankha Perera in the last mail. But I don't understand this: >> >> I use the classpath from the IDE project, and with IDEA, I add the >>> $BASE_DIR/lib directory to the front of the classpath to make sure my >>> log4j.properties is correctly picked up and the normal logs appear >>> >> >> It is about the object log (I see that this object is used very much)? >> And where is a logfile? > > > Synapse uses Apache Commons Logging and Log4J for logging purposes. The > logging configuration is specified in a file called log4j.properties which > generally resides in the $BASE_DIR/lib directory. By adding this directory > to the beginning of your classpath you make the log4.properties file get a > higher precedence over the other configuration files. This will enable > Synapse to print out some useful log statements on you IDE console while it > is operating within your IDE. > > >> >> >> 2) I can run Synapse purely within the IDE running the Main class: >> org.apache.synapse.SynapseServer, without exceptions, but there is nothing >> in the console! Is this normal? Is this related to the question 1)? >> I put some System.out.println(...) to undestand the all the calls. > > > This could be due to the above mentioned logging issue. > > >> >> >> 3) I run Synapse with Eclipse but when the program terminates correctly, >> within the IDE, I can see in the Task Manager a javaw.exe process that >> doesn't terminate! What is this process? Is it the server running? And how >> can the user stop it without the Task Manager? > > > No it has nothing to do with Synapse. It is a process initiated by your > JRE. You will find javaw.exe inside your JRE_HOME/bin directory. Synapse > will stop itself when you hit the stop button on your IDE. > > >> >> >> 4) Paul Fremantle said: >> >> I suggest you start by implementing a UDDI endpoint, that gets the >>> actual endpoint from UDDI. I can help out.[...] >>> >> >> what does it mean that the UDDI endpoint "gets the actual endpoint from >> UDDI"? (UDDI endpoint is a WSDL external file?) > > > Unfortunately I'm not very familiar with UDDI to answer this question. I'm > sure Paul or somebody else will answer this question pretty soon. :-) > > >> >> >> 5) Can I continue to write here or I have to create everytime a new >> mail/post on this mailing list? > > > Well IMHO it's up to you to decide. If your questions are related to each > other then may be it's appropriate to post them in the same thread. But if > they are drastically different and addresses different subject areas better > to create separate threads. :-) > > Good luck with your project > > Thanks > > Best Regards, > Hiranya > > >> >> >> THANK YOU >> >> Pasquale Campitiello >> >> >> >> >> >> >> >> >> >> >> 2008/11/13 Pasquale Campitiello <[EMAIL PROTECTED]> >> >> I thank you very much for your help, really I'm a beginner but I need to >>> do this work (hard, for me). >>> >>> However, ok, in this weekend I will prepare my computer to run everything >>> (now I have to format for several problems). >>> Then I will try to import the project in Eclipse, and I will ask you my >>> doubts. >>> For example, in the first place what is "implementing a UDDI endpoint, >>> that gets the actual endpoint from UDDI"?. >>> >>> Thanks >>> >>> Pasquale >>> >>> >>> 2008/11/13 Asankha C. Perera <[EMAIL PROTECTED]> >>> >>> Pasquale >>>> >>>>> As for getting the Synapse code into Eclipse, try mvn eclipse >>>>> >>>>> >>>> Yes, first do a full online build with "mvn clean install" (or "mvn >>>> clean install -Dmaven.test.skip" if unit tests fail), and then do "mvn >>>> eclipse:eclipse" to build the project. >>>> >>>> To run the default configuration from the IDE, what I normally do is, >>>> build and extract the binary Zip to some location, and use that location as >>>> the base directory and start the Synapse engine as follows: >>>> >>>> Main class: org.apache.synapse.SynapseServer >>>> VM params: -server -Xms256M -Xmx256M -Dcom.sun.management.jmxremote >>>> Program parameters: /home/asankha/java/synapse-1.2/repository >>>> /home/asankha/java/synapse-1.2/repository/conf/axis2.xml >>>> /home/asankha/java/synapse-1.2/ >>>> /home/asankha/java/synapse-1.2/repository/conf/synapse.xml >>>> Working directory: /home/asankha/java/synapse-1.2 >>>> >>>> I use the classpath from the IDE project, and with IDEA, I add the >>>> $BASE_DIR/lib directory to the front of the classpath to make sure my >>>> log4j.properties is correctly picked up and the normal logs appear >>>> >>>> From here onwards, Synapse can run purely within the IDE >>>> >>>> asankha >>>> >>>> -- >>>> Asankha C. Perera >>>> http://adroitlogic.org >>>> >>>> http://esbmagic.blogspot.com >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>> >> >
