Aliasing controls (MyBean.Bean.1 - ProjectX_MyBean.Bean)

Anybody know how to alias an ActiveX-registered Bean or control what the thing will be called in the registry?
I have a number of projects which use my controls, and want to NOT have to search and replace and recompile.
Thanks in advance..

Sure.. Here's the program source for the aliasing... As far as instantiation, just do something like
Set myObj = CreateObject("MyPackage.MyClass")
Source below
--- begin source --
// RegistryAlias.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include <string.h>
#include <windows.h>
#include <stdlib.h>
#include <shlwapi.h>
void showUsage() {
     printf("Usage: RegistryAlias (-add|-del) <alias> <classid>\n");
     printf("--------------------------------------------------\n");
     printf("This utility will either add or remove a progId from\n");
     printf("the Windows registry, associated with a specific\n");
     printf("class GUID.\n");
void addAlias(char* alias, char* classId) {
     HKEY key;
     HKEY subkey;
     DWORD disposition;
     UCHAR szBuf[80];
     if(RegCreateKeyEx(HKEY_CLASSES_ROOT,alias,0,NULL,
          REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,
          &key,&disposition)!=ERROR_SUCCESS) {
          printf("Error: RegCreateKeyEx failed.\n");
          exit(1);
     if(disposition == REG_CREATED_NEW_KEY) {
          printf("Created a new key\n");
     else
          if(disposition == REG_OPENED_EXISTING_KEY) {
               printf("Opened an existing key\n");
          else {
               printf("Unexpected error on create key\n");
               exit(1);
     strcpy((char*)szBuf, alias);
     if(RegSetValueEx(key,NULL,0,REG_SZ,(LPBYTE)szBuf,strlen((char*)szBuf)+1)!=ERROR_SUCCESS) {
          printf("Error setting the CLSID\n");
          exit(1);
     if(RegCreateKeyEx(key,"CLSID",0,NULL,
               REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,
               &subkey,&disposition)!=ERROR_SUCCESS) {
          printf("Error: RegCreateKeyEx failed on subkey creation.\n");
          exit(1);
     strcpy((char*)szBuf, classId);
     if(RegSetValueEx(subkey,NULL,0,REG_SZ,(LPBYTE)szBuf,strlen((char*)szBuf)+1)!=ERROR_SUCCESS) {
          printf("Error setting the CLSID\n");
          exit(1);
     RegCloseKey(subkey);
     RegCloseKey(key);
void reportError() {
     LPVOID lpMsgBuf;
     if (!FormatMessage(
          FORMAT_MESSAGE_ALLOCATE_BUFFER |
          FORMAT_MESSAGE_FROM_SYSTEM |
          FORMAT_MESSAGE_IGNORE_INSERTS,
          NULL,
          GetLastError(),
          MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
          (LPTSTR) &lpMsgBuf,
          0,
          NULL ))
          // Handle the error.
          return;
     // Process any inserts in lpMsgBuf.
     // Display the string.
     MessageBox( NULL, (LPCTSTR)lpMsgBuf, "Error", MB_OK | MB_ICONINFORMATION );
     // Free the buffer.
     LocalFree( lpMsgBuf );
void delAlias(char* alias, char* classId) {
     HKEY key;
     if(RegOpenKeyEx(HKEY_CLASSES_ROOT,alias,0,KEY_ALL_ACCESS,&key)!=ERROR_SUCCESS) {
          printf("Error opening key %s for deletion.\n",alias);
          exit(1);
     if(RegDeleteKey(key,"CLSID")!=ERROR_SUCCESS) {
          printf("Error deleting subkey %s\n",alias);          
          exit(1);
     if(RegDeleteKey(HKEY_CLASSES_ROOT,alias)!=ERROR_SUCCESS) {
          printf("Error deleting key %s\n",alias);          
          exit(1);
     RegCloseKey(key);
     printf("Deleted alias %s\n",alias);
int main(int argc, char* argv[])
     if(argc<3) {
          showUsage();
          exit(1);
     if(stricmp(argv[1],"-add") == 0) {
          if(argc<4) {
               showUsage();
               exit(1);
          addAlias(argv[2],argv[3]);
     else
          if(stricmp(argv[1],"-del") == 0) {
               delAlias(argv[2],argv[3]);
          else {
               showUsage();
               exit(1);
     return 0;
-- end source --

Similar Messages

  • Grid Control Java Beans

    Hi!
    I am working on Forms 9i and need to implement a grid control (Like Flex Grid on Microsoft Platform) in one of my form. Regarding this can someone let me know -
    1- Is there and control bean supplied by oracle itself which can be directly plugged? Where can I get some example code for the same?
    2- If not by Oracle, is there any freeware available to achieve the same?
    Need an urgent help.

    Samir,
    no, there is none provided by Oracle. There are many grids available and the simplest one owul be JTable in Swing, depending on what your requirements are.
    Because a block does not allow PJCs you will have to substitute the block completely with a Hava Bean and thus also handle uodates - keep this in mind.
    Frank

  • JavaBeans Data Control / Managed beans interaction

    Working in JDev/ADF 11g
    I have an Application Scoped ADF managed bean that initializes some services for my ADF application. (These are non-database backed business services and so they do not integrate as tightly with Jdev as data controls). They require some constructor arguments and other initialization parameters and so they cannot be written as pure beans.
    I wrote Java Beans to use as data controls that wrap these services. What I would like to do is to keep the creation of these services in the application scoped bean, so they can be used programmatically in other areas. When the data controls beans are initialized, I want to grab their underlying services from the application scoped bean via the ADFContext.
    My issue is that at the time the data control beans are instantiated, the ADFContext returns null when accessing the application scoped bean - ie it has not been created yet.
    What is the proper way to pass initialization data to JavaBean data controls? Ideally I could simply pass the data control a reference to its underlying service.
    If Im going about this all the wrong way, with the application scoped bean holding the application wide business services, please feel free to advise me otherwise.
    Thanks!

    Okay - so I figured out one way to do this (detailed below), but my question still stands as to if there is a proper way to get information to a JavaBean data control when it is instantiated.
    What I just learned is that although my application scoped bean does not exist when the data control is created, it can exist when the the data control is called by the .jspx. I say 'can' because it will only exist if the .jspx backing bean references the application scoped bean as a managed property. i.e. ADF will create the data control, create the page bean, create the application bean (b/c the page needs it), and then call the data control, at which point the data control will find the application scoped bean. This is sort of a hack, since it requires an unintuitive setting for it work. so I think my question still stands, how to pass data from the application scoped bean to the data control.

  • Problem controlling jsf bean instantiation

    Hello folks,
    I am working on a project and I hit a hefty road block. I am pretty locked in with the overall process, so I won't be able to change the details of how this is supposed to work. I will explain my assignment, and how I am trying to implement it.
    I have a page on which I can select values from a number of dropdowns. As I select values from these dropdowns a ValueChangeListener is triggered which dynamically builds a query string. The url and querystring is assigned to an onclick attribute of a button on the page. That button does a window.open javascript command which loads a page in a new tab/window. When this new page loads, it uses that querystring to to query the database and retrieve a number of records that get thrown into a paginated <t:dataTable>. This works fine the first time around...
    The problem occurs when I start opening multiple windows that contain this data table, or if I start modifying the querystring in the url. Whatever manages the bean instantiations starts to mix up the pages and feed the wrong data to the wrong pages.
    I realize my description is vague, but I am wondering if anyone else has had to overcome a problem similar to this. We do not have anyone in house that specializes in web development, so I would really like to hear someones opinion on the right way to handle a business problem like this. I greatly appreciate any insight that anyone can offer. Thanks!

    developerintraining wrote:
    Sorry I did not notice the JSF forum BalusC. You have a good point. The bean is longer than request scope because of a t:savestate. However, I don't know that I can get rid of the savestate because then I would have to instantiate the bean and force a retrieve of thousands of rows with every click, such as page numbers on the data table.
    Does it sound like I am correct here? If the a new request is created, the bean is re-instantiated and I lose all my data from the table.Split the bean in a session scoped one for the data and a request scoped one for the actions and other request scoped parameters. The both beans can access each other by managed property injection or -less neat- by one of the maps of the ExternalContext.

  • ADF: is it possible to call bean methods from a DataForwardAction?

    Hi,
    i have created an ADF data control from bean and I have some values bound and populated in a page. As part of the Action class i would like to execute one of the methods in the bean. Is this possible or am i taking the wrong approach?
    regards,
    Brenden

    Yes, there are a few ways of doing it, please see...
    http://www.ps-scripts.com/bb/viewtopic.php?t=3109

  • JSPDyn page using a bean

    Trying to create a pretty simple JSPDyn page with a single bean.  I am using NWDS to generate the code.  I am trying to set some initial data in bean to be used on the page later, but it always comes back as NULL.  It's like the creation the generation of the page creates a new instance of bean and loses the reference I create in the controller.
    Here is the code for the dynpage controller:
    package com.my.test;
    import com.my.test.bean;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class myTest extends PageProcessorComponent {
      public DynPage getPage(){
        return new myTestDynPage();
      public static class myTestDynPage extends JSPDynPage{
        private bean myBean = null;
        public void doInitialization(){
          IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
          Object o = profile.getValue("myBean");
          if(o==null || !(o instanceof bean)){
            myBean = new bean();
            profile.putValue("myBean",myBean);
          } else {
              myBean = (bean) o;
          // fill your bean with data here...
          myBean.setOutput("test message");
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("myTest.jsp");
    Notice I am setting the data up after the comment "//fill your bean data here".  SAP code generator inserted this comment.
    and here is the bean code
    package com.my.test;
    import java.io.Serializable;
    public class bean implements Serializable {
         private String output;
         public String getOutput( ){
              return output;
         public void setOutput( String value ){
              output = value;
    and finally the jsp page
    <jsp:useBean id="myBean" scope="application" class="com.my.test.bean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
         The value of Output is <%= myBean.getOutput( ) %>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    the output is:
    The value of Output is null
    Anyone have any idea what I am doing wrong here.
    Thanks in advance.
    Clark

    Hi Clark,
    Open the portalapp.xml and delete these two lines
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/myTest.jsp"/>
    Rebuild and deploy and it should work.
    Thanks
    Prashant

  • Exception while accessing deployed session bean

    Hi,
    I am new to IPlanet AS 6.0 . I wrote a simple stateless session bean in Forte EE v 3.0 environment. The compilation and deployment went fine. When I try to use my bean through a client program using IIOP then it throws the following exception in kjs:
    javax.naming.NameNotFoundException: EjbContext: exception on getHome(), com.netscape.server.eb.UncheckedException: unchecked exception thrown by impl com.kivasoft.eb.boot.EBBootstrapImpl@71dc3d; nested exception is:
    java.lang.NullPointerException
    at com.netscape.server.ejb.EjbContext.createHomeRef(Unknown Source)
    at com.netscape.server.ejb.EjbContext.getHomeRef(Unknown Source)
    at com.netscape.server.ejb.EjbContext.lookup(Unknown Source)
    at com.netscape.server.jndi.RootContext.lookup(Unknown Source)
    at com.netscape.server.jndi.RootContext.lookup(Unknown Source)
    at javax.naming.InitialContext.lookup(InitialContext. java:357)
    at com.netscape.ejb.CorbaHomeFactoryImpl.ConstructEJBHome(Unknown Source
    at com.netscape.CosNaming.NamingContextImpl.resolve(Unknown Source)
    at org.omg.CosNaming._NamingContextImplBase.invoke(_N amingContextImplBas
    e.java:233)
    at com.sun.corba.ee.internal.corba.ServerDelegate.dis patch(ServerDelegat
    e.java:236)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.jav a:227)
    at com.sun.corba.ee.internal.iiop.CachedWorkerThread. doWork(IIOPConnecti
    on.java:262)
    at com.sun.corba.ee.internal.iiop.CachedWorkerThread. run(IIOPConnection.
    java:230)
    My client program is:
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class MybeanClient {
    public static void main(String[] args) {
    try {
    Properties env = new Properties();
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://localhost:9010");
    Context initial = new InitialContext(env);
    Object objref = initial.lookup("ejb/Mybean");
    MybeanHome home =(MybeanHome)PortableRemoteObject.narrow(objref,My beanHome.class);
    Mybean bean = home.create();
    String result = bean.test();
    System.out.println(result);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    The j2eeguide.converter sample bundled with IPlanet works fine with the above code.
    The only difference is that the converter sample was deployed by the IAS deployment tool.
    Mybean was deployed by the Forte.
    What is the problem?
    Any help would be highly appreciated.

    1. Check that iiop is enabled in ias-ejb-jar.xml
    2. Check your naming in the xml files
    3. Check what has been deployed (filesystem & kregedit)
    4. Try it with the full qualified name ejb/'ejbfilename'/<ejb-name>

  • IsDirty or isModified flag for Entity Beans

    I've been reading a lot of conflicting information on the use of a isModified boolean in Entity Beans. Is creating a modified boolean recommended for BMPs? Or CMPs? Or both? I am doing a BMP, and wondering if it will really buy me much performance-wise to add this logic to my ejbStore() method. Thoughts?
    Thanks,
    Ceily Turner

    Greetings,
    I've been reading a lot of conflicting information on
    the use of a isModified boolean in Entity Beans. IsAre you sure all this information was presented in the same contexts? I'm guesing the apparent conflict was only perceptual and without regard for BMP in one case and CMP in [the /an]other...
    creating a modified boolean recommended for BMPs? OrDefinitely! The container will call your bean's ejbStore method (sometime) after a call to its business method(s) to ensure its state is synchronized back to the resource. However, in a BMP bean, the container has no way of knowing whether the business method(s) actually modified your bean's state, making the call to ejbStore a "blind call". Additionally, business method calls are not the only triggers to calling ejbStore - transaction COMMIT (regardless if your bean was an active participant in the transaction), and passivation being among them, as well as "at any time within the container's discretion". Though, precisely when and how often the spec. leaves to the "vendor's disrection". With all these factors at play, "blindly" hitting the resource is a sure-fire way to degrade the performance of your beans and, consequently, the application(s) which they are a part. Make your synchronization code "smart" - use a 'dirty flag'.
    CMPs? Or both? I am doing a BMP, and wondering if itIn CMP, the container has more direct knowledge of the bean's state fields and, therefore, should know whether an actual update to the resource is needed - this is especially true for EJB 2.0. Of course, this depends on the vendor's implementation (coders) to be "smart" on the bean coder's behalf. In any event, the container has absolute control over bean synchronization, and ejbStore is relegated to being a pre-processor, in CMP, so using a 'dirty flag' here will gain you absolutely nothing!
    will really buy me much performance-wise to add this
    logic to my ejbStore() method. Thoughts?Refer back to the above. :)
    Thanks,
    Ceily TurnerRegards,
    Tony "Vee Schade" Cook

  • Bean datacontrols and managed beans

    Hi,
    When I use bean data controls, my bean from which the datacontrol is created is in session scope. In this case, should I be using another managed bean for the UI purpose or shall I use the "data control bean" ?
    For eg:
    I have a an EmployeeManager which returns a list of employees. Now I created a data control from my EmployeeManager. And I create a table of employees on my jspx. Suppose I want to keep the last selected employee record for some back end processing ( maybe a web service call to get the Employee Salary details) , shall I keep the selected Employee in my EmployeeManager or should I have a managed bean?
    If I keep this in managed bean, again I need it in my EmployeeManager for back end call. Please guide me.
    Thanks,
    Manoj

    Model layer binds presentation layer to business logic and data services and vise versa. In ADF applications the model layer is implemented as ADF DataControls + ADF Bindings. The presentation layer is implemented usually as UI. The business logic and data services may be implemented in various ways (ADF BC, EJB, POJO, Java Beans, Web Services, etc.). See this ADF architecture diagram.
    You should separate these layers from each other. In this way you will be able to replace the implementation of some layer without re-engineering the other ones (for example, to replace the bean-based data services with ADF based ones without re-engineering the user interface).
    Keeping track of the current records is responsibility of the model layer and the business/data services. The JSF managed beans are not a proper place to do it because they are part of the presentation layer. (In theory if you have good application architecture and you replace the implementation of the data service, then you should not be forced to modify the presentation layer too).
    ADF iterator bindings (defined in PageDefs) have a built-in funtionality for keeping track of current rows. In my opinion, they have this functionality regardless of the kind of the data services they are based on, so if you use ADF bindings you should have this functionality out-of-the-box even in case of a bean-based DataControl.

  • Help getting a bean to return data

    I have created a bean which connects to a db and runs a queary ( before everyone says i should not do it that way I know but it is something i have been asked to do) my problem is when i call this bean i print out the results to the terminal window but i am not getting any results just mysite.MyBean@1d7ad1c i think this means my array is pointing to the wrong place? or is out of bounds? Below is a stripped down version of the bean can anybody tell me why the results are not returned?
    public class MyBean extends HttpServlet {
         private String Form1;
         private String Form2;
         public MyBean(String Form1, String Form2){
              this.Form1 = "";
              this.Form2 = "";
         public String getForm1(){
              return Form1;
         public String getForm2(){
              return Form2;
         public void setForm1(String For1) {
                   Form1 = For1;
         public void setForm2(String For2) {
                   Form2 = For2;
        public void doGet(HttpServletRequest request,
        HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            Connection conn = null;
            String Form1Passed;
            String Form2Passed;
           //////////Database connection code goes here
            try{
                Form1Passed = request.getParameter("Form1");
                Form2Passed = request.getParameter("Form2");
              /*this.setForm1(Form1Passed);
              this.setForm2(Form2Passed);
              request.setAttribute("valid", this);*/
                String selectSQL = "Select title,stock_count" + 
                "from Videos" + "where Category = " + Form1Passed +" and stock_count <= " + Form2Passed +";";
             Statement stmt0 = conn.createStatement();
                ResultSet rs0 = stmt0.executeQuery(selectSQL);
         List Vids = new ArrayList();
                while(rs0.next()) {
                    VideoBean Videos = new VideoBean();
                    Videos.setTitle(rs0.getString("title"));
                    Videos.setStock(rs0.getInt("stock_count"));
                stmt0.close();
            conn.close();
            } catch(SQLException se) {
                System.out.println(se);
    }I call this bean in a servlet like so:
    MyBean bean = new MyBean(String1, String2);
              request.setAttribute("valid", bean);
              System.out.println("This will print out @1d7..  " + bean);Can anybody help with this, so i can get the results returned to where the bean is created?

    I know its not a proper bean but thats what i have
    been asked to doi have a html pagw which takes two
    parameters from a form. Then when submitted these two
    parameters are checked to see if they are valid if
    they are valid i create this "bean" passing in the
    two parameters. The bean takes these parmeters and
    gets results from a db about them, then in the
    servlet where i called the bean i will pass the
    results to a jsp page.
    That is what i am trying to dowhy does your non-bean extend HttpServlet though?

  • How to pass JSF bean itself..

    HI ,
    I have doubts on passing the JSF beans.
    I want to pass the JSF bean to Utility class to reterive the values passed from GUI.
    How can i do that?
    Please help me.

    This is just basic java knowledge. Use the 'this' reference.
    MyBeanpublic void action() {
        UtilityClass.doSomething(this);
    }UtilityClasspublic static void doSomething(MyBean bean) {
        // You can access the bean's instance here.
    }

  • JDBC control not work after upgrade application from workshop 8.1 to 9.2.3

    Hi,
    We upgraded application from workshop 8.1 to 9.2.3. After that, the JDBC control not work any more. We got the following exception:
    java.sql.SQLException: The transaction is no longer active - status: 'Committed'. No further JDBC access is allowed within this transaction.
    at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:192)
    at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:202)
    at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:87)
    at weblogic.jdbc.wrapper.Connection.getMetaData(Connection.java:435)
    at org.apache.beehive.controls.system.jdbc.parser.SqlStatement.createPreparedStatement(SqlStatement.java:128)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:272)
    at com.bea.wlw.runtime.core.control.internal.JdbcControlImpl.invoke(JdbcControlImpl.java:136)
    at controls.SecurityBean.getUpdateDocPermission(SecurityBean.java:598)
    at security.SecurityManagerImpl.getUpdateDocPermission(SecurityManagerImpl.java:110)
    at security.SecurityManagerBean.getUpdateDocPermission(SecurityManagerBean.java:509)
    The control that throw the exception has "transactionattribute" annotation added automatically by upgrade wizard during upgrading. Related classed are as follows:
    @ControlInterface()
    public interface SecurityManager
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    boolean getUpdateDocPermission(java.lang.String userId);
    @ControlImplementation()
    public class SecurityManagerImpl implements SecurityManager, Serializable
    * @common:control
    @org.apache.beehive.controls.api.bean.Control()
    private controls.Security security;
    static final long serialVersionUID = 1L;
    * @common:operation
    public boolean getUpdateDocPermission(String userId)
    if ( security.getUpdateDocPermission(userId) > 0) {
    return true;
    else
    return false;
    @ControlExtension()
    @JdbcControl.ConnectionDataSource(jndiName = "EventDesk")
    public interface Security extends JdbcControl
    static final long serialVersionUID = 1L;
    * @jc:sql statement="select r.updateDoc from document_user u ,document_role r where u.login={userId} and u.roleId=r.roleId;"
    @JdbcControl.SQL(statement = "select r.updateDoc from document_user u ,document_role r where u.login={userId} and u.roleId=r.roleId;")
    int getUpdateDocPermission(String userId);
    Thanks for your help

    Hi. The issue is a level or two above JDBC. I suggest
    opening an official support case. It's probably a
    WLW issue.
    Joe

  • Not able to Call JDBC control from MDB

    I need to call a method in the JDBC control from the Message Driven Bean(MDB). When I try to do so, Weblogic throws an error. I tried to call a Custom Control from MDB and the Custom Control called a method in the JDBC control but that does not work too. Can someone help me solve this?
    Can't we call the JDBC control from MDB? There should be some way around this.
    This is the error I get :
    org.apache.beehive.controls.api.ControlException: Control initialization failure[org.apache.beehive.controls.api.ControlException: Contextual service org.apache.beehive.controls.api.context.ResourceContext is not available]
         at org.apache.beehive.controls.runtime.bean.ControlBean.ensureControl(ControlBean.java:326)
         at com.boehringer.supplier.control.db.ForecastJDBCControlBean.updateSpendWithCMId(ForecastJDBCControlBean.java:2879)
         at com.boehringer.supplier.control.java.SupplierControlImpl.processCustomer(SupplierControlImpl.java:1290)
         at com.boehringer.supplier.control.java.SupplierControlImpl.processSonicInboundMessage(SupplierControlImpl.java:1096)
         at com.boehringer.supplier.control.java.SupplierControlBean.processSonicInboundMessage(SupplierControlBean.java:663)
         at com.boehringer.sonic.SonicVendorInboundMDB.onMessage(SonicVendorInboundMDB.java:45)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.ContinuousJMSMessagePoller.processOneMessage(ContinuousJMSMessagePoller.java:138)
         at weblogic.ejb.container.internal.JMSMessagePoller.pollContinuously(JMSMessagePoller.java:404)
         at weblogic.ejb.container.internal.ContinuousJMSMessagePoller.pollForParent(ContinuousJMSMessagePoller.java:213)
         at weblogic.ejb.container.internal.JMSMessagePoller.run(JMSMessagePoller.java:543)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: org.apache.beehive.controls.api.ControlException: Contextual service org.apache.beehive.controls.api.context.ResourceContext is not available
         at org.apache.beehive.controls.system.jdbc.JdbcControlImplInitializer.initServices(JdbcControlImplInitializer.java:50)
         at org.apache.beehive.controls.runtime.bean.ImplInitializer.initialize(ImplInitializer.java:34)
         at org.apache.beehive.controls.runtime.bean.ControlBean.ensureControl(ControlBean.java:321)
         ... 12 more

    Hi,
    I am getting the same error. Did you got any solution for this?
    Please help.
    Any kind of help is appreciated.
    Thanks,
    Dpak

  • Calling Service Control from Page Flow

    In Workshop for Weblogic Platform v10.0, we have a web service control in a page flow.
    Although the web service call succeeds (as evidenced by a TcpMon monitor), the control method always returns null.
    I'm guessing that although the call looks synchronous, it's actually behaving asynchronously - returning immediately with null.
    Is this perhaps related to the particulars of calling controls from a Page Flow environment? Is it a bug in v10 of Workshop (Eclipse-based?
    Thanks for any ideas!
    - Rob
    ps: Here's the control interface and using class:
    package controls;
    import com.bea.control.ServiceControl;
    import org.apache.beehive.controls.api.events.EventSet;
    import org.apache.beehive.controls.api.bean.ControlExtension;
    @ServiceControl.Location(urls = {"http://LECAP1.lan.us.ray.com:9905/xsltTransform_vs0"})
    @ServiceControl.HttpSoapProtocol
    @ServiceControl.SOAPBinding(style = ServiceControl.SOAPBinding.Style.DOCUMENT, use = ServiceControl.SOAPBinding.Use.LITERAL, parameterStyle = ServiceControl.SOAPBinding.ParameterStyle.BARE)
    @ServiceControl.WSDL(resourcePath = "controls/cesXsltTransform.wsdl", service = "xsltTransform_vs0")
    @ControlExtension
    public interface xsltTransform_vs0ServiceControl extends ServiceControl
    static final long serialVersionUID = 1L;
    public java.lang.String xmlTransform(com.raytheon.schemas.ces.transformationservices.xmlschema.schema.TransformInput transformInput_arg);
    /** This event set interface provides support for the onAsyncFailure event.
    @EventSet(unicast=true)
    public interface Callback extends ServiceControl.Callback {};
    @Control
    private xsltTransform_vs0ServiceControl xsltTransform_vs0ServiceControl1;
    com.raytheon.schemas.ces.transformationservices.xmlschema.schema.TransformInput transformInput_arg = form
                        .getTransformInput_arg();
    String xmlTransformResult = xsltTransform_vs0ServiceControl1
                        .xmlTransform(transformInput_arg);

    Strange -- the PageFlowJspFilter adds no-cache headers to the response, so
    if you're forwarding to a JSP from the action, then the browser shouldn't be
    caching the result. What's in the URL bar in the case where your request is
    getting cached?
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:3ff993bd$[email protected]..
    >
    Richard -
    Ok. I dug deeper into the issue and now my problem is that although theaction
    is getting called correctly, it seems to execute from a cache. The actiondoes
    not get executed the second time.
    Any ideas?
    Neeraj
    "Richard Feit" <[email protected]> wrote:
    Hmm... I'm not sure why you'd get that. Can you post the relevant JSP
    code?
    Also, are you able to hit the other page flow directly from a browser?
    Rich
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:[email protected]..
    Hi Richard -
    I get an error saying cannot find the begin.do action.
    Thanks
    Neeraj
    Richard Feit" <[email protected]> wrote:
    Hello Neeraj,
    This should work:
    <netui:anchor
    href="/someOtherFlow/SomeOtherFlowController.jpf">someOtherFlowController.
    j
    p
    f</netui:anchor>
    What happens when you do this?
    Rich
    "Neeraj Harlalka" <[email protected]> wrote in message
    news:3fda39df$[email protected]..
    I read the other posts on how to call one page flow from a jsp
    that
    belongs to
    another pageflow. However the last suggestion posted - use the netuianchor tag
    with href, also does not work.
    Any other solution?
    Thanks
    Neeraj

  • !!!! Urgent Database Control Not working, Plz help !!!!!

    Hi,
    I have a webservice and in the same server(weblogic 9.2) a data source(cgAppSource) is configured. the database control is not instanciating properly, it is always remains null despite the calling of webservice. I am getting NullPointerException in the webservice. First time I am using annotation to execute a SQL query. It is urgent.can anyone please help me. what code change I have to do in both the files.
    SampleDatabaseControl.java -
    package control;
    import java.sql.SQLException;
    import org.apache.beehive.controls.api.bean.ControlBean;
    import org.apache.beehive.controls.system.jdbc.JdbcControl;
    @org.apache.beehive.controls.api.bean.ControlExtension
    @JdbcControl.ConnectionDataSource(jndiName="java:comp/env/jdbc/cgAppSource")
    public interface SampleDatabaseControl extends JdbcControl ,ControlBean{
         static final long serialVersionUID = 1L;
    @JdbcControl.SQL(statement="SELECT SYSDATE FROM DUAL")
    public String returnSysDate() throws SQLException;
    The webservice : ControlWebservice.java
    package service;
    import javax.jws.WebService;
    import javax.jws.WebMethod;
    import javax.jws.soap.SOAPBinding;
    import weblogic.jws.WLHttpTransport;
    import org.apache.beehive.controls.api.bean.Control;
    import control.SampleDatabaseControl;
    @WebService(name="ControlWebservicePortType", serviceName="ControlWebservice",
              targetNamespace="localhost")
    @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
              use=SOAPBinding.Use.LITERAL,
              parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
    @WLHttpTransport(contextPath="ControlWebserviceProj", serviceUri="ControlWebservice",
              portName="ControlWebservicePort")
    public class ControlWebservice {
         @Control
         private SampleDatabaseControl SampleDatabaseControl;
         @WebMethod()
         public String returnDate()
              String returnValue = null;
              try{
                   returnValue = "This message sent date :" + SampleDatabaseControl.returnSysDate(); // getting null pointer Exception here.
              catch(Exception e)
                   e.printStackTrace();
              return returnValue;
    }

    Hi james,
    In that link it says to 'Create a Beehive-enabled Server Domain' in which On the second page(named <strong>Select Domain Source</strong>), I need to place a check in the <strong>Apache Beehive</strong> checkbox . But in my machine when I follow the steps I dont find any such checkbox in the (named <strong>Select Domain Source</strong>) page. Is this the problem? I can see only two check boxes. The page looks like......
    Generate a domain configured automatically to support the following product. // radio select
    Weblogic Server (Required) //check box
    Workshop for Weblogic Platform // check box
    Base this domain on an existing domain. //radio select
    Templatelocation .... // a browse option
    Do I need to do some other configuration to make beehive check box active in the page? All the beehive jars are present in the instalation. And as far as I remember I did the full instalation of Weblogic 9.2 after downloading from the bea site. and I am giving the beehive related jar
    <p>
    beehive-controls.jar,beehive-jdbc-control.jar,weblogic-jdbc-control.jar in the lib folder wnder WEB-INF and deploying.
    </p>

Maybe you are looking for

  • How to expose sort attributes in a web service created on a AM 11g TP4

    I'm using Jdeveloper 11g TP4 to create a web service on the application module. When I run the web service, it is working fine. Can someone tell me how to expose the sort attributes for the user to choose? How do I expose the sort Order for the user

  • Export logical model open all relational and physical model? -- Problem

    Hello, If I export only logical model ( file --> export --> To design Data Modeler) . Oracle Data Modeler open all relational and physical model, if I have 100 relational model open all, and this is very resource. Can it be avoided? Thanks.

  • Extra Charges

    I signed up for Verizon mifi in September 2013, paying $80 for 10 GB, plus $10 for every additional GB. Like this wasn't already a ridiculous cost, I went from pre-paid to monthly, and now somehow I'm paying $100 for 10 GB, plus $15 for every additio

  • Compiling symbols as library

    I would like to compile an swf/library with multiple MovieClips/Sprites that I could then use from another swf by just passing references. It seems that this is not possible with Flash 8 because you cannot reinstantiate movieclips in other .swfs to d

  • My iPhone will not sync with my mac iCalendar

    Some events on my iPhone will not sync with my mac iCalendar.  I need this because I print out the calendar as well as sync with my husband's schedule.  Help?