I have the same issue. Is it possible to denote a security constraint on a cms
window so that it wouldn't be shown if a user doesn't have a given role? Or as
the above poster mentions, it would be nice to tell JBoss to simply not show
the window if permissions were denied instead of showing the
So far I have been able to use web services in JBoss without having to modify
my web.xml (or any xml files really) at all thanks to great annotations.
However, I recently started adding version numbers to my wars/ears/jars and
this has caused a number of problems. One of them is that JBoss uses
Well I like answering my own questions.. indeed, there is an annotation for
this:
org.jboss.wsf.spi.annotation.WebContext
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4149528#4149528
Reply to the post :
I believe that there is a bug in the getUsers function of MembershipModule. If
you have a portlet (like below) using the getUsers function, then go to the
admin portlet and assign a user to a role (in this example, 'testrole'), this
portlet will continue to return a list of size 0 until you
Thank you, I wasn't able to find that when I searched jira earlier. The fix
works great.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4145975#4145975
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145975
Thanks for confirming the fact that customizations is the way to go Thomas, I
just wanted to see if there was an easier way. It would seem like I should be
able to provide a namespace for POJO_C so that this could be done
automatically, but I can handle the manual way. Thanks again!
View the
Just to update, I figured out that if I specify @XmlType(namespace=...) on my
@Entitys that the web services are using, wsimport (if you don't use the -p
option) would do what I want for me without having to specify JAXB
customization files.
I still think that it would be neat if I could
Although I am an experienced programmer, I have to admit I am relatively new to
Web Services and XML in general, so please bear with me...
Let's say I have two web services, WS_A and WS_B. They both reference POJO_C
(let's say both WS_A and WS_B have a function called getC that returns POJO_C).
Let's say I have a web service called getVehicle(int vehicleId) and I'm
expecting it to return me a Vehicle object.
If Vehicle has a java.util.Set of Wheel objects, and the Wheel object has a
reference to its owner (Vehicle), then obviously there is an issue here when
trying to persist to XML
Could it be that because it throws an exception when the user does not exist
you never get to the ut.commit() and that's why that particular exception is
being thrown? Just a wild shot in the dark.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4139731#4139731
waynebaylor wrote : JNDI names with the java:/ prefix are only visible from
within the same JVM. you'll have to bind your persistence unit to a global JNDI
name to get at it from outside the app. server
Wow, I had no idea - I should have known that. Thanks a bunch for the tip.
- Ryan
View the
I'm trying to write JUnit tests for some of our JPA stuff. I'm essentially just
trying to get an EntityManager for my persistence units from a standalone java
app. I've tried this:
|
System.setProperty(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
|
By the way you'll notice my datasource name switches between MyDS and
CobraShadowDS, I was trying to change the name to make it simpler but I missed
a spot, sorry :)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4138151#4138151
Reply to the post :
That solution works perfectly, thank you for taking the time to respond.
- Ryan
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4134559#4134559
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134559
Sorry for the me too post, but this is really unfortunate. @Interceptors just
plain don't work on beans marked with only @Stateless and @WebService. Add
@Service, @Local or @Remote, it works fine.
This is on AS 4.2.2.
Has this at least been added to the bug list? Are there any other
I did not find the issue currently on JIRA, so I filed one with an example.
http://jira.jboss.org/jira/browse/EJBTHREE-1206
- Ryan
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4134718#4134718
Reply to the post :
If I've got an EJB3 Bean with @Stateless and @WebService defined with a method
like:
| addNumbers(int num1, int num2)
|
the WSDL generated will simply call the arguments arg0 and arg1. Is there a way
to force the WSDL generated to actually use the proper argument names? In this
silly
Going based on some information found through google search:
http://bill.burkecentral.com/2007/09/19/ejb-31-immediate-feedback-on-ejb-singletons-and-concurrency-needed/
it looks as though I should be able to (or is it not working yet?) define a
singleton via the @Service annotation that also
Sorry forgot to mention I'm using JBoss Portal 2.6.4 (AS 4.2.2)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4134372#4134372
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134372
Using JBoss Portal 2.6.4, is it possible to include a .zip or some other kind
of archive in my EAR file and have it automatically (at deploy time) upload
that archive to CMS? Since I can define everything else (portal, pages,
windows, portlets) and some of my windows refer to CMS entries, it
20 matches
Mail list logo