Getting the JBoss home directory

2,034 views
Skip to first unread message

Darren

unread,
Oct 4, 2012, 8:41:37 PM10/4/12
to live...@googlegroups.com
I am trying to get the JBoss home directory from Java and am now trying using the LC API, but cant seem to find a way to get it.

I have tried System.getProperty("jboss.server.config.url") but that returns null.

Anyone done this from Java?

Thanks,
Darren

Darren

unread,
Oct 4, 2012, 8:59:09 PM10/4/12
to live...@googlegroups.com
Sorry, some more context might help - it is a FatJar deployment utility that is not running inside the Livecycle context, but making a JNP connection using a ServiceClientFactory. I see why the JBoss properties aren't available, but hoping that Adobe have provided a service to access these properties via the ServiceClientFactory instance.

Rohan Raj

unread,
Oct 5, 2012, 1:14:45 AM10/5/12
to live...@googlegroups.com
Darren, you could get jboss home finding system property as :
'jboss.server.home.dir '
Hope your environment has set with jboss home.

Rohan Raj.


On Friday, October 5, 2012, Darren <darren...@gmail.com> wrote:
> Sorry, some more context might help - it is a FatJar deployment utility that is not running inside the Livecycle context, but making a JNP connection using a ServiceClientFactory. I see why the JBoss properties aren't available, but hoping that Adobe have provided a service to access these properties via the ServiceClientFactory instance.
>
> --
> You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/livecycle/-/NFIGygXl8nQJ.
> To post to this group, send email to live...@googlegroups.com.
> To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
>

Darren

unread,
Oct 5, 2012, 1:36:05 AM10/5/12
to live...@googlegroups.com
Hi Raj,

Unfortunately I dont seem to have access to the JBoss properties because I am making a JNP connection via Adobe's ServiceClientFactory external to the JBoss instance. They all return null.

I thought that Adobe would have given you some tools to communicate with the JBoss instance you have just connected to, but i dont seem to find any way to do that.

Thanks Darren


Duane Nickull

unread,
Oct 5, 2012, 3:48:56 AM10/5/12
to Adobe LiveCycle Developers
Echo $JBOSS_HOME (of %JBOSS_HOME) ?

;-)
***********************************
Technoracle Advanced Systems Inc.
Consulting and Contracting; Proven Results!
i. Neo4J, PDF, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile
b. http://technoracle.blogspot.com
t. @duanechaos
"Don't fear the Graph! Embrace Neo4J"
--
You received this message because you are subscribed to the Google Groups
"Adobe LiveCycle Developers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/livecycle/-/_X4KgFvmHJgJ.

Darren

unread,
Oct 5, 2012, 9:08:45 PM10/5/12
to live...@googlegroups.com
Thanks Duane. I might try adding the environment variable as a command line parameter to the Jar if it is available.

Cheers Darren

Reply all
Reply to author
Forward
0 new messages