Quantcast
Channel: Ignite Realtime: Message List
Viewing all 11412 articles
Browse latest View live

Re: PEP Items no longer written to database in Openfire 3.8.2

$
0
0

The id change behaviour sounds pretty strange. The ID is usually created by the client. The server can autogenerate an id if none is supplied on node creation, but this would always generate a random id, even prior to the changes to pubsub in 3.8.

 

You can configure the pubsub service to not cache by setting the system property xmpp.pubsub.flush.cache to 0 (it defaults to 1000) which would turn caching off altogether so there is no risk of data loss. You can also reduce the interval between cache flushes with the property xmpp.pubsub.flush.timer. It defaults to 2min but can be reduced to as little as 20s.

 

You are the only one who can judge if the perfomance impacts of this are acceptable. Depending on your throughput, it may make no negligible difference at all.


Re: Port 5552 = SSL?

$
0
0

But: In site client-connections-settings.jsp stands:

SSL Enabled: Yes

Client SSL Port: 5223

 

I connect over port 5222 - as i understood 5223 use the old version of ssl and 5222 the new version, right?

 

But there stands in the log:

Started plain (unencrypted) socket on port: 5222

 

I think this means, that both *can* be accepted if openfire is configurated to accept both? But in my case i accept SSL only so there is no unencrypted traffic on port 5222.

This is my understanding as well.  All connections are on this port unless you are connecting via older SSL versions. I suspect the UI was never updated to reflect that. It should probably show the TLS (SSL v3) port as 5222 and SSL v1,v2 as 5223.

 

As CSH mentioned, the opening connection negotiation is always unecrypted as that is how TLS works.

Re: muc creation suing muc and http stream

$
0
0

Thanks! for your reply. Ler me share some more detail:

 

Actually I dot't want to write 6000 room listner suing smack. In case number of muc increase i need to incease number of listner. So i think writing pluging PacketInterceptor is perfect.

 

Can you please guide how i can write pluging for openfire and how need to integrate?

 

My ultimate target is:

 

1) Recieve any message arrive in muc from xmpp user whateve the number of muc. just listen the incoming message and determine fromw which muc its coming.

 

2) stream / broadcast the recieved message to a external http server as streaming or http push

 

 

Please copperate about the writing plugin and how to integrate that with openfire? Thanks! In advance

Re: NEED HELP: migrating openfire database (mysql)

$
0
0

hyper-v, yuck! you Windows guys.... lol

smack 3.3.1 jar not working in eclipse ADT

$
0
0

Hi All,

 

I added all the jar into eclipse ADT. Below was my connection to my locally setup openfire server.

 

private String Connection() throws XMPPException

    {

  txtUid = (EditText)findViewById(R.id.txt_uid);

  txtPass= (EditText)findViewById(R.id.txt_pass);

  String sReply = "";

 

  ConnectionConfiguration config = new ConnectionConfiguration("10.0.2.2");

  //ConnectionConfiguration config = new ConnectionConfiguration("10.0.2.2", 5222,"localhost");

  //ConnectionConfiguration config = new ConnectionConfiguration("eclipsercp.org");

    XMPPConnection connection = new XMPPConnection(config);

 

 

        try

        {

        connection.connect();

        connection.login(txtUid.getText().toString().trim(), txtPass.getText().toString().trim());

        //connection.login("reader", "secret", Long.toString(System.currentTimeMillis()));

        Presence presence = new Presence(Presence.Type.available);

            connection.sendPacket(presence);

        sReply = "Connected.";

        }

        catch (XMPPException ex)

        {

        sReply = ex.toString();

        }

 

 

  return sReply;

    }

 

 

The connection.connect(); method was executed successful without any error or exception. When came to connection.login(txtUid.getText().toString().trim(), txtPass.getText().toString().trim());eclipse ADT shows Source Not Found page without any XMPPException at all. So i don't know what is the error i encountered. i've tested my openfire server with spark IM, all features worked fine where by i can chat using the users created in the admin console. kindly need help from anyone on this issue. thanks.

 

Kindly refer to my attached print screen for more detail. hope to hear from anyone soon. thanks.

Re: How to close spark instead of minimize?

$
0
0

Jason wrote:

you can click Spark --> Exit and it will close..

Another option without bringing up the main window is to right click the system tray icon and choose Exit.

Re: chat discussions to be saved constantly and automatically

$
0
0

There is no option to point to another folder to save history. History by default is automatically saving and one don't have to turn it on, when first launching Spark. It is saved to:

 

C:\Users\User\AppData\Roaming\Spark\user\user@server\transcripts (on Windows 7)

Re: Admin privileges (broadcasting)

$
0
0

There is no rights based administration system in Openfire. Every admin has full rights. I think there is a ticket for this in the bug tracker, but this is a very complex task to do.

 

calebtr, this will only work if client is not using its own broadcasting feature. Spark is not using Openfire's broadcast plugin to send its broadcasts. It just sends many simple messages. So the only thing to forbid that is by using Client Control plugin and disable broadcasts in Spark. But in this case noone will be able to send broadcasts in Spark.


Re: Active Directory - JID?

$
0
0

Try adding them as username@servername. Server Name is on your first page, when you log in to Admin Console. And this should be the same as xmpp.domain system property name.

Re: chat discussions to be saved constantly and automatically

$
0
0

C:\Users\user\AppData\Roaming\Spark\user\esther@elastix.org\transcripts

 

Sincerely,

 

James M. Cha, CPA

James M. Cha, CPA & Company

A Professional Corporation

3435 Wilshire Blvd., Suite 1750

Los Angeles, CA 90010

Tel: (213) 383-1127

www.TaxWise-CPA.com

 

CONFIDENTIALITY NOTICE: This email and any attachments are for the

exclusive and confidential use of the intended recipient. If you are not

the intended recipient, please do not read, distribute or take action in

reliance upon this message. If you have received this in error, please

notify me immediately by return email and promptly delete this message and

its attachments from your computer system. I do not waive attorney-client

or work product privilege by the transmission of this message.

 

TAX ADVICE NOTICE: Tax advice, if any, contained in this email does not

constitute a "reliance opinion" as defined in IRS Circular 230 and may not

be used to establish reasonable reliance on the opinion of counsel for the

purpose of avoiding the penalty imposed by Section 6662A of the Internal

Revenue Code. I provide reliance opinions only in formal opinion letters

containing my original signature.

Need some advice

$
0
0

Hi,

 

I'm looking for a mobile app that can do voice and video or something similar to WhatsApp that I can have edited and made available to download from Google Play. I was wondering if there is any open source app existing that has both administrative and client end compleated that I can download and customize into a WhatsApp clone of sort. I heard about openfire but I need some advice on what is possible with it in regards to what I need.

 

If there is a programmer who can advise me on this I would be most greatful.

 

thank you.

Re: Problem with ChatManager logic with thread IDs

$
0
0

sorry - I only found this post after posting mine. There's a diff for my backwards compatible fix in this post.

Re: Force ChatManager to obey threads in Messages

$
0
0

Please attach the patch as extra file in unified diff format (e.g. "diff -u").

Force ChatManager to obey threads in Messages

$
0
0

Quick background: I'm working on a bot with a strophe frontend. The bot can be interacted with directly, but the strophe client also uses it to manage a dashboard. In the strophe client, I am specifically setting a thread value on my messages as well as a unique resource when logging in. I log in with the same account Adium uses for my normal chat behavior. Every so often, I'd get bot responses in my Adium window while doing development on the dashboard. I tracked the reason down to Smack's internal chat management. If it can't find a chat that matches the thread, it uses one from the user or bare user cache (in order). Anyway, I wanted to be able to turn this behavior off. I made the following change in the ChatManager source for 3.3.1 (context provided), I'd be interested if this could become a core feature so I don't have to patch future versions:

 

***************

*** 91,96 ****

--- 91,98 ----

              = new WeakHashMap<PacketInterceptor, PacketFilter>();

 

      private Connection connection;

+    

+     private boolean strictThreadsResources = false;

 

      ChatManager(Connection connection) {

          this.connection = connection;

***************

*** 116,122 ****

                  }

                  else {

                      chat = getThreadChat(message.getThread());

!                     if (chat == null) {

                          // Try to locate the chat based on the sender of the message

                                chat = getUserChat(message.getFrom());

                      }

--- 118,124 ----

                  }

                  else {

                      chat = getThreadChat(message.getThread());

!                     if (chat == null && !strictThreadsResources) {

                          // Try to locate the chat based on the sender of the message

                                chat = getUserChat(message.getFrom());

                      }

***************

*** 129,134 ****

--- 131,148 ----

              }

          }, filter);

      }

+    

+     /**

+      * Force smack to not fall back to user chat matching when looking up a matching

+      * chat for messages with a thread. If the thread don't match, create a new chat

+      */

+     public void setStrictThreadsResources(boolean strict) {

+         strictThreadsResources = strict;

+     }

+    

+     public boolean getStrictThreadsResources() {

+         return strictThreadsResources;

+     }

 

      /**

       * Creates a new chat and returns it.

Re: Force ChatManager to obey threads in Messages


Re: aSmack Listener & IQ Provider Problems

$
0
0

Don't look for the END_DOCUMENT event, that is the close of the session.  You are only parsing the specific element with the provider, so your provider must exit when the END_TAG is reached for that element.

Re: Overcoming chat sync issues with concurrent XMPP sessions

$
0
0

The default behaviour is what you are seeing now.  The server will only deliver the message to a single client with the highest priority.  If there are multiple with the same highest priority, then the server determines which one to send it to, which I would guess is the last one to connect.

 

The other behaviour (which you want) requires the setting of the property defined in that thread so the message is delivered to all cllients with the same highest priority. If they are different prioirities, then only the highest one will get the message.

Re: Openfire configurations (Openfire+Spark+Webchat+Apache+Tomcat)

$
0
0

Hi,

Thank you so much for the help.

I'd rate you as the correct answer but I still need some clarification if you dont mind.

 

It seemed that i was missing these 3 lines from my previous settings :

ProxyRequests off

ProxyPreserveHost on

ProxyPassReverse /ofadmin http://of.example.com:9090/

 

That being said, this only worked if i used it for the /webchat (localhost/webchat) .

But when i used it exactly as you had mentioned above for the admin interface, i got Forbidden error,

which then i had also fixed by adding :

 

<Directory "C:/Program Files (x86)/Openfire">

    Order allow,deny

    Allow from all

</Directory>

 

But it seems that the admin interface still couldnt load unless i had these setup instead

 

ProxyRequests off

ProxyPreserveHost on

ProxyPass /ofadminhttp://of.example.com:9090/

ProxyPassReverse /ofadminhttp://of.example.com:9090/

 

As you can see, i couldnt add the extra path to the url or apache would tell me there is no such file.

 

Another related question i need to ask regarding ProxyPasReverse (i did some reading from site but could quite grasp it), is that if i had these setup below it still works. I ask these because i am trying to understand the ProxyPass,ProxyReverse and how does it work with the OpenFire setup.

 

ProxyRequests off

ProxyPreserveHost on

ProxyPass / http://of.example.com:9090/

ProxyPassReverse / http://of.example.com:9090/

 

This works as it works for the /webchat url as well.

 

Again thank you for your help.

Peace!

Re: Possible resource leak?

$
0
0

I have installed 625 on my an my colleague's PCs. Testing for 2 days now. So far no problems. But my PC rarely goes to sleep.

Re: Possible resource leak?

$
0
0

Thanks. Please let me know when you get a chance to test 626 build and if you see any difference. I removed list renderer pane change and all other mem leak fixes are in one single commit - build 626. Thanks again

Viewing all 11412 articles
Browse latest View live




Latest Images