[Remoting] - Re: Remoting 3 trunk - Ordered delivery problem
by david.lloyd@jboss.com
"barbacena" wrote :
| That is nice. I would suggest a javadoc on send,invoke and sendOneWay saying this.
|
It's on my todo list. :)
"barbacena" wrote : That means ordered execution need to be handled by the client. It is fine for me however I would like to serialize execution per (session) client. What is the API to get the current (session) client?
No, it means that the server will receive messages in order relative to the client, which means that if you send requests A B and C, the server will receive them in order A B and C. Except that it's not working yet. :)
"barbacena" wrote :
| About this, I suggest a API change if it is possible. I would something like this:
|
| context.sendReply(context.execute(new Callable<Integer>() {
| | @Override
| | public int call() {
| | System.out.println("Executing... " + request);
| | return value++;
| | }
| | }));
| |
|
First, you don't have to use context.execute() if you don't want to. You'd really only use this if for some reason your request would block for a very long time otherwise, for example, or if you have multiple background processes that must execute or you otherwise need concurrency on the server for some reason. It's perfectly acceptable to send the reply from the main RequestListener.
Second, the sendReply() method always sends a reply immediately. If you want to defer your reply until you do some asynchronous computation, you should invoke that method from the executed task (that is, in the background thread) *after* the computation is complete.
Finally, I would argue that the two approaches are really no different:
| // this is hypothetical, not an actual method
| context.executeAndSendReplyFromCallable(new Callable<Integer>() {
| public Integer call() {
| System.out.println("Executing... " + request);
| return value++;
| }
| }));
|
versus
| context.execute(new Runnable() {
| public void run() {
| System.out.println("Executing... " + request);
| context.sendReply(value++);
| }
| });
|
Though the latter actually requires error checking around the sendReply, which I think you'd be missing on the former.
anonymous wrote : anonymous wrote : Now the fact that "Remote: 4" comes before "Remote: 3" is just a plain old bug. :-) As soon as I get marshaling fixed up I'll come back to it - I think we just haven't integrated any ordering code yet.
|
| As you said if execution order is not guaranteed then this behavior isn't wrong unless only one thread executes the handleRequest.
|
Execution order is guaranteed within the actual RequestListener, but not within subtasks of the listener (if any; they are optional) that are started via context.execute().
anonymous wrote : Is the xnio trunk working for it or just the jar that you download in the ant build?
|
The XNIO trunk should be stable. I plan to release from it soon, maybe this week if I have time.
anonymous wrote : I saw a wiki entry (or was it the docs of 2.5.0.ga) that when the system is under load it rejects some messages, is that what is the exception is for?
This exception is produced by the JDK Executor implementation. Basically it means two things - I need to configure an Executor that has a longer queue and a better rejection policy, and I need to make sure that the Executor is not being removed before I'm done with it. Either way, this won't be the behavior that you will see in the final product.
anonymous wrote : One more thing :)
| Is TCP transport ready? If it is, can you post a sample using it :P I tried looking the M2 sample but the API changed and I could not find how to do it.
No, it's not ready yet... hopefully later this week or early next week there will be something to try. But we'll see how much I can get done.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176842#4176842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176842
17 years, 10 months
[JBoss Portal] - Re: Problem with Custom Auth Module
by javauser007
Hi i'm facing the Problem with configuring the ldap in jboss portal
Plz look at ones.
I'm using jboss portal 2.6.5 and open ldap.
I have created an .ldif file according to my company requirements and it works fine with other applications except Jboss portal.
My problem is, in my .ldif file i mentioned "my-user" for holding username and "my-pwd" for holding password.
and in my ldap_identity-config.xml file i mentioned accordingly as givebellow.
uidAttributeID
my-user
passwordAttributeID
my-pwd
But while i'm trying to access i'm not getting any error on console and simply the page is redirected to some other error page which shows "The user doesn't exist or the password is incorrect " .and in log file i'm getting the message like "Bad password for the user XXXXX" (even if i entered correct user name and password), but if i use "userPassword" name for holding the password in .ldif file it works fine.
if i use "userPassword" name and even if i disabling the following code in ldap_identity-config.xml it works fine.
passwordAttributeID
userPassword
But i should mention uidAttributeID like below
uidAttributeID
my-user
and after doing some R&D on this, finally i came to know that the jboss is not at all reading the following snipet.
passwordAttributeID
my-pwd
but my requirement is i should use "my-pwd" attribute id for holding the password.
How to do that..? any help is appriciated.......
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176837#4176837
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176837
17 years, 10 months
[Security & JAAS/JBoss] - Re: LDAP with Domino -- No roles found/Access Denied
by javauser007
Hi i'm facing the Problem with configuring the ldap in jboss portal. plz see the following my problem.
I'm using jboss portal 2.6.5 and open ldap.
I have created an .ldif file according to my company requirements and it works fine with other applications except Jboss portal.
My problem is, in my .ldif file i mentioned "my-user" for holding username and "my-pwd" for holding password.
and in my ldap_identity-config.xml file i mentioned accordingly as givebellow.
uidAttributeID
my-user
passwordAttributeID
my-pwd
But while i'm trying to access i'm not getting any error on console and simply the page is redirected to some other error page which shows "The user doesn't exist or the password is incorrect " .and in log file i'm getting the message like "Bad password for the user XXXXX" (even if i entered correct user name and password), but if i use "userPassword" name for holding the password in .ldif file it works fine.
if i use "userPassword" name and even if i disabling the following code in ldap_identity-config.xml it works fine.
passwordAttributeID
userPassword
But i should mention uidAttributeID like below
uidAttributeID
my-user
and after doing some R&D on this, finally i came to know that the jboss is not at all reading the following snipet.
passwordAttributeID
my-pwd
but my requirement is i should use "my-pwd" attribute id for holding the password.
How to do that..? any help is appriciated.......
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176833#4176833
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176833
17 years, 10 months
[JBoss Messaging] - exception while sending message from producer
by rahul.bandgar
Hi all,
I am getting this exception while sending message from producer.
Please let me know how to resolve this.
2008-09-16 10:36:35,953 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2008-09-16 10:36:36,062 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(Unknown Source)
at java.io.ObjectInputStream.readByte(Unknown Source)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
at java.lang.Thread.run(Unknown Source)
2008-09-16 10:36:36,062 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
2008-09-16 10:36:36,062 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176832#4176832
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176832
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Problem with configuring the ldap in jboss portal
by javauser007
Hi,
I'm using jboss portal 2.6.5 and open ldap.
I have created an .ldif file according to my company requirements and it works fine with other applications except Jboss portal.
My problem is, in my .ldif file i mentioned "my-user" for holding username and "my-pwd" for holding password.
and in my ldap_identity-config.xml file i mentioned accordingly as givebellow.
uidAttributeID
my-user
passwordAttributeID
my-pwd
But while i'm trying to access i'm not getting any error on console and simply the page is redirected to some other error page which shows "The user doesn't exist or the password is incorrect " .and in log file i'm getting the message like "Bad password for the user XXXXX" (even if i entered correct user name and password), but if i use "userPassword" name for holding the password in .ldif file it works fine.
if i use "userPassword" name and even if i disabling the following code in ldap_identity-config.xml it works fine.
passwordAttributeID
userPassword
But i should mention uidAttributeID like below
uidAttributeID
my-user
and after doing some R&D on this, finally i came to know that the jboss is not at all reading the following snipet.
passwordAttributeID
my-pwd
but my requirement is i should use "my-pwd" attribute id for holding the password.
How to do that..? any help is appriciated.......
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176831#4176831
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176831
17 years, 10 months