Implementing CallBacks in Weblogic 7.0

I have a WebService with a JMSControl subscribing to messages from a Topic and
invokes a callback upon receipt of the message. My webservice client is a rich
GUI Client running under Java WebStart. I need a way to specify the Callback address
on my request so that the client receives a notification for every message published
on the Topic, how do i do that. I get this exception now.
"Service tried to perform a callback (onMessage()), but no callback port was specified
in the original request. If you are calling this service from .NET, make sure
you call set callbackLocation() on the proxy prior to making the request."

Navin,
I guess you are using 'WebLogic Workshop' for developing your WebService.
Could you please post all Workshop queries in the
'weblogic.developer.interest.workshop' newsgroup.
As for the current problem, you can call the method
setCallbackLocation(String url) on the JwsContext object to set the callback
location.
Regards,
Anurag
Workshop Support
"Navin" <[email protected]> wrote in message
news:[email protected]..
>
>
I have a WebService with a JMSControl subscribing to messages from a Topicand
invokes a callback upon receipt of the message. My webservice client is arich
GUI Client running under Java WebStart. I need a way to specify theCallback address
on my request so that the client receives a notification for every messagepublished
on the Topic, how do i do that. I get this exception now.
"Service tried to perform a callback (onMessage()), but no callback portwas specified
in the original request. If you are calling this service from .NET, makesure
you call set callbackLocation() on the proxy prior to making the request."

Similar Messages

  • Facing problem while implementing JMS in Weblogic 8.1

    Hi all,
    I am very new to JMS.
    I am trying to implement JMS in Weblogic.
    I have cofigured the server properly but while i am executing my receiver class i am getting the following error:
    javax.naming.NameNotFoundException: Unable to resolve 'MyJMSQueue1' Resolved [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'MyJMSQueue1' Resolved ]; remaining name 'MyJMSQueue1'
    Waiting for messages....
    and my receiver program is as follows:
    import java.util.Hashtable;
    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    import javax.jms.Queue;
    import javax.jms.QueueConnection;
    import javax.jms.QueueConnectionFactory;
    import javax.jms.QueueReceiver;
    import javax.jms.QueueSession;
    import javax.jms.TextMessage;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    public class SampleQueueReceiver implements MessageListener
    private boolean done = false;
    private Context ctx = null;
    private QueueConnectionFactory connectionFactory = null;
    private QueueConnection connection = null;
    private QueueSession session = null;
    private QueueReceiver receiver = null;
    private Queue queue = null;
    private Hashtable ht = null;
    public void init()
    try
    ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
    ctx = new InitialContext(ht);
    connectionFactory =(QueueConnectionFactory)ctx.lookup("weblogic.jms.ConnectionFactory");
    connection = connectionFactory.createQueueConnection();
    session = connection.createQueueSession(false,javax.jms.QueueSession.AUTO_ACKNOWLEDGE);
    queue = (Queue) ctx.lookup("MyJMSQueue1");
    receiver = session.createReceiver(queue);
    receiver.setMessageListener(this);
    connection.start();
    catch ( Exception e )
    System.out.println(e);
    public void close() throws JMSException
    try
    receiver.close();
    session.close();
    connection.close();
    catch ( Exception e )
    System.out.println(e);
    public void onMessage(Message message)
    if ( message instanceof TextMessage )
    try
    TextMessage textMessage = (TextMessage) message;
    String msg = textMessage.getText();
    System.out.println("Received message: " + msg);
    if ( msg.equals("exit") )
    synchronized (this)
    done = true;
    this.notifyAll();
    catch ( Exception e )
    System.out.println(e);
    public static void main(String[] args)
    try
    SampleQueueReceiver sqr = new SampleQueueReceiver();
    sqr.init();
    System.out.println("Waiting for messages....");
    synchronized (sqr)
    while ( !sqr.done )
    try
    sqr.wait();
    catch ( InterruptedException ie )
    sqr.close();
    catch ( Exception e )
    System.out.println(e);
    I have already configured MyJMSQueue in the server.....
    Someone please guide me...
    Thanks in Advance........
    Goutam

    Looks like configuration prob.
    Have you tried jms examples of weblogic ? you may need to re-configure your server setup, to create example server.

  • How do you implement orderby in weblogic 6.1?

    I am trying to use the orderby function in weblogic and the method in which
    I have implemented I have shown in ejb-jar.xml and
    weblogic-cmp-rdbms-jar.xml file shown below. Please do let me know if have
    implemented it in the right way.
    Thank you
    Ronak Parekh
    I am getthing the error:
    Unable to deploy EJB: sempire_bc.jar from sempire_bc.jar:
    Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error
    was:
    The finder method findAllOrderByRoleName of ejb RolesEJB cannot have
    a null ejb ql value.
    The finder method findAllOrderByUserName of ejb UsersEJB cannot have
    a null ejb ql value.
    This is my weblogic-cmp-rdbms-jar.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'
    >
    <weblogic-rdbms-jar>
    <weblogic-rdbms-bean>
    <ejb-name>UsersEJB</ejb-name>
    <data-source-name>UsersDB</data-source-name>
    <table-name>USERS</table-name>
    <field-map>
    <cmp-field>iD</cmp-field>
    <dbms-column>ID</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>userName</cmp-field>
    <dbms-column>USER_NAME</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>userPass</cmp-field>
    <dbms-column>USER_PASS</dbms-column>
    </field-map>
    <weblogic-query>
    <query-method>
    <method-name>findAllOrderByUserName</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
    o.userName</weblogic-ql>
    </weblogic-query>
    <weblogic-query>
    <query-method>
    <method-name>findAllOrderByUserPass</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
    o.userPass</weblogic-ql>
    </weblogic-query>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <ejb-name>RolesEJB</ejb-name>
    <data-source-name>RolesDB</data-source-name>
    <table-name>ROLES</table-name>
    <field-map>
    <cmp-field>iD</cmp-field>
    <dbms-column>ID</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>roleName</cmp-field>
    <dbms-column>ROLE_NAME</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>roleDesc</cmp-field>
    <dbms-column>ROLE_DESC</dbms-column>
    </field-map>
    <weblogic-query>
    <query-method>
    <method-name>findAllOrderByRoleName</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
    o.roleName</weblogic-ql>
    </weblogic-query>
    <weblogic-query>
    <query-method>
    <method-name>findAllOrderByRoleDesc</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
    o.roleDesc</weblogic-ql>
    </weblogic-query>
    </weblogic-rdbms-bean>
    <create-default-dbms-tables>True</create-default-dbms-tables>
    </weblogic-rdbms-jar>
    This is my ejb-jar.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC
    "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
    "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <display-name>Business Component CMP 2.0</display-name>
    <enterprise-beans>
    <entity>
    <display-name>Users Entity Bean</display-name>
    <ejb-name>UsersEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.UsersHome</local-home>
    <local>com.sempire.builder.business_component.Users</local>
    <ejb-class>com.sempire.builder.business_component.UsersBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>users</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>userName</field-name></cmp-field>
    <cmp-field><field-name>userPass</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <ejb-local-ref>
    <ejb-ref-name>UsersEJB</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>com.sempire.builder.business_component.UsersHome</local-home>
    <local>com.sempire.builder.business_component.Users</local>
    </ejb-local-ref>
    <resource-ref>
    <res-ref-name>jdbc/UsersDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAllWithConstraint</method-name>
    <method-params />
    </query-method>
    <ejb-ql><![CDATA[SELECT OBJECT(o) FROM users AS o]]></ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllOrderByUserName</method-name>
    <method-params />
    </query-method>
    <ejb-ql></ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllOrderByUserPass</method-name>
    <method-params />
    </query-method>
    <ejb-ql></ejb-ql>
    </query>
    </entity>
    <entity>
    <display-name>Roles Entity Bean</display-name>
    <ejb-name>RolesEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.RolesHome</local-home>
    <local>com.sempire.builder.business_component.Roles</local>
    <ejb-class>com.sempire.builder.business_component.RolesBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>roles</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>roleName</field-name></cmp-field>
    <cmp-field><field-name>roleDesc</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <ejb-local-ref>
    <ejb-ref-name>RolesEJB</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>com.sempire.builder.business_component.RolesHome</local-home>
    <local>com.sempire.builder.business_component.Roles</local>
    </ejb-local-ref>
    <resource-ref>
    <res-ref-name>jdbc/RolesDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAllWithConstraint</method-name>
    <method-params />
    </query-method>
    <ejb-ql><![CDATA[SELECT OBJECT(o) FROM roles AS o]]></ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllOrderByRoleName</method-name>
    <method-params />
    </query-method>
    <ejb-ql></ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllOrderByRoleDesc</method-name>
    <method-params />
    </query-method>
    <ejb-ql></ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>UsersEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>RolesEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

    I am trying to use the orderby function in weblogic and the method in which
    I have implemented I have shown in ejb-jar.xml and
    weblogic-cmp-rdbms-jar.xml file shown below. Please do let me know if have
    implemented it in the right way.
    Thank you
    Ronak Parekh
    I am getthing the error:
    Unable to deploy EJB: sempire_bc.jar from sempire_bc.jar:
    Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error
    was:
    The finder method findAllOrderByRoleName of ejb RolesEJB cannot have
    a null ejb ql value.
    The finder method findAllOrderByUserName of ejb UsersEJB cannot have
    a null ejb ql value.
    This is my weblogic-cmp-rdbms-jar.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'
    >
    <weblogic-rdbms-jar>
    <weblogic-rdbms-bean>
    <ejb-name>UsersEJB</ejb-name>
    <data-source-name>UsersDB</data-source-name>
    <table-name>USERS</table-name>
    <field-map>
    <cmp-field>iD</cmp-field>
    <dbms-column>ID</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>userName</cmp-field>
    <dbms-column>USER_NAME</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>userPass</cmp-field>
    <dbms-column>USER_PASS</dbms-column>
    </field-map>
    <weblogic-query>
    <query-method>
    <method-name>findAllOrderByUserName</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
    o.userName</weblogic-ql>
    </weblogic-query>
    <weblogic-query>
    <query-method>
    <method-name>findAllOrderByUserPass</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <weblogic-ql>SELECT OBJECT(o) FROM o for UsersBean ORDERBY
    o.userPass</weblogic-ql>
    </weblogic-query>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <ejb-name>RolesEJB</ejb-name>
    <data-source-name>RolesDB</data-source-name>
    <table-name>ROLES</table-name>
    <field-map>
    <cmp-field>iD</cmp-field>
    <dbms-column>ID</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>roleName</cmp-field>
    <dbms-column>ROLE_NAME</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>roleDesc</cmp-field>
    <dbms-column>ROLE_DESC</dbms-column>
    </field-map>
    <weblogic-query>
    <query-method>
    <method-name>findAllOrderByRoleName</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
    o.roleName</weblogic-ql>
    </weblogic-query>
    <weblogic-query>
    <query-method>
    <method-name>findAllOrderByRoleDesc</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <weblogic-ql>SELECT OBJECT(o) FROM o for RolesBean ORDERBY
    o.roleDesc</weblogic-ql>
    </weblogic-query>
    </weblogic-rdbms-bean>
    <create-default-dbms-tables>True</create-default-dbms-tables>
    </weblogic-rdbms-jar>
    This is my ejb-jar.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC
    "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
    "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <display-name>Business Component CMP 2.0</display-name>
    <enterprise-beans>
    <entity>
    <display-name>Users Entity Bean</display-name>
    <ejb-name>UsersEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.UsersHome</local-home>
    <local>com.sempire.builder.business_component.Users</local>
    <ejb-class>com.sempire.builder.business_component.UsersBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>users</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>userName</field-name></cmp-field>
    <cmp-field><field-name>userPass</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <ejb-local-ref>
    <ejb-ref-name>UsersEJB</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>com.sempire.builder.business_component.UsersHome</local-home>
    <local>com.sempire.builder.business_component.Users</local>
    </ejb-local-ref>
    <resource-ref>
    <res-ref-name>jdbc/UsersDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAllWithConstraint</method-name>
    <method-params />
    </query-method>
    <ejb-ql><![CDATA[SELECT OBJECT(o) FROM users AS o]]></ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllOrderByUserName</method-name>
    <method-params />
    </query-method>
    <ejb-ql></ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllOrderByUserPass</method-name>
    <method-params />
    </query-method>
    <ejb-ql></ejb-ql>
    </query>
    </entity>
    <entity>
    <display-name>Roles Entity Bean</display-name>
    <ejb-name>RolesEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.RolesHome</local-home>
    <local>com.sempire.builder.business_component.Roles</local>
    <ejb-class>com.sempire.builder.business_component.RolesBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>roles</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>roleName</field-name></cmp-field>
    <cmp-field><field-name>roleDesc</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <ejb-local-ref>
    <ejb-ref-name>RolesEJB</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>com.sempire.builder.business_component.RolesHome</local-home>
    <local>com.sempire.builder.business_component.Roles</local>
    </ejb-local-ref>
    <resource-ref>
    <res-ref-name>jdbc/RolesDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAllWithConstraint</method-name>
    <method-params />
    </query-method>
    <ejb-ql><![CDATA[SELECT OBJECT(o) FROM roles AS o]]></ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllOrderByRoleName</method-name>
    <method-params />
    </query-method>
    <ejb-ql></ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllOrderByRoleDesc</method-name>
    <method-params />
    </query-method>
    <ejb-ql></ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>UsersEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>RolesEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

  • How to implement JAAS With Weblogic 10.3

    I am working on a migration project. A project is to be migrated from JBOSS to Weblogic 10.3. JAAS has been used in JBOSS for security purpose.
    Required classess like LoginModule, CallBackHandler are customized and put into a jar file. Next a Login page has been created with action=”j_security_check”, which is supposed to be called whenever protected resource has been requested. In web.xml Roles and Policies are defined. There is a jboss-web.xml in which roles are mentioned. In web.xml
    There is a login-config.xml that has been put into Jboss server classpath. In this file, some sql queries are there.
    In weblogic I am not able to understand that how to configure this login-config, how to map roles and policies. Exactly I am not able to find what are the steps needed to implement this JAAS in weblogic10.3. I also tried using the Read-Only SQL Authenticator Provider under security Realms but not sure how to use groups, because I have no Group related tables in my DB.
    Kindly anyone share the knowledge.

    Hi,
    I also want to do the same thing. Did you get any solution for this problem. If yes then please share it with me. I am struggling with this.
    Thanks,
    Sanjay

  • Running the J2EE CA implementation on Solaris (weblogic 6.0 sp1)

              Hi! I am trying to run the J2EE CA Beta 2 implementation on weblogic 6.0 sp1. Everytimg
              I run the server I get the following exception:
              java.lang.IllegalStateException: zip file closed
              at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
              at java.util.jar.JarFile.getEntry(JarFile.java:181)
              at weblogic.utils.jars.VirtualJarFile.getEntry(VirtualJarFile.java:115)
              Seems like the RevisedBlackBoxNoTx.rar is causing this problem. Could someone
              please tell me how I should fix this problem.
              Regards,
              Nehal.
              

    Edit the registry.xml file and change "6.0 Beta" to "6.0"
    -Greg
    On 12 Mar 2001 10:02:19 -0800, "Raman Trikkur" <[email protected]>
    wrote:
    >
    Hello Kumar,
    Here is my registry.xml.
    <?xml version="1.0" encoding="UTF-8"?>
    <bea-product-information>
    <host name="ramantrik2pc">
    <product name="WebLogic Server" format="1.0">
    <release level="6.0 Beta" Status="installed" InstallDir="D:\bea\wlserver6.0"
    InstallTime="Mar 1, 2001 5:18:57 PM" InstallSet="Server">
         <component name="Program" />
         <component name="Samples" />
    </release>
    </product>
    </host>
    </bea-product-information>
    Thanks for helping me figure this out. If this doesn't work,
    I'll just try installing the whole package (WLS 6.0 with SP1
    applied) as Xiang suggested.
    Regards,
    Raman
    Kumar Allamraju <[email protected]> wrote:
    could you post your registry.xml ?
    Raman Trikkur wrote:
    Hi,
    I'm trying to get the service pack SP1 ((wls60sp1_upgrade_win.exe)
    ) installed on my NT box. I have wls 6.0 installed andworking.
    After unpacking and choosing my bea home directory (D:\bea),I
    get an error that says "Weblogic Server Service Pack1 Installation
    failed. You do not seem to have Weblogic server 6.0installed for
    BEAHOME D:\bea".
    But that is untrue. I DO have it installed in D:\bea,and I have
    the environment shell up by running setEnv.cmd and Iinvoked the
    service pack installer from within that shell.
    Is there anything I'm missing? Has anyone else encounteredthis
    problem? Any help with this would be much appreciated.
    Regards,
    Raman

  • Implement callback for an asynchronous BPEL process through Java

    Hi ,
    I am trying to implement a callback functionality for an asynchronous BPEL process through java.
    I found the code in the samples folder of SOA suite installation folder .
    <SOA_HOME>\bpel\samples\tutorials\102.InvokingProcesses\rmi\com\otn\samples\async.
    There is an AsyncInstanceWatchdog object which registers a callback object(in this case an object of AsyncCallbackImpl class) for a specific CONVERSATION_ID.
    String convId = GUIDGenerator.generateGUID();
    nm.setProperty(NormalizedMessage.CONVERSATION_ID, convId);
    deliveryService.post(proc_name, "initiate", nm);
    // register the callback
    watchdog.registerAsyncCallback(convId, testAsyncHandler,
    locator.getDomainAuth());
    // start it
    watchdog.start();
    There is no problem till the last line. But once the BPEL process returns the control( does a callback), it throws the following error.
    May 25, 2010 3:36:06 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    ORABPEL-02118
    Variant not found.
    The variant "output" has not been declared in the current scope. All variants must be declared in the scope before being accessed.
    Please check that the variant "output" is properly declared; otherwise there may be a misspelling in the name of the variant.
         at com.collaxa.cube.engine.core.Scope.getVariantRV(Scope.java:535)
         at com.collaxa.cube.engine.CubeEngine.getFieldValue(CubeEngine.java:2668)
    For your reference the variable output is declared in the definition of AsyncCallbackImpl (which implements the IAsyncInstanceCallback interface).
    There are 2 methods defined in the AsyncCallbackImpl class.
    public void onResult(Map pResultMessage) {
    System.out.println("called back! ");
    Iterator iTest = pResultMessage.keySet().iterator();
    while (iTest.hasNext()) {
    String key = (String)iTest.next();
    System.out.println(XMLHelper.elementToString((Element)pResultMessage.get(key)));
    public String getVariableName() {
    return "output";
    The variable name is same given in the sample code. And the BPEL process returns variable named output. So the name should not be a problem.
    Is it because of the scope of the variable.. If so, how do I change it.
    Any help would be appreciated.
    Edited by: saptarishi on May 25, 2010 4:24 PM
    Edited by: saptarishi on May 26, 2010 4:45 PM

    Solved it by some googling .... :)
    Here is the link:-
    [http://abhishek-soablog.blogspot.com/2008/09/orabpel-02118.html]
    or
    [http://beautifulwaste.blogspot.com/2008/04/calling-asynchronous-bpel-process.html]
    Both gives the same solution..
    In pre 10.1.3.3 release the default behaviour were to keep global variable information along with the instance information for completed BPEL processes.
    In 10.1.3.3 or later, this behaviour changed for performance reasons so that the default behaviour is now, not to keep any global variables for a BPEL process once the BPEL process has completed.
    You can configure this behaviour on a process level basis by using the parameter keepGlobalVariables in the bpel.xml file for the specific process:
    <BPELSuitcase>
    <BPELProcess src=".........." id="...........">
    <configurations>
    <property name="keepGlobalVariables">true</property>
    </configurations>
    </BPELProcess>
    </BPELSuitcase>
    Thanks
    saptarishi

  • Gods:How can i implement callback in RMI-IIOP?

    Gods:
    In RMI-IIOP ,it is a Server-Client pattern.
    I wanna implement a Client1-Server-Client2 pattern .
    What can I do ?
    Can u give me code examples? thanks .

    Previous answer is incorrect & indeed quiteincoherent.
    How very polite.
    What ejp neglects to understand is that the client is
    not Java and cannot create a Java object.As the OP said nothing about non-Java clients, and neither did anybody else until now, I didn't 'neglect to understand' anything, I merely didn't address the issue. You introduced an assumption about 'a non-rmi client (hence the need to use iiop)', which is incoherent, and you're now conflating 'non-RMI' with 'non-Java', which is also incoherent. I don't accept that saying so is impolite.
    On the topic, all that any CORBA client has to do to provide a callback is to construct a CORBA server, in whatever way is appropriate for the environment, and pass it as a parameter. The RMI-IIOP restriction that the IDL interfaces must first be defined in Java still applies of course.
    EJP

  • Implementing callback handler for a JMSControl

    Hi,
              I am implementing an MDB using the JMSControl. When the control is generated it contains a callback method.
              How do i go about using the call back method or implementing the interface provided in there? I would like to execute some custom code in the onMessage() event of the MDB.
              Regards,
              Mayank
              Message was edited by:
              unerklarlich

    You would have the CallbackHandler create a modal dialog and block until it's closed. Then read from the textfields in the dialog. public void handle(Callback... callbacks)
        JTextField name = new JTextField();
        JTextField password = new JTextField();
        JDialog dialog = new JDialog(parentFrame, true);
        // Put the name and password in the dialog with suitable labels.
        dialog.pack();
        dialog.setVisible(true);
        String username = name.getText();
        String pass = password.getText();
        // Call the callbacks.
    }

  • How to implement callback?

    Hi all!
    I want to use asynchronous callback between two JBI components.How to implement it using EPR?If EPR is used,must I use WS-Addressing and SOAP message?
    In addition,can another alternative way do it in JBI's message lay?For example,in CORBA,we may send client's ReplyHandler reference to server, so server's response will be delivery to client's ReplyHandler object by ORB.
    thanks!
    Spliu

    The simplest way to implement asynch callback is to use the properties of the MessageExchange instance. Simply attach the callback object to the message exchange instance, and send the instance off to be processed. When the component receives the response in the MessageExchange instance, it can simply retrieve the callback object and invoke it with the response.
    Using EPRs is more difficult, for it requires that both components agree on how such references are passed between them. Any EPR vocabulary (eg, WS-Addressing) can be used; generally only one component "understands" the EPR vocabulary (usually a binding component); the other treats it as an opaque XML fragment that it passes to JBI in exchange for an EndpointReference.

  • How can i implement callback method in ejb?

    Hi all,
    Sir, i want to call a client method from ejbean how can i do it. in rmi we can do it to make a remote interface on client side but i use ejbean on client side it will need to run server also on client side thats doesn't seem good to me. have a solution to this problem.
    thanks,

    Your problem is little dicy
    in your case ejb calls the client's method where the very basic principle of J2ee is defeted
    any way your ejb can never call client i mean the end client
    there can be a situation where a ejb can call a client's method but in this case the client has to be another ejb say a session bean
    and both these beans are to be deployed on the same server
    if ur satisfied with this answer then i am waiting for my dukes

  • Use of JAX RPC Weblogic Callback Capability

    Just walking through the Callback example in the bea documentation at:
    http://edocs.bea.com/wls/docs100/webserv_adv/callback.html#wp259721
    But I can't seem to get the example to build properly, anyone else have troubles with this?
    Anyone else using callbacks at all?
    Code trying to build:
    = = = = = = = = = = = = = = = = = =
    package jsip.jaxrpc.services;
    import weblogic.jws.WLHttpTransport;
    import weblogic.jws.*;
    import weblogic.wsee.jws.CallbackInterface;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService(name="CallbackPortType",
    serviceName="WhereIsWaldo",
    targetNamespace="http://examples.org/")
    @WLHttpTransport(contextPath="callback",
    serviceUri="WhereIsWaldo",
    portName="WhereIsWaldo")
    public class JaxrpcAsyncReqRes
    @Callback
    CallbackInterface callback;
    @WebMethod
    public void callbackOperation (String message)
    callback.callbackOperation (message);
    Error produced:
    = = = = = = = = = = == = =
    [jwsc] [ERROR] - weblogic.jws.CallbackService Annotation must be present on weblogic.wsee.jws.CallbackInterface.
    [jwsc] [ERROR] - The annotation weblogic.jws.Exclude is not allowed on callback interface weblogic.wsee.jws.CallbackInterface.
    Error message when building:

    Hi Akhil,
    This JAX-RPC 1.0 implementation, is in the WLS 7.0 product itself. Refer to the
    following link for details:
    http://edocs.bea.com/wls/docs70/webserv/index.html
    Regards,
    Mike Wooten
    "Akhil Nagpal" <[email protected]> wrote:
    >
    HI,
    where i can find weblogic implementation of jax-rpc...please help.
    Thanks in advance
    Akhil Nagpal

  • Oracle WebLogic Server - Oracle Spatial NDM-LOD Implementation

    Hi,
    I have a Network Data Model using Load on Demand approach implementation in Oracle WebLogic Server. Upon uploading of the java web service to my WebLogic Server, everything works fine and I can do network analysis functions using the LOD API.
    My problem is, whenever I add additional data to my Nodes and Links table, or I totally deleted all records in my Nodes and Links and repopulated the table with new data, I encounter the error Start node cannot be found.
    This are my sample screenshots for your reference.
    Initial Uploading of Java Web Service (Network Analysis Functions are working):
    http://sdrv.ms/1i3Gw6s
    After I Deleted all Nodes and Links data and repopulate new Network Data, I encounter Start node cannot be found:
    http://sdrv.ms/1i3FDuM
    But if you are going to look at my Node Table below, the node is existing in the database.
    http://sdrv.ms/1i3G8F4
    The only solution that I found to resolve this error is to update or redeploy the Java Web Service that have my Network Analysis functions. But this solution is basically not acceptable since my network data is constantly changing and more nodes and links are being added everyday.
    Does anyone have any Idea on how to resolve this without updating or redeploying my Java Web Service?

    Hi,
    I would like to follow-up with my inquiry above.

  • Weblogic implementation of java.security.acl.Group

    hi guys
    Do you know of any specific reason why there isnt a implementation of the
    java.security.acl.Group interface in the weblogic jar.
    I am trying to create a simple user manager service which uses the mbeans
    exposed by weblogic. However the interface I am coding to expects me to return
    java.security.acl.Group when I create a Group. This has resulted in a deadlock
    as I havent been able to locate a non deprecated implementation.
    Thanks
    anand

    Yes, you can do this.
    Alexandre Vauthey wrote:
    Hi,
    If I write my own securrity realm, am I able to use my own implementaion of
    'java.security.acl.Acl' and 'java.security.acl.AclEntry' or do I have to use
    the implementation provided by weblogic ? When Security.checkPermission() is
    called, does it solely rely on APIs defined in 'java.security.acl' or does
    it really expect to talk to an instance of weblogic 'AclImpl' ?
    Thanks, Alexandre.
    Alexandre Vauthey
    Software Engineer
    Application Networks
    444 Ramona street
    Palo Alto, CA 94301

  • Dependency on tomcat EL implementation in weblogic

    I am migrating an Spring 3 application from tomcat 6 to weblogic 10.3 and I am getting following error :
    Caused by: java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl
    at org.apache.tiles.evaluator.el.ELAttributeEvaluator.init(ELAttributeEvaluator.java:104)
    at org.apache.tiles.factory.TilesContainerFactory.storeContainerDependencies(TilesContainerFactory.java:444)
    at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:368)
    at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:287)
    at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:231)
    at org.apache.tiles.startup.BasicTilesInitializer.createContainer(BasicTilesInitializer.java:117)
    at org.apache.tiles.startup.BasicTilesInitializer.initialize(BasicTilesInitializer.java:53)
    at org.springframework.web.servlet.view.tiles2.TilesConfigurer.afterPropertiesSet(TilesConfigurer.java:319)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCap
    ableBeanFactory.java:1469)
    In tomcat 6, the org.apache.el.ExpressionFactoryImpl class is in jasper-el.jar in tomcat lib. My question is why the application is looking for this class in weblogic and why it is not picking up the ExpressionFactory implementation class in weblogic. I guess that being a javaee 5 container, weblogic provides its own implementation of ExpressionFactory. If that's not the case, what's the best way of setting up a ExpressionFactory implementation in weblogic? I mean should I just include jasper-el.jar in application war file or is this something I can setup at server level?
    Thanks!

    HI,
    WebLogic Provides Glassfish Implementation of the Mentioned API packaged with the WLS installer:
    Found: ExpressionFactoryImpl
    Class: com.sun.el.*ExpressionFactoryImpl*
    Package: com.sun.el
    Library Name: glassfish.el_2.1.0.jar
    Library Path: C:\bea103\modules\glassfish.el_2.1.0.jar
    But if you want to Use Tomcat provided Implementation which is available inside *"jasper-el.jar"* ..Then Please follow the Steps:
    Step1). Place all the related Jars including *"jasper-el.jar"* inside your Applications *"WEB-INF/lib"* Directory.
    Step2). Now Provide the "weblogic.xml" file inside "WEB-INF" directory .... just beside "web.xml" like following:
    <weblogic-web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://www.bea.com/ns/weblogic/90″ xsi:schemaLocation=”http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd”>
       <container-descriptor>
          <prefer-web-inf-classes>true</prefer-web-inf-classes>
       </container-descriptor>
    </weblogic-web-app>
    Why to use this Tag <prefer-web-inf-classes> ?
    Please refer to: http://weblogic-wonders.com/weblogic/parsers_issues/
    Step3). redeploy your Application.
    Thanks
    Jay SenSharma

  • OAM (10.1.4.3) Integration with WebLogic App Server (10.3.0 or below)

    Hi All,
    Can I use OAM 10.1.4.3 (Authentication Provider & Identity Asserter) to implement SSO with weblogic App Server 10.3.0 or below?
    OAM 10.1.4.3 Authentication Provider & Identity Asserter is the recommended way to configure SSO with Web Logic App server 10.3.1 ( Oracle Middleware 11g).
    And
    OAM 10.1.4.2 uses WebLogic SSPI to configure SSO between OAM 10g and WebLogic App Server 10.3.0 or below.

    Hi,
    This is how the integration goes with different versions of WLS and OAM.
    There is oamAuthnProvider.jar available with OAM 10.1.4.3 downloads. So it provides the assertion functionality.
    Can I use OAM 10.1.4.3 (Authentication Provider & Identity Asserter) to implement SSO with weblogic App Server 10.3.0 or below?
    Mahendra: Yes
    OAM 10.1.4.3 Authentication Provider & Identity Asserter is the recommended way to configure SSO with Web Logic App server 10.3.1 ( Oracle Middleware 11g).
    Mahendra: Yes, this is the recommended and easy approach.
    OAM 10.1.4.2 uses WebLogic SSPI to configure SSO between OAM 10g and WebLogic App Server 10.3.0 or below.
    Mahendra: Yes, older version of OAM uses SSPI connector installation.
    HTH.
    Mahendra.

Maybe you are looking for