How to export all sessions,contextes and Configs to file?

General questions on how to use Hermes or problems encountered

How to export all sessions,contextes and Configs to file?

Postby pstein » Wed Oct 28, 2009 7:57 am

How can I export all my currently defined sessions, contexts and general Configuration settings into an external file?
For later import into (another/re-installed) HermesJMS ?

If export is not possible:

Which files contain the mentioned information?

hermes-config.xml

seems NOT to contain ALL the stuff.

So there must be other files. Which?

Peter
pstein
 
Posts: 21
Joined: Thu Aug 07, 2008 6:11 am

Re: How to export all sessions,contextes and Configs to file?

Postby Colin » Wed Oct 28, 2009 10:40 am

Hi,

Your hermes-config.xml contains everything.

What do you think is missing?

Regards,

Colin.
Colin
Site Admin
 
Posts: 835
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK

Re: How to export all sessions,contextes and Configs to file?

Postby pstein » Thu Oct 29, 2009 8:20 am

[quote="Colin"]Hi,
Your hermes-config.xml contains everything.

What do you think is missing?
quote]

This is not true.
I copied for example the attached hermes-config.xml from a first HermesJMS installation to another one (see attachment).
Pay attention to the "destination" entries like:

<destination domain="1" durable="false" name="A199_jms_q_first_input"/>

Then I start the second HermesJMS installation.
As you can from the attached snapshot there are NO queues visible from the first installation.

Why?

Peter
Snapshots.png
Snapshots.png (87.8 KiB) Viewed 220 times
hermes-config.zip
(1.69 KiB) Downloaded 123 times
pstein
 
Posts: 21
Joined: Thu Aug 07, 2008 6:11 am

Re: How to export all sessions,contextes and Configs to file?

Postby Colin » Wed Jan 13, 2010 10:45 am

Looks odd, I've created a JIRA issue for this http://hermesjms.org/jira/browse/HJMS-111

Regards,

Colin.
Colin
Site Admin
 
Posts: 835
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK

Re: How to export all sessions,contextes and Configs to file?

Postby Colin » Sat Jan 16, 2010 9:40 am

Did you copy the hermes-config.xml and use it on a different machine?

Your hermes-config.xml does in fact contain all the JMS configuration you have defined and it contains references to JAR files on your local filesystem. If they don't exist then then provider cannot be instantiated.

Also look in hermes.log, you can find out its location from Help->About.

Regards,

Colin.
Colin
Site Admin
 
Posts: 835
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK

Re: How to export all sessions,contextes and Configs to file?

Postby pstein » Sat Jan 16, 2010 9:54 am

Colin wrote:Did you copy the hermes-config.xml and use it on a different machine?
Your hermes-config.xml does in fact contain all the JMS configuration you have defined and it contains references to JAR files on your local filesystem. If they don't exist then then provider cannot be instantiated.


Hi Colin,
it was a long, long time ago when I posted this issue.
So I am not sure what the real problem was.
My solution was to define all the paramteres new.

However, if the problem is that the referenced *.jars are not available (any more) the HermesJMS should:
1.) At least show still the Queues (even if they are not accessible anymore)
2.) Popup an error message telling the user "Provider Jar=...... defined in Provider=.... not found"

Could you change this in the next release?

Thank you
pstein
 
Posts: 21
Joined: Thu Aug 07, 2008 6:11 am


Return to Using Hermes

Who is online

Users browsing this forum: No registered users and 1 guest

cron