[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Not identify network printer when JBoss start as windows

2007-09-29 Thread harshi
Thanks. Yes it works when i create and register the service with a user account 
which has doman access. further i use Run as command to specify the user and 
kill the task.

Thanks again

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089973#4089973

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089973
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Not identify network printer when JBoss start as windows ser

2007-09-27 Thread harshi
Hi,

In my application i try to print pdf documents using 
Runtime.getRuntime().exec(CALL START /MIN AcroRd32.exe /h /p  )

Further I identify the default printer by
PrintServiceLookup.lookupDefaultPrintService();

when i start jboss through run.bat the application works ok. it identifies the 
default printer of the machine.

however when start jboss as a windows service the appliaction does not identify 
the default printer.

A shared network printer is installed in to this machine. It seems that shared 
network printer is not identified by the application when I start jboss as NT 
service.

I have used Java Service Wrapper provided by Thanuki software.org to register 
Jboss as windows service.

http://wrapper.tanukisoftware.org/doc/english/integrate-simple-win.html

Please help me to resolve this issue.

Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089173#4089173

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089173
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Not identify network printer when JBoss start as windows

2007-09-27 Thread harshi
Thanks Peter.
Actually the Service running under the system account. I have set up an account 
for the service. this account has administrative priviledges. now the 
application identifies the printer. since i have created a bat file and execute 
now it doesn't print because the user account doesnot have priviledges to the 
killing of the process.

please find the code attached 

FileWriter fw =new FileWriter(PDFPath+printPDF.bat);  
PrintWriter out = new PrintWriter(fw);  
out.println(taskkill/IM AcroRd32.exe /t);
out.println(CALL START /MIN AcroRd32.exe /h /p +PDFPath+filename);
out.close();
fw.close();
String batPath = PDFPath + printPDF.bat;
tr = Runtime.getRuntime();
Process p = tr.exec(batPath);

any ideas.

Thanks in adavance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089540#4089540

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089540
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: How to stop Jboss Schedular programatically

2006-11-05 Thread harshi
Thank you very much :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3983350#3983350

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3983350
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - How to stop Jboss Schedular programatically

2006-11-03 Thread harshi
Hi,

I am using org.jboss.varia.scheduler.Schedulable to create a schedule in JBoss. 
In my application the schedule must be start and run  if only certain 
parameters are avaiable only.

is there a way i can invoke stopSchedule() method programatically.
According to what I understand we can only stop the schedule from the jmx 
console once it is up and run.

is there a way where i can stop the schedule programatically.

please help me

Thank you  

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3982948#3982948

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3982948
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: problem with class loader jboss schedular

2006-10-25 Thread harshi
i have managed deploy schedular in an ear. This is how I did that. 

I created a sar file with the scheduler class. then ine jboss-service.xml of 
the sar include schedulable entry for the schedular instead of inside the 
default/conf/jboss-service.xml. now the system works well.

if any suggestions pls let me know.

Thank you 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3980898#3980898

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3980898
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: Help me schedular in JBOSS

2006-10-25 Thread harshi
I managed to find a solution. This is just for the reference

include a sar file with class that implements schedulable.

then include that in to the ear,

then schedular works ok

if any suggestions pls let me know

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3980899#3980899

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3980899
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - problem with class loader jboss schedular

2006-10-23 Thread harshi
hi,

i want to depoly a schedular in jboss. i used 
org.jboss.varia.scheduler.Schedulable.

when i deploy a jar file with schduler class and put the respective entry in 
jboss service xml with code base entry it works fine.

hence i need to include this jar file inside in ear. 
say my jar file is ejb-application.jar
inside meta-inf/manifest.mf i include following entry classpath: 
ejb-application.jar.

then set code base to ear in jboss service.xml now the scheduler does not start 
and no class def found error is thrown for the schedular class.

i refered forum message  titled CLASS PATH TO EAR and include the my jar file 
in folder called lib inside the ear. then i change the entry classpath: 
.\lib\ejb-application.jar

then also ear deploys ok. but the no class def error for schedulable class is 
coming.

then i create a sperate jar file that contains the schedulable class and i 
include that in to default/lib.
the session beans refered is included in ear.
the schedulable class detects but contiously it gives no class def found error 
for the remote home interface.

could u pls tell me how to solve this problem.

what i basically wants to do is deploy a scheduler where the schualable class 
reside in jar file which deploy as an ear.

please help me

thanks in advance
   

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3980004#3980004

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3980004
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Help me schedular in JBOSS

2006-10-23 Thread harshi
could you please tell me or direct me to example which helps me to set a 
scheduler in JBoss. where the schedulerable class jar file is is inside an ear.

that is let say my class that implements scheduler is in A.
then if that class is packaged inside jar file testscheduler.jar

this testscheduler.jar is inside test.ear.

what happens is when deploy this as a ear where i set codebase to test.ear in 
jboss service.xml the class loader doesn't identify the schedulerable class.

please help me

thanks in advance 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3980246#3980246

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3980246
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user