How to run a jbase agent as windows service?

1,009 views
Skip to first unread message

Biji

unread,
Jan 24, 2014, 6:13:35 AM1/24/14
to jb...@googlegroups.com
How to run a jbase agent as windows service?

Trying to launch the jbase agent as windows service but it fails to connect to the jboss and also browser is not connected.

But at the same time when I try to do the start jbase agent from jshell prompt it is working fine.

Command used:

service installation:

jbase_agent install -n <service name> -p <port number>

after executing the command system displayed "Service <service name> has been created successfully"

service start:

jbase_agent start -n <service name> -p <port number>

after executing the command system displayed "Service <service name> has been started successfully"

Thanks in advance!!!

Mathew

unread,
Dec 29, 2015, 11:14:49 AM12/29/15
to jBASE
Hello,

Did you get a solution for this, if so could you please share with me. I'm also facing the same issue.

Thanks in advance.

Mathew

Vladimir Kazimirchik

unread,
Jan 5, 2016, 4:28:20 AM1/5/16
to jBASE
Hi guys,
I remember people trying and finally getting there but with some significant problems in the process (I have no more details unfortunately).

From my point of view, all T24-related environment variables should be available for the windows user that is assigned to run the service (and its home directory is to be bnk.run).

Alternatively, you can run the agent as a phantom using ZH command, e.g. after you log in to your environment in jsh run:

zh jbase_agent -p 20014


Sample output:

TASK STARTED ON LINE 1000 FOR ACCOUNT r14 Id c25bcc24-95d2-4306-a323-4c17e6722974


It then might be a bit tricky to close it - you have to find it using WHERE or MW42 and issue a LOGOFF command for its port number.

VK

Mathew John

unread,
Jan 5, 2016, 10:17:05 AM1/5/16
to jb...@googlegroups.com
Thank you VK.

You are right. I made it work after setting all the T24 related variables setting in windows environment variables for the user who is running the service. 

Mathew

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "jBASE" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jbase/ijJYxpCGcX4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jbase+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ganesh

unread,
Jan 5, 2016, 6:06:38 PM1/5/16
to jb...@googlegroups.com
Hi,

Can you please provide the list of environmental variables set before executing  the jbase agent

Regards Ganesh

Sent from my iPhone
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.

Mathew John

unread,
Jan 6, 2016, 4:22:38 AM1/6/16
to jb...@googlegroups.com
Basically, you need to set all the important T24 variables.

JBASE_JBCOBJECTLIST_DIR
JBASE_PATH
JBCEMULATE
JBCGLOBALDIR
JBCLISTFILE
JBCOBJECTLIST
JBCRELEASEDIR
JBCSPOOLERDIR
JEDIFILENAME_MD
JEDIFILEPATH
PATH
T24_HOME
TAFC_HOME
DRIVER_HOME

After setting all the above it was working for me. If it is not working even after setting all the above then check the webserver log and based upon the error message there you can figure out what is missing and set the same.

Hope this helps.

Cheers,
Mathew
Reply all
Reply to author
Forward
0 new messages