[Remoting] - Re: Remoting 3 trunk - Ordered delivery problem
by barbacena
Hi,
anonymous wrote : The current default policy that we've agreed on for ordered execution is: Each request on a single Client instance that happens-after a previous request, will also happen-after the previous request on the server side (maybe not in the same thread though).
That is nice. I would suggest a javadoc on send,invoke and sendOneWay saying this.
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?
anonymous wrote : Also, this means that (since you're using context.execute() to run a background task), it's possible that the "Executing..." lines will be out of order; this is not something I plan to change (though there are some utility classes that can help if you want ordering, like OrderedExecutor).
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++;
| }
| }));
|
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.
anonymous wrote : What problem are you having? You should have been able to just check out trunk and type "ant", and all dependencies would be downloaded for you. Can you start a separate topic for this?
One of the dependencies wasn't downloading with the "all" target. But my main concern was with eclipse integration. The projects couldn't be built with it. I had to create a standalone sample project and import the jars files to execute (and I didn't know what jar are needed, e.g. jboss common log).
I will open another thread latter when I get home.
anonymous wrote : No, XNIO 1.1.0 will be required (it's still in development but there's an API snapshot which is used for the build).
Is the xnio trunk working for it or just the jar that you download in the ant build?
anonymous wrote : Hm, that's not good. I'll have to come up with a slightly different executor strategy for these things. Care to file a bug (set "fix for" to 3.0.0.Beta1)? :-)
I will do it. But could you explain what were you trying to accomplish? 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?
If it is, how could I turn this off, because my use case I need delivery guarantee and I message lost means a failure in transport.
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.
Tnx and congrats for the project. Very very good. Hope closures make java 7 and it will look sparkling.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176829#4176829
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176829
17 years, 10 months
[JBoss Portal] - 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=4176827#4176827
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176827
17 years, 10 months
[Security & JAAS/JBoss] - 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=4176824#4176824
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176824
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Re: Web connector configuration from within EAR?
by atijms
Well the situation is that we have a 'set' of cooperating applications. For development, new developers need to check out several projects from our SVN repository and deploy these to local instances of Tomcat and Jboss.
I'm trying to make this process as painless a possible. The goal is that they can just do the following:
1. Download and unzip Tomcat
2. Download and unzip Jboss
3. Checkout project X and Y
4. Deploy project X to Tomcat, deploy project Y to Jboss using MyEclipse.
5. Start the servers and start testing
Although seemingly a very small step, explaining to junior developers that they must change something in [jboss install dir]/.../server.xml proves to be quite hard in practice. They always do something wrong. Either they can't locate the file, or they change the wrong port (e.g. set the AJP connector to 8081 instead of the HTTP connector) or they change something in Tomcat instead of Jboss, etc.
A workaround would be to provide a pre-configured Jboss (already set to port 8081), but in the past this provided to be problematic too. New developers start to download the latest version anyway and run into problems since it starts up at the default port.
Providing instructions to add a setting to the MyEclipse server connector is a lot easier than explaining what they have to change in which file.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176819#4176819
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176819
17 years, 10 months