How to use Apache Beehive in WebLogic 10.3?

Hi
I want to use Apache Beehive controls in an MDB on WebLogic Server 10.3 but I can not get the controls to be instantiated.
I want to use a Jdbc control sice they are so easy to use.
Thanks
Lucas

To add some more info about this:
I have an MDB like this:
@MessageDriven(messageListenerInterface = javax.resource.cci.MessageListener.class)
public class MyMDBean implements MessageListener {
@Control
private MyJdbcControl mMyJdbcControl;
@PostConstruct
public void initialize() {
public Record onMessage(Record record) {
mMyJdbcControl.setData(4711, "hello");
} // end MyMDBean
and a control extension
import org.apache.beehive.controls.api.bean.ControlExtension;
import org.apache.beehive.controls.system.jdbc.JdbcControl;
@ControlExtension
@JdbcControl.ConnectionDataSource(jndiName="jdbc/MyDataSource")
public interface MyJdbcControl extends JdbcControl {
@SQL(statement="UPDATE MY_TBL SET data = {data} WHERE id = {id}")
void setData(long id, String data);
// end MyJdbcControl
OK the first issue is that the control never get instantiated
so I then tried to do it myself, e.g. in initialize() adding Controls.initializeClient( null, this, null );
but then Beehive says that there is nu class like MyMDBeanClientInitializer which of course I do not have.
I can not see from the code on
http://beehive.apache.org/docs/1.0/controls/programming.html#Programmatic+Instantiation
how to create an extension control programmaticly
Please help
Lucas

Similar Messages

  • How to use Domino LDAP in WebLogic Portal 8.1?

    Hi, all
    I'm trying to solve the problem of how to use Domino LDAP in WebLogic Portal 8.1. Anybody who have this experience please help me.
    Best Regards,
    Sean

    Hi,
    I just spoke to BEA and domino LDAP not supported although they gave me these
    LDAP filters that might help -
    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=wls/S-09460.htm
    Sean Lin <[email protected]> wrote:
    Hi, all
    I'm trying to solve the problem of how to use Domino LDAP in WebLogic
    Portal 8.1. Anybody who have this experience please help me.
    Best Regards,
    Sean

  • How to use Apache Web Server?

    Hi all,
    How to use Apache Web Server?
    Thanks
    contact me: [email protected]

    i do not know for certain about the jsps you're talking about, but i would guess they should run just fine under jrun, and you wouldn't have to make jrun and jserv coexist.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by One:
    Hi ilya:
    Thank you for your quick reply.
    I will try that way but I wonder if the thing like "how about the *.jsp developed by the JDeveloper and BC4J run under JRun; could and is it necessary to make the Apache+JServ and Apache+JRun co-exist ... "<HR></BLOCKQUOTE>
    null

  • Pop Up windows -  Apache Beehive Vs Weblogic workshop

    Hi,
    I was going through this open source project called Beehive by apache.
    and they have a very much similar model of pageflows as weblogic workshop using struts and netui tag library.
    But, their netui tag library has more tags and options too.
    I was wondering how are pop up windows dealt with in Workshop.
    Apache Beehive uses netui:button tag with popup attribute, netui:configurePopUp tag etc to support popup windows.
    you can find it here :
    http://incubator.apache.org/beehive/pageflow/popupWindows.html
    Does Weblogic workshop have a similar model ??
    I am having problems with pop up windows using workshop.
    i am not able to communicate child pageflow with parent pageflow without errors.
    If any body has successfully used popup windows in workshop please share your experiences.
    thanks,
    DV.

    In WLS 9.0, BEA will use Beehive. Beehive is a lot more powerful then the current page flow implementation in BEA.
    Kunal Mittal

  • How to use security roles in Weblogic server?

    Hello Gurus,
    I am new to Weblogic server and I am trying to investigate how to make
    use of security roles in weblogic server (5.1.0). Can anyone point me
    to some documentation. Specifically, I am looking for instance level,
    and method level security and how to use it.
    Thanks for taking your time to read this e-mail.
    Thank You all in advance,
    Hari.

    You should read the security information in the Servlet 2.2 specification
    that WL 5.1 implements:
    http://java.sun.com/products/servlet/download.html
    Chapter 11 deals with declarative and programmatic security, and includes a
    section on roles:
    11.4 Roles
    A role is an abstract logical grouping of users that is defined by the
    Application Developer or
    Assembler. When the application is deployed, these roles are mapped by a
    Deployer to security
    identities, such as principals or groups, in the runtime environment.
    A servlet container enforces declarative or programmatic security for the
    principal associated with
    an incoming request based on the security attributes of that calling
    principal. For example,
    1. When a deployer has mapped a security role to a user group in the
    operational environment. The
    user group to which the calling principal belongs is retrieved from its
    security attributes. If the
    principal's user group matches the user group in the operational environment
    that the security
    role has been mapped to, the principal is in the security role.
    2. When a deployer has mapped a security role to a principal name in a
    security policy domain, the
    principal name of the calling principal is retrieved from its security
    attributes. If the principal is
    the same as the principal to which the security role was mapped, the calling
    principal is in the
    security role.
    Cameron Purdy
    http://www.tangosol.com
    "Hari" <[email protected]> wrote in message
    news:[email protected]..
    Hello Gurus,
    I am new to Weblogic server and I am trying to investigate how to make
    use of security roles in weblogic server (5.1.0). Can anyone point me
    to some documentation. Specifically, I am looking for instance level,
    and method level security and how to use it.
    Thanks for taking your time to read this e-mail.
    Thank You all in advance,
    Hari.

  • How to use Apache MyFaces components in JSF pages + Eclipse?

    I've managed to write my JSF web app. in Eclipse jee, and test it on JBoss 4.2 GA, within Eclipse, but how to import Apache MyFaces components into Eclipse JSF plug-in?
    If I can't import it nicely, how to use those components directly in JSF pages?

    The Tomahawk component library provides MyFaces components. Install it as you would any other component library.
    http://myfaces.apache.org/tomahawk/

  • How to use RDBMS Realm in Weblogic Commerce Server?

    Hi All,
    Same as the subject.
    Thx
    Ray

    You should read the security information in the Servlet 2.2 specification
    that WL 5.1 implements:
    http://java.sun.com/products/servlet/download.html
    Chapter 11 deals with declarative and programmatic security, and includes a
    section on roles:
    11.4 Roles
    A role is an abstract logical grouping of users that is defined by the
    Application Developer or
    Assembler. When the application is deployed, these roles are mapped by a
    Deployer to security
    identities, such as principals or groups, in the runtime environment.
    A servlet container enforces declarative or programmatic security for the
    principal associated with
    an incoming request based on the security attributes of that calling
    principal. For example,
    1. When a deployer has mapped a security role to a user group in the
    operational environment. The
    user group to which the calling principal belongs is retrieved from its
    security attributes. If the
    principal's user group matches the user group in the operational environment
    that the security
    role has been mapped to, the principal is in the security role.
    2. When a deployer has mapped a security role to a principal name in a
    security policy domain, the
    principal name of the calling principal is retrieved from its security
    attributes. If the principal is
    the same as the principal to which the security role was mapped, the calling
    principal is in the
    security role.
    Cameron Purdy
    http://www.tangosol.com
    "Hari" <[email protected]> wrote in message
    news:[email protected]..
    Hello Gurus,
    I am new to Weblogic server and I am trying to investigate how to make
    use of security roles in weblogic server (5.1.0). Can anyone point me
    to some documentation. Specifically, I am looking for instance level,
    and method level security and how to use it.
    Thanks for taking your time to read this e-mail.
    Thank You all in advance,
    Hari.

  • How to use jndi datasource on Weblogic instead of adding a DB data source

    Hi All,
    version: 11.1.1.4
    I am trying to figure out how in my ADF applications I can use an existing jndi datasource out on our weblogic servers instead of having to bury the Database db source in my adf applications. Like SOA I would like to reference the DB directly during design so I can pull in entities and build view objects, but when I deploy I want it to reference the jndi datasource out on the weblogic server.
    Is this possible? If so I am not sure how to configure it like I would a DB adapter in SOA.
    As always appreciate the info.
    Thanks,
    S

    If you use ADF in the model layer (application modules) you can configure them to use JNDI Datasources. Just right click on the application module and select 'Configurations...'. In the next dialog you see all the configurations currently available (one named xxxxxlocal and one named xxxxxshared at least). Select the local and hit the edit button. This open the DB connect dialog where you can change the connection from JDBC URL to JDBC Datasource (JNDI). Save your work and when you now start the app it will use the JNDI name.
    Timo

  • How to use commons.logging in weblogic (8.1)?

    Greetings,
    I'm trying to use commons.logging framework to manage the logs of my
    application. With Weblogic I will use an implementation that works with
    weblogic.logging package but with other J2EE products I'll use another
    native log implementations or frameworks (for instance, for jboss I will
    use log4j).
    1) I created a class WeblogicLogger which implements the Log interface::
    public final class WeblogicLogger implements Log {
    I packaged this class in a jar file with a properties file,
    commons-logging.properties, which has the property setting my class
    below has the default logger:
    org.apache.commons.logging.Log=pt.ptinovacao.weblogic.logging.WeblogicLogger
    2) My sample code has the following code:
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    private static final Log log = LogFactory.getLog(
    LogTimeStartHandler.class.getName());
    something(){
    log.info(this.getClass()+" test log");
    3) I added the commons-logging jars and my jar with my custom wrapper
    weblogic logger in ${WL_HOME}/common/bin/commEnv.sh:
    WEBLOGIC_CLASSPATH=
    (...)${CLASSPATHSEP}${WL_HOME}/server/lib/weblogiclogger.jar${CLASSPATHSEP}${WL_HOME}/server/lib/commons-logging-api.jar${CLASSPATHSEP}${WL_HOME}/server/lib/commons-logging.jar
    However, my loggings still not appear in my weblogic server. Did I miss
    something?
    thanks,
    Pedro Salazar

    Did you manage to get this working?
    If yes ... what did you do?
    I am having the same problem implementing commons-logging with log4j

  • How to use thin Driver in WebLogic 6.1

    How to config in "JDBC Connection Pools"
    (platform:windows 2000 server+WebLogic 6.1 + Oracle Enterprice 8.1.6)
    URL:?
    Driver Classname:?
    Properties:?

    Here is a sample:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    LoginDelaySeconds="1" MaxCapacity="15" Name="dbPool"
    Properties="user=scott;password=tiger;dll=ocijdbc8;protocol=thin"
    RefreshMinutes="15" Targets="AdminServer" TestTableName="dual" URL="jdbc:oracle:thin:@dbservername:1521:SIDname"/>
    You can either use the info above configure a db pool using weblogic 6.1 web console or directly paste this into config.xml and change it accordingly. I would recommend you use the console.
    Hope this helps!

  • How to use Apache's FOP (getting NPE)

    I'm trying to call out to FOP from a servlet to generate a PDF. Here's my code:
    Driver driver = new Driver();
    try {
    driver.setOutputStream(response.getOutputStream());
    } catch (IOException e) {
    e.printStackTrace();
    driver.setRenderer(Driver.RENDER_PDF);
    Transformer transformer;
    try {
    transformer=TransformerFactory.newInstance().newTransformer(new StreamSource (xslStream));
    transformer.transform(new StreamSource(xmlStream), new SAXResult(driver.getContentHandler()));
    } catch (TransformerConfigurationException e) {
    e.printStackTrace();
    } catch (TransformerFactoryConfigurationError e) {
    e.printStackTrace();
    } catch (TransformerException e) {
    e.printStackTrace();
    The call to transform(...) causes a NullPointerException as such:
    java.lang.NullPointerException
    at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:762)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:335)
    Any ideas what the problem might be?
    Thanks,
    --Voytek Jarnot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I fixed my problems with the following code, seems like oracle's xsl code is broke (at least in this context). Setting the javax.xml.transform.TransformerFactory to either "org.apache.xalan.processor.TransformerFactoryImpl" or "org.apache.xalan.xsltc.trax.TransformerFactoryImpl" works. I'm using the xsltc version for performance reasons.
    Of course, the whole point of the api is to allow vendors to plug in implementations, and for me not to worry about which specific implementing classes are being used. I'm breaking that abstraction here, but at least it works...
    <pre>
    static {
    //Set the TransformerFactory system property to generate and use translets.
    //The setting for the Xalan Transformer "org.apache.xalan.processor.TransformerFactoryImpl"
    String key = "javax.xml.transform.TransformerFactory";
    String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
    Properties props = System.getProperties();
    props.put(key, value);
    System.setProperties(props);
    </pre>

  • How to use single processor in weblogic

    Hi,
    In multi core processors, weblogic server should be used specific processor/processors in Linux environment. Is there any configuration available Out of the the box from the Oracle weblogic...?
    Thanks,
    Ravindher

    A Java application, such as Weblogic Server try to schedule every active thread on a separate core, Bond the java process to an specific CPU is beyond the scope of Java.
    Regards
    Mukesh Negi
    http://weblogicserveradministration.blogspot.com

  • How to use Apache as Web Server

    Hi,
    Who can help me? Thanks a lots.
    I've installed Apache + Apache JServer + Oracle JSP in my NT server. Who can tell me how to set iFS in order to make it run with Apache and Apache JServer
    null

    i do not know for certain about the jsps you're talking about, but i would guess they should run just fine under jrun, and you wouldn't have to make jrun and jserv coexist.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by One:
    Hi ilya:
    Thank you for your quick reply.
    I will try that way but I wonder if the thing like "how about the *.jsp developed by the JDeveloper and BC4J run under JRun; could and is it necessary to make the Apache+JServ and Apache+JRun co-exist ... "<HR></BLOCKQUOTE>
    null

  • How to use standalone portlets in weblogic 8.1

    I have a pageflow that is pretty simple.
    It begins by forwarding the user to index.jsp that contains a hyperlinked list of available reports.
    When the user clicks on one of the hyperlinked reports, I would like it to forward to an action that initializes that report which in turn forwards to a jsp that opens a new popup window without any look and feel (just a plain white window) and renders the report inside of that window. I would like all of my previously set pageFlow variables to be available within that window.
    From what I have gathered this is called a "standalone" portlet and there is a jsp tag and also a java class that can be used to accomplish this.
    However, I have not had luck with either of these. When I used the JSP tag it opens the portlet in a new window without the look and feel as expected, but the portlet state is "reset", all page flow variables are reset, and the pop up window restarts at the "begin" action and re-displays the hyperlinked list of available reports. When I try to use the StandalonePortletURL class I get a Null Pointer Exception whenever I try to create the URL like this StandalonePortletURL.createStandalonePortletURL(getRequest(), getResponse()).
    The only work-around I have found is to first set the variables I need access to in the session and then manually redirect to the JSP outside of the page flow. When I do this I lose all access to the pageFlow variables so I have to refer back to the session to access the variables I need. This works but seems really sloppy and cumbersome.
    Appreciate any help. Thanks.
    Edited by: user6093557 on Mar 5, 2011 12:58 PM

    Did you manage to get this working?
    If yes ... what did you do?
    I am having the same problem implementing commons-logging with log4j

  • How to use apache shiro in spring application

    Hi every one,
                   Can any please tell me the steps to integrate Apache Shiro and Spring .
    (Give me the sample web application )
    Regards
    Siva Suresh

    Please get familiar with The SCN Rules of Engagement. In particular, there is a point about "search before you post". You might be astonished what you get if you just type "shiro spring" in Google.
    Also, note that this is not a general Java forum but a space to discuss topics around Java@SAP.
    The above notes apply to most, if not all, of your other threads which I will now lock.
    --Vlado

Maybe you are looking for

  • Just bought Apple TV. Installed ok up to a point but can't mirror the iPad on to the Sony tv. Sony model is KDL40EX713. Any idea please?

    Installed the Apple tv gizmo ok to Sony LDL 40ex713 digital tv. Can see menu, photo roll, YouTube etc but can't mirror iPad display on to the tv. What am I doing wrong please?

  • Can't drag windows across desktops

    Since upgrading to Mavericks I am no longer able to drag/move application windows to adjacent desktops. The only way to do it now it to move applications around in Mission Control which feels very cumbersome and un-intuative. Is this a "feature" now

  • Need a small help

    Hi I am   a  BW consultant working an MNC ..  i need to learn ABAP . I need to learn the Basic skills of ABAP Writing Routines writing ABAP programs user exits i need ABAP relavent to BW .. can any one help me .. where can i get the good material . w

  • "Explicit" tag will not work no matter what I do

    I have done everything exactly as I was told in every tutorial that I have looked up, including the official iTunes tutorial, and yet, no matter what I do, iTunes refuses to recognize my podcast as "explicit" and instead thinks it "is clean."  I do n

  • Flash Player 9 not installing on Mac OSX

    Hi, I have noticed many problems and questions about the successful installation of Flash Player 9 on these forums over the past few weeks. I have read lots of them, and still haven't been able to find one that describes the issues I am encountering