[JBoss Portal] - Re: Unable to use WSRP over SSL for self producer
by chris.laprun@jboss.com
"dkc" wrote :
| JBoss Portal Version: 2.6.2.GA, downloaded
| JBoss AS Version: 4.2.1
| OS Platform: RedHat Enterprise Linux 4, Update 5
|
Any reason you're not using 2.6.4 and 4.2.2? :)
"dkc" wrote :
| - I've updated server/default/deploy/jboss-portal.sar/portal-wsrp.sar/WEB-INF/wsdl/ to use http://localhost:8443 as the prefix for all 4 endpoints.
|
| - I've updated server/default/deploy/jboss-portal.sar/portal-wsrp.sar/default-wsrp to use http://localhost:8443 as prefix for all 4 endpoints.
|
I think that's the root of your problem... It needs to be httpS://localhost:8443 (note the extra 'S' after http).
I have just tried with 2.6.4 on 4.2.2 and it works as expected...
You do not need any of the rest of the configuration you did to run WSRP over SSL. I just created a keystore, activated the connector in JBoss Web (adding the path to my keystore and keystore password), added:
-Djavax.net.ssl.trustStore=<path to keystore> -Dorg.jboss.security.ignoreHttpsHost=true to my java options in run.conf and changed the default-wsrp.xml consumer configuration to point to the proper URLs.
I need to update the wiki as some of the steps are not needed anymore.
In particular, you do not need the WSDLPortFixFilter with 2.6.3+
Let me know how it goes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136506#4136506
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136506
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - WebDAV servlet?
by anguilla
Sorry, I've searched all over and haven't been able to figure out what WebDAV support is provided by the various JBoss projects. I have JBoss AS 4.2, which I received bundled with the JBoss Developer Studio. I have the AS running, but can't figure out how to start the webdav servlet. I don't even understand who provides the webdav servlet. I did find some posts that make it sound like there is a "jbossweb2.0.x (Tomcat 6.0.13) embedded in JBoss 4.2.0GA." I don't really understand what that means. Should I be able to start a webdav servlet of some sort with the AS 4.2 that I have? Do I need JBoss Web or JBoss Portal? Is the webdav servlet something that comes from Apache instead of JBoss? And what is the mechanism for starting the webdav servlet, once I have all the necessary downloads (or might I already have everything I need, and just don't understand the deployment mechanism)? Thanks in advance, and I hope I have posted this question in the correct forum.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136500#4136500
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136500
18 years, 1 month
[JBossCache] - Sharing object with READ_COMMITED?
by domyalex
Hi to all,
I'm working on my first project using EJB 3.0 and I'm facing some difficulties.
Long story short, I basically want to share an object across several (stateless and mdb) bean instances; the object is costly (as in minutes might be required) to build and for this reason I would like to just build it once and keep a single instance in memory. The object is kind of like a tree, where read and updates can be performed. I could end up having several of this costly objects laying around (with different internal data).
What I would like is some sort of mechanism similar to READ_COMMITED for databases (reads at any time as long as there are no writes going on) to manage the concurrency access to the object.
I understand EJB's specs state that developers should not manage the synchronization of objects, especially resources.
I'm using JBoss 4.2.2, so I'm taking a look at JBoss Cache 1.4.x, but I can't quite figure out the right approach to the problem.
Could somebody please show me a high overview of how JBoss Cache could be used in this context?
Best regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136494#4136494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136494
18 years, 1 month
[Beginners Corner] - ServiceMBean or Not?
by Nimtu
Greetings from a JBoss newbie. I'm trying to write my first JBoss program, which I have working, I'm just not sure I've done it the right way. And in the process of writing it I've come up with something I don't really understand that is probably a key bit of required knowledge.
I've seen example code in JBoss books I have that looks like so...
package org.jboss.system;
public interface Service {
public void create() throws Exception;
public void start() throws Exception;
public void stop();
public void destroy();
}
Sometimes that first method is shown as init();
Then other places, I see the following methods shown.
public void createService() throws Exception;
public void startService() throws Exception;
public void stopService() throws Exception;
public void destroyService() throws Exception;
Whats the difference in the two sets of methods?
The code below represents the basic layout of my program (too long to show here) which works just fine, but I wanted to be able to run it outside of JBoss as well if possible. The way I have it works outside but I have to carry around some JBoss jar files to do it. If i remove the extends ServiceMBean clause, the program will still deploy and can be run inside JBoss using the JMX console, but it won't automatically start when JBoss starts or if its deployed while JBoss is running.
Thought? / Pointers?
public interface TrialMBean extends org.jboss.system.ServiceMBean {
public void createService() throws Exception;
public void startService() throws Exception;
public void stopService() throws Exception;
public void destroyService() throws Exception;
}
public class Trial extends org.jboss.system.ServiceMBeanSupport implements TrialMBean, Runnable {
boolean keepRunning = true;
public void createService() throws Exception {
System.out.println("createService called");
}
public void startService() throws Exception {
System.out.println("startService called");
Thread t = new Thread(this);
t.start();
}
public void stopService() throws Exception {
System.out.println("stopService called");
keepRunning=false;
}
public void destroyService() throws Exception {
}
public void run() {
keepRunning=true;
while (keepRunning) {
try {
System.out.println("Still Running");
Thread.sleep(1000);
} catch (InterruptedException ex) {
logger.severe(ex.toString());
}
}
}
public static void main(String[] args) {
try {
Thread t = new Thread(new Trial());
t.start();
t.join();
} catch (Exception ex) {
System.out.println(ex.toString());
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136492#4136492
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136492
18 years, 1 month