Hi, Check the jbossmq-state.xml config file that will be in your jboss/server/<config-name>/conf/ directory. For example, you would use dynsub from the default config:
| <?xml version="1.0" encoding="UTF-8"?> | <StateManager> | <Users> | <User> | <Name>john</Name> | <Password>needle</Password> | <Id>DurableSubscriberExample</Id> | </User> | <User> | <Name>guest</Name> | <Password>guest</Password> | </User> | <User> | <Name>nobody</Name> | <Password>nobody</Password> | </User> | <User> | <Name>dynsub</Name> | <Password>dynsub</Password> | </User> | </Users> | <Roles> | <Role name="guest"> | <UserName>guest</UserName> | <UserName>john</UserName> | </Role> | <Role name="subscriber"> | <UserName>john</UserName> | </Role> | <Role name="publisher"> | <UserName>john</UserName> | <UserName>dynsub</UserName> | </Role> | <Role name="durpublisher"> | <UserName>john</UserName> | <UserName>dynsub</UserName> | </Role> | <Role name="noacc"> | <UserName>nobody</UserName> | </Role> | </Roles> | <DurableSubscriptions> | </DurableSubscriptions> | </StateManager> | Also, the ping period is in milleseconds. You'll want to use 60000 (a minute), otherwise your connection will drop very often for ping timeouts. You can keep all the connection factory information in a config file: | <csilconfig xmlns="http://www.tamalesoftware.com/schema/csilconf"> | <serveraddress><some-ip-address></serveraddress> | <port>8093</port> | <tcpnodelay>False</tcpnodelay> | <pingperiod>60000</pingperiod> | <serverilname>tamalesoftware.messaging.csil.xil2.XIL2ServerIL</serverilname> | <clientilservicename>tamalesoftware.messaging.csil.xil2.XIL2ClientILService</clientilservicename> | <username>dynsub</username> | <password>dynsub</password> | <xil2blockwriterdelimiterchar>0</xil2blockwriterdelimiterchar> | <xil2blockwriterpaddingchar>32</xil2blockwriterpaddingchar> | <xil2blockwriterblocksize>512</xil2blockwriterblocksize> | <usessl>False</usessl> | </csilconfig> | Then you can create a connection with: | ConnectionFactory cf = new ConnectionFactory(); | cf.SetConfigDirectory("full-path-to-csil-conf.xml"); | | Connection c = cf.CreateConnection(); | c.Error += new OnConnectionErrorHandler(HandleSubscriptionError); | c.Start(); | Hope this straightens things out, and thanks for using the xil. thanks, fawce View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015813#4015813 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015813 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
