I have searched for azan ogg files to run on my minbar program on ubuntu but i didn’t find any azan on ogg format. I have converted some mp3s azan to ogg files. you can find it here:

Aqssa 1
aqssa 2


when i tried to manage DI JAX-WS web services by configuring them as beans in Spring application context xml file like this:

<bean class=”org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter” />

<bean id=”partyService” class=”com.nilesys.ocean.services.party.PartyServiceImpl” >
<property name=”partyDAO” ref=”partyDAO”/>

I got this exception:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter#0’ defined in ServletContext resource [/WEB-INF/spring-conf/services.xml]: Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: NOT SUPPORTED

after 4 hours of googing  and searching i figured out that adding lazy-init=”true” to the SimpleJaxWsServiceExporter bean will solve the problem like this:

<bean class=”org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter” lazy-init=”true” />

<bean id=”partyService” class=”com.nilesys.ocean.services.party.PartyServiceImpl” >
<property name=”partyDAO” ref=”partyDAO”/>

i wish this could help you as i didn’t found a solution for this exact problem by googling it.

some times you need to copy a file or directory from your machine to another machine using command line, if so you can use the scp command :

suppose that the file needed to be copied /home/mostafa/file.txt, and you have access to the other machine mostafa@nile-sys.com

$ scp /home/mostafa/file.txt  mostafa@nile-sys.com:/home/mostafa/

this command will copy the file.txt to the the path /home/mostafa/file.txt in the remote machine nile-sys.com

also you can copy files between 2 remote machine with the same command as follows:

$ scp mostafa@www.nile-sys.com :/home/mostafa/file2.sh mostafa@ns1.nile-sys.com:/home/mostafa

sometimes you need to configure the log4j to daily roll the log file, this will help when you trace an error happened in a specific day.

in your log4j.properties file create an appender of type DailyRollingFileAppender:


define the date pattern which will be used in naming the log files:


define the path of your log files:


and configure how logs should appear inside the file:

log4j.appender.R.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L – %m%n

### direct log messages to stdout ###
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L – %m%n
log4j.rootLogger=debug, stdout, R

now you will have a separate log file for every day and will be in path


To set HTTP header in a SOAP message :

SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance();

SOAPConnection soapConnection =factory.createConnection();

SOAPMessage message = MessageFactory.newInstance().createMessage(null,yourInputStream);

message.getMimeHeaders().addHeader("header name", "header value");

soapConnection.call(message, "server url");

some time you need to change the author name of the files you create by eclipse rather than the system user name.

to do so:

1- open eclipse.ini file in the eclipse directory.

2- add the following line after -vmargs line

-Duser.name=your name



In this post will explain how to create a CORBA Java server using the Java sdk.

here a pref. description of what needed to be done:

1- create an idl (Interface Description Language) file that will be the contract between the Server and client regarding the object that needed to be referenced from the client and implemented on the server.

2- generate java skeleton from the idl by using idltojava compiler or idlj.

3- create the concrete class that will be instantiated by the server and its objects referenced by the client.

4- instantiate an ORB object to handle all Marshalling and un-Marshalling for the object calls and all IIOP stuff.

5- create naming context object.

6- create naming component for the object that will be exposed by CORBA.

7- bind the object with the name component in the name context.

the following the a sample code for the above steps:

1- create an IDL file: create a file and name it helloWorld.idl and add the following lines into it:


module helloWorld {
interface Greetings {
string sayHello();


in this idl we define one interface called Greetings that interface has one method or operation called sayHello and will return a String.

2- generate server skeleton from the idl by idlj:

in your terminal go to the directory contains the idl file and run the following command

$ idlj  -fserver -oldImplBase helloWorld.idl

the idlj will create the following:

– Greetings interface.

– GreetingsOperations class.

– _GreetingsImplBase class.

3- create a concrete class contains your business:

you need now to create the concrete class which you need its objects to be exposed through CORBA. To do so you need to create GreetingsServer class that extend the _GreetingsImplBase class.

by extending _GreetingsImplBase class you need to implement the sayHello method, here is code sample:


public class GreetingsServer extends _GreetingsImplBase {

public String sayHello () {

return ” Hello CORBA”;




save this class and create a new class the will run as the server for IIOP calls name the new class CorbaServer


package Corba;

import org.omg.CORBA.ORB;
import org.omg.CORBA.Object;
import org.omg.CORBA.ORBPackage.InvalidName;
import org.omg.CosNaming.NameComponent;
import org.omg.CosNaming.NamingContext;
import org.omg.CosNaming.NamingContextHelper;
import org.omg.CosNaming.NamingContextPackage.AlreadyBound;
import org.omg.CosNaming.NamingContextPackage.CannotProceed;
import org.omg.CosNaming.NamingContextPackage.NotFound;

public class CorbaServer {

* @param args
public static void main(String[] args) {
// 4- create ORB object
ORB orb = ORB.init(args, null);

// create an instance of the GreetingsServer , this instance will be exposed by the ORB

GreetingsServer greetings = new GreetingsServer();
// register the instance to ORB object

try {
// create naming context root, the NameService is the root NameService for any ORB
Object initNameService = orb.resolve_initial_references(“NameService”);
// narrowing the naming service object
NamingContext ncRef = NamingContextHelper.narrow(initNameService);
// create a name component for the GreetingsServer object
NameComponent nc = new NameComponent(“Greetings”,””);
// create name component array that will hold the greeting name component

NameComponent[] path = {nc};

// bind the greetings object with name component
ncRef.rebind(path, greetings);
// to keep the application waiting for calls


} catch (InvalidName e) {
// TODO Auto-generated catch block
} catch (NotFound e) {
// TODO Auto-generated catch block
} catch (CannotProceed e) {
// TODO Auto-generated catch block
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName e) {
// TODO Auto-generated catch block
}  catch (InterruptedException e) {
// TODO Auto-generated catch block



now you have the CORBA server we need to run the naming service that will be used by the CORBA server

$ tnameserv

this will start the naming service

at last you can start your CORBA server name and wait for calls from corba clients that used your idl.


http://members.tripod.com/gsraj/corba/chapter/javaidl_1.html — this was very helpful to me.