Using mdb in OAF
Hi
all i want to use mdb in an Application that i wil buit in oAF .
so database connection is required .
can anyone help me out in establishing this connection.
what kinda driver shud i choose.i believe it shud be third party jdbc.
pls correct me if i m wrong !!
naveen
alright
even in that case (standalone jdeveloper) i will have to make the connection.
while making connection in standalone jdeveloper and taking third party driver ..
it asks for driver class and URl . i gave driver class as sun.oracle.jdbc.jdbcodbc driver. what is this URl meant for??
or i need to do something else???
naveen
Similar Messages
-
Hi All,
I want to use MDB with MQSeries as Messaging medium.
My Weblogic App. server version is 6.0
I want MDB to get invoked whenever any message comes in MQSeries queue.
I think 8.1 version provides a option to add external JMS server.
Is it possible in 6.0 version?
Please let me know ASAP.
Waiting for reply!
Thanks,
Prasanna Laddha
Hi Prasanna,
The best resource is the white-paper, which mentions MQ directly:
http://dev2dev.bea.com/resourcelibrary/whitepapers/jmsproviders.jsp
But it does not take into account the following 8.1 feature:
http://edocs.bea.com/wls/docs81/ConsoleHelp/jms_config.html#accessing_foreign_providers
Tom
prasanna wrote:
> Hi Tom,
> I had weblogic 7 now.
> Is there any document which can help me in setting up connection with MQSeries
> for MDB beans?
>
> Pls let me know ASAP.
> Thanks lot.
> Prasanna
>
>
>
> Tom Barnes <[email protected]> wrote:
>
>>In 6.0, for non-transactional case, I'm fairly
>>sure that you can drive the MDB directly from MQ. See
>>the white-paper:
>>
>>http://dev2dev.bea.com/resourcelibrary/whitepapers/jmsproviders.jsp
>>
>>But, as with most customers, my guess is that you need
>>to transfer the messages transactionally
>>(exactly-once). In which case more work is needed:
>>
>>By far the easiest option is to upgrade to WL7.0 or
>>WL8.1 which can drive an MDB transactionally
>
>>from MQ directly. WL8.1 provides enhancements
>
>>to wrap foreign vendor resources to simplify
>>the process even farther.
>>
>>Another option is to use a WL6.1SP3 or later
>>server running a messaging bridge to bridge from MQ
>>to WL6.0. I'm not sure if these are capable of
>>bridging to 6.0 exactly-once (transactionally) though.
>>
>>For the transactional case, I think you will
>>end up needing to
>>write your own "bridge" that runs from within
>>a startup class or servlet.
>>The following example shows how to bridge from
>>wl to mqseries transactionally using a startup class.
>>To drive the MDB exactly-once, you will need
>>modify this code to do bridge from MQ into
>>a WL queue instead, then the queue in turn can
>>be used to drive the WL MDB:
>>
>>http://dev2dev.bea.com/codelibrary/code/mqseries.jsp
>>
>>Tom
>>
>>
>>Prasanna wrote:
>>
>>>Hi All,
>>>I want to use MDB with MQSeries as Messaging medium.
>>>My Weblogic App. server version is 6.0
>>>
>>>I want MDB to get invoked whenever any message comes in MQSeries queue.
>>>I think 8.1 version provides a option to add external JMS server.
>>>Is it possible in 6.0 version?
>>>
>>>Please let me know ASAP.
>>>Waiting for reply!
>>>Thanks,
>>>Prasanna Laddha
>>>
>>
>
-
Hi,
I'm having a problem with an LSI raid card. On a cold start it's always fine. On a soft reboot, after 7+ days of uptime, about 30% of the time it fails to initialize in bios and my system hangs w/ no boot device. I have a bunch of identical systems deployed.
I was trying to use mdb to dump the option rom space, to see if it's getting corrupted somehow. At least then I could predict a failure. In DOS, I can use debug.exe and "d c800:0000" to dump that memory space, but I have not been successful doing this under solaris.
Any help?Hi,
I'm having a problem with an LSI raid card. On a cold start it's always fine. On a soft reboot, after 7+ days of uptime, about 30% of the time it fails to initialize in bios and my system hangs w/ no boot device. I have a bunch of identical systems deployed.
I was trying to use mdb to dump the option rom space, to see if it's getting corrupted somehow. At least then I could predict a failure. In DOS, I can use debug.exe and "d c800:0000" to dump that memory space, but I have not been successful doing this under solaris.
Any help? -
Using MDBs for durable subscriptions
I need to be able to deploy my MDB as a durable subscriber i.e I have my MDB ubscribing to a Topic. For some reason if the application hosting the MDB(message driven bean) fails, I would like the JMS provider to republish all the messages that were already in the Topic in addition to those messages which might have been published when the MDB application was down.
I am trying to achieve this using Weblogic 7.0. The weblogic documentation says that messages will not be accumulated if the MDB using durable subscriptions is not deployed(which would be the case when the MDB application failed).
Any ideas on how I could design around this shortcoming within WLS?
Thanks
RamdasThe WLS documentation for MDBs says :
"If your bean will demarcate its own transaction
boundaries, set the acknowledge-mode sub-element to
specify the JMS acknowledgment semantics to use. This
element has two possible values: AUTO_ACKNOWLEDGE (the
default) or DUPS_OK_ACKNOWLEDGE."Okay, I missed the part where you were specifying WLS. In the case quoted above, you will have to explicitly rollback the transaction and make sure that your MDB is set to transaction "Required" (or "RequiresNew").
I am not sure what you meant by "concurrency issues"
when using MDBs.
Please could you clarify.Sure, if your BMP, as called from the MDB, blows up, you rollback the transaction. Which means the EXACT SAME message that caused the error will get redelivered, based upon your server settings: either immediately or within the delay period.
This means that while your first MDB is (potentially) still dealing with whatever problems the message caused in the BMP, a second invocation of the MDB can be starting, albeit in another transaction. The state of your BMP could be undefined in this situation - which could cause an entirely different set of problems.
Even though you program EJBs as "single-threaded," you still have to consider the likelyhood of multiple invocations accessing/changing the same "piece" of data. Yes, that's what transactions are for - but there can be programmatic holes where this kind of situation can arise. You just have to be careful about what you're doing. -
Use JDeveloper with OAF exstension without using EBS
hey everyone;
well my question is can i use JDeveloper woth OAF exstensions to develop app without using EBS??Why would you want to do that?
ADF offers much better functionality for your applications if you are not developing for EBS.
Just pick up the latest JDeveloper version and use it for your independent applications. -
Is using MDB valid for my functional requirement?
I am newbie to JMS. I just want to know if I can use MDBs in my following functional requirement :
Each request from a web page, starts a process in my app which in turn posts messages to a topic.
Depending on the content of the message, I need to start different processes for each request. The input params for this new processes come from the earlier web request.
All the requests need to listen to the topic and wait for the message(which is a message like something is COMPLETED) and then after getting this message, the separate processes should start.
Can I use MDBs in this scenario?Hi,
You should use a MDB if your process needs to invoke other Bean operations or if you require concurrent processing of messages. If you only want to achieve concurrent processing of messages, I would recommend the use of a lightweight MDB container like. Fore example, ArjunaMS is shipped with such a container called Message Driven Services container.
Hope it helps
Arnaud -
Use Ajax with OAF developed in JDeveloper 9i for Oracle Apps 11.5.10.2
Hi,
I am looking to use Ajax to have the same Google type functionality to be impelmented in OAF pages.
Example : Searching of employee names, organization etc.
JDeveloper version is 9i
Oracle Apps - 11.5.10.2
Please advice.
Thanks,
AnirbanI dont think thats possible using OAF. OAF is not designed with AJAX in mind.
-
Problem in using MDB with Foregin Server
Hi, anyone can help me? I am currently using Weblogic 11g, 10.3.5, development edition locally in my desktop.
My scenario is I have to using an MDB to monitor a queue in a Tibco EMS queue (lookup with LDAP server).
I create a JMS Server, and a JMS module with a Foreign Server configured. In the module, I specified "JNDI Initial Connection Factory", "JNDI Connection URL", "JNDI Credentirals", etc.
In the module, I have a Queue with local jndi name: jms/MyReqQueue and a Connection Factory, jms/MyReqCF (with password setup).
I created an MDB with annotations, and packaged into a EAR
@MessageDestinationConfiguration(connectionFactoryJNDIName = "jms/MyReqCF")
@MessageDriven(
activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "connectionFactoryJndiName", propertyValue = "jms/MyReqQueue")
mappedName = "jms/MyReqQueue")
public class FortressOrderProcMDBean implements MessageListener {
I created a testing program, which create an initial context, connection factory, queue myself to the weblogic server using my local jndi names, then i can receive mesages from the queue properly, so the JMS Foreign Server should work fine.
However, I got the foilowing error withn deploying the MDB.
[EJB:011012]The JMS connection factory with the JNDI name: weblogic.jms.MessageDrivenBeanConnectionFactory could not be found. Please ensure that the JNDI name
in the weblogic-ejb-jar.xml or corresponding annotation is correct, and the JMSconnection factory has been deployed.
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'ou=weblogic.jms.MessageDrivenBeanConnectionFactory' NestedException
Message is :[LDAP: error code 32 - No Such Object]>
ThanksYour annotated MDB does not seem to be correct. The error indicates that the connection factory jndi name of the MDB was not set correctly.
Please refer to the following doc for an sample.
http://download.oracle.com/docs/cd/E17904_01/web.1111/e15493/annotations.htm#sthref25 -
How to use mdb to print my own struct info on sparc10?
Hi All,
I'm debugging a system panic coredump on sparce10. I tried to print my own struct with command address::print -t my_struct or address$<my_struct, but both of them didn't work. but on x86, it could work.
I have googled on internet, maybe i need to write a .mdbrc files? could anybody give me a help?
thanks a lot!
ToosicThis came from a guy named Jonathan.
This worked fine for me on Sol 10 x86 with the gcc compiler.
So, in my test.so file, you load it into mdb...
::load ./test.so
then use it
<address>::MR
wr
+++++++++++++
Solaris compiles it's dmods with the following GCC invocation:
/usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin
-fno-asm \
-nodefaultlibs -D__sun -fno-strict-aliasing -fno-unit-at-a-time
-fno-optimize-sibling-calls -O2 -m64 -mtune=opteron -Ui386 -U__i386
-Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare
-Wno-parentheses -Wno-uninitialized
-Wno-implicit-function-declaration
-Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror
-std=gnu89 -gdwarf-2 -std=gnu89 -fno-dwarf2-indirect-strings -fPIC
-DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -D_ELF64 -D_KERNEL
-ffreestanding -c -o test.o test.c
(I'm sure that many of these options aren't needed)
And then links it with:
/usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin
-fno-asm
-nodefaultlibs -D__sun -fno-strict-aliasing -fno-unit-at-a-time
-fno-optimize-sibling-calls -O2 -m64 -mtune=opteron -Ui386 -U__i386
-Wall
-Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare
-Wno-parentheses
-Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused
-Wno-trigraphs
-Wno-char-subscripts -Wno-switch -Werror -std=gnu89 -gdwarf-2
-std=gnu89
-fno-dwarf2-indirect-strings -DTEXT_DOMAIN="SUNW_OST_OSCMD"
-D_TS_ERRNO
-D_ELF64 -D_KERNEL -ffreestanding -Wl,-Bdirect -shared test.o -o
test.so
Do these work for you?
Cheers,
- jonathan
+++++++++++++++++
test.c file follows...
#include <sys/mdb_modapi.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/debug.h>
#include <sys/types.h>
#include <sys/cmn_err.h>
#include <sys/param.h>
#include <sys/cred.h>
#include <sys/stream.h>
#include <sys/stropts.h>
#include <sys/kmem.h>
#include <sys/time.h>
#include <sys/ddi.h>
#include <sys/modctl.h>
#include <sys/devops.h>
#include <sys/sunddi.h>
#include <malloc.h>
#include <time.h>
#include <sys/sysmacros.h>
#include <sys/utsname.h>
extern int uname(struct utsname *);
extern int atoi(const char *);
static int
print_ftheader (uintptr_t addr, uint_t flags, int argc, const mdb_arg_t * argv)
int bytes;
char *cp;
if (!(flags & DCMD_ADDRSPEC))
mdb_warn ("You must specify an address (<address>::FtHdr)\n");
return (DCMD_ERR);
mdb_printf ("\nHeader_t Data Structure 0x%lx\n", addr);
return (DCMD_OK);
static int
print_mr (uintptr_t addr, uint_t flags, int argc, const mdb_arg_t * argv)
int bytes;
char *cp;
if (!(flags & DCMD_ADDRSPEC))
mdb_warn ("You must specify an address (<address>::MR)\n");
return (DCMD_ERR);
mdb_printf ("\nMr_t Data Structure 0x%lx\n", addr);
return (DCMD_OK);
static int
print_mControl (uintptr_t addr, uint_t flags, int argc,
const mdb_arg_t * argv)
int bytes;
if (!(flags & DCMD_ADDRSPEC))
mdb_warn ("You must specify an address (<address>::mControl)\n");
return (DCMD_ERR);
mdb_printf ("\nMonControl Data Structure 0x%lx\n", addr);
return (DCMD_OK);
* MDB module linkage information:
* We declare a list of structures describing our dcmds, and a function
* named mdbinit to return a pointer to our module information.
static const mdb_dcmd_t dcmds[] = {
{"mControl", NULL, "Display momControlMsg_t data structure", print_mControl},
{"FtHdr", NULL, "Display FT header data structure", print_ftheader},
{"MR", NULL, "Display MR data structure", print_mr},
{NULL}
static const mdb_modinfo_t modinfo = {
MDB_API_VERSION, dcmds, NULL
const mdb_modinfo_t *
mdbinit (void)
return (&modinfo);
} -
Using MDBs for long running transactions
Although MDBs are not the best vehicles for running long transactions, I am
forced to use them for one such scenario (let's say for lack of a better
pattern). In order to let my long running MDB (with Container Managed Tx)
do it's chores I increased the time-out value to a higher number rather than
using the default of 30 secs. Strangely, I was seeing
IllegalStateExceptions in stdout. So I created a brand new test MDB with a
Thread.sleep for 60 seconds, increased my MDBs timeout value to 120 secs,
made sure there was only one MDB in the pool and ran the test again. I
still see the below error after 30 seconds.
I guess I should probably open a support case, but I thought I'll post here
as well in case there's something I am missing.
<May 27, 2003 5:26:31 PM PDT> <Notice> <EJB> <Error marking transaction for
rollback: java.lang.IllegalStateException: Cannot m
ark the transaction for rollback. xid=64:bea55f200db2c786, status=Rolled
back. [Reason=weblogic.transaction.internal.TimedOutEx
ception: Transaction timed out after 34 seconds
Xid=64:bea55f200db2c786(-33600248),Status=Active,numRepliesOwedMe=0,numRepli
esOwedOthers=0,seconds since begin=34,seconds left=
30,activeThread=Thread[ExecuteThread: '9' for queue: 'default',5,Thread
Group for Queue: 'default'],ServerResourceInfo[JMS_hmJD
BCStore]=(state=started,assigned=none),SCInfo[wlcsDomain+wlcsServer]=(state=
active),OwnerTransactionManager=ServerTM[ServerCoor
dinatorDescriptor=(CoordinatorURL=wlcsServer+155.14.3.140:7501+wlcsDomain+,
Resources={})],CoordinatorURL=wlcsServer+155.14.3.1
40:7501+wlcsDomain+)]
java.lang.IllegalStateException: Cannot mark the transaction for rollback.
xid=64:bea55f200db2c786, status=Rolled back. [Reason
=weblogic.transaction.internal.TimedOutException: Transaction timed out
after 34 seconds
Xid=64:bea55f200db2c786(-33600248),Status=Active,numRepliesOwedMe=0,numRepli
esOwedOthers=0,seconds since begin=34,seconds left=
30,activeThread=Thread[ExecuteThread: '9' for queue: 'default',5,Thread
Group for Queue: 'default'],ServerResourceInfo[JMS_hmJD
BCStore]=(state=started,assigned=none),SCInfo[wlcsDomain+wlcsServer]=(state=
active),OwnerTransactionManager=ServerTM[ServerCoor
dinatorDescriptor=(CoordinatorURL=wlcsServer+155.14.3.140:7501+wlcsDomain+,
Resources={})],CoordinatorURL=wlcsServer+155.14.3.1
40:7501+wlcsDomain+)]
at
weblogic.transaction.internal.TransactionImpl.throwIllegalStateException(Tra
nsactionImpl.java:1486)
at
weblogic.transaction.internal.TransactionImpl.setRollbackOnly(TransactionImp
l.java:466)
at
weblogic.ejb20.manager.BaseEJBManager.handleSystemException(BaseEJBManager.j
ava:255)
at
weblogic.ejb20.manager.BaseEJBManager.setupTxListener(BaseEJBManager.java:21
5)
at
weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:153)
at
weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:117)
at
weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java
:63)
at
com.xoriant.hm.ejb.session.HierarchyManagerBean_fzysig_EOImpl.getHierarchyId
(HierarchyManagerBean_fzysig_EOImpl.java
:1477)
at
com.ebiz.application.customerprofile.hm.CPXHMController.SynchronizeMHTH(Unkn
own Source)
at
com.ebiz.application.customerprofile.hm.CPHMOrgGroupMsgBean.onMessage(Unknow
n Source)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:254)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Hi Adarsh,
It may be that the transaction time-out setting in the descriptor
is not taking effect. The tx is still timing out after
the default 30 seconds, so the later attempt to call
"setRollbackOnly" fails as the transaction has already
rolled back The ignored descriptor setting is a known issue
in some earlier SPs, but I'm not sure when and where it
was fixed - so yes, contact customer support. The work-around
is to set the default transaction time-out for the entire server to a
higher value. (I'm not sure where to set this on the console,
but the relevant JTA MBean field is "TimeoutSeconds".)
Tom
Adarsh Dattani wrote:
> Although MDBs are not the best vehicles for running long transactions, I am
> forced to use them for one such scenario (let's say for lack of a better
> pattern). In order to let my long running MDB (with Container Managed Tx)
> do it's chores I increased the time-out value to a higher number rather than
> using the default of 30 secs. Strangely, I was seeing
> IllegalStateExceptions in stdout. So I created a brand new test MDB with a
> Thread.sleep for 60 seconds, increased my MDBs timeout value to 120 secs,
> made sure there was only one MDB in the pool and ran the test again. I
> still see the below error after 30 seconds.
> I guess I should probably open a support case, but I thought I'll post here
> as well in case there's something I am missing.
>
> <May 27, 2003 5:26:31 PM PDT> <Notice> <EJB> <Error marking transaction for
> rollback: java.lang.IllegalStateException: Cannot m
>
> ark the transaction for rollback. xid=64:bea55f200db2c786, status=Rolled
> back. [Reason=weblogic.transaction.internal.TimedOutEx
>
> ception: Transaction timed out after 34 seconds
>
> Xid=64:bea55f200db2c786(-33600248),Status=Active,numRepliesOwedMe=0,numRepli
> esOwedOthers=0,seconds since begin=34,seconds left=
>
> 30,activeThread=Thread[ExecuteThread: '9' for queue: 'default',5,Thread
> Group for Queue: 'default'],ServerResourceInfo[JMS_hmJD
>
> BCStore]=(state=started,assigned=none),SCInfo[wlcsDomain+wlcsServer]=(state=
> active),OwnerTransactionManager=ServerTM[ServerCoor
>
> dinatorDescriptor=(CoordinatorURL=wlcsServer+155.14.3.140:7501+wlcsDomain+,
> Resources={})],CoordinatorURL=wlcsServer+155.14.3.1
>
> 40:7501+wlcsDomain+)]
>
> java.lang.IllegalStateException: Cannot mark the transaction for rollback.
> xid=64:bea55f200db2c786, status=Rolled back. [Reason
>
> =weblogic.transaction.internal.TimedOutException: Transaction timed out
> after 34 seconds
>
> Xid=64:bea55f200db2c786(-33600248),Status=Active,numRepliesOwedMe=0,numRepli
> esOwedOthers=0,seconds since begin=34,seconds left=
>
> 30,activeThread=Thread[ExecuteThread: '9' for queue: 'default',5,Thread
> Group for Queue: 'default'],ServerResourceInfo[JMS_hmJD
>
> BCStore]=(state=started,assigned=none),SCInfo[wlcsDomain+wlcsServer]=(state=
> active),OwnerTransactionManager=ServerTM[ServerCoor
>
> dinatorDescriptor=(CoordinatorURL=wlcsServer+155.14.3.140:7501+wlcsDomain+,
> Resources={})],CoordinatorURL=wlcsServer+155.14.3.1
>
> 40:7501+wlcsDomain+)]
>
> at
> weblogic.transaction.internal.TransactionImpl.throwIllegalStateException(Tra
> nsactionImpl.java:1486)
>
> at
> weblogic.transaction.internal.TransactionImpl.setRollbackOnly(TransactionImp
> l.java:466)
>
> at
> weblogic.ejb20.manager.BaseEJBManager.handleSystemException(BaseEJBManager.j
> ava:255)
>
> at
> weblogic.ejb20.manager.BaseEJBManager.setupTxListener(BaseEJBManager.java:21
> 5)
>
> at
> weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:153)
>
> at
> weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:117)
>
> at
> weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java
> :63)
>
> at
> com.xoriant.hm.ejb.session.HierarchyManagerBean_fzysig_EOImpl.getHierarchyId
> (HierarchyManagerBean_fzysig_EOImpl.java
>
> :1477)
>
> at
> com.ebiz.application.customerprofile.hm.CPXHMController.SynchronizeMHTH(Unkn
> own Source)
>
> at
> com.ebiz.application.customerprofile.hm.CPHMOrgGroupMsgBean.onMessage(Unknow
> n Source)
>
> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:254)
>
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
>
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
>
>
>
-
Lack of timer services with EJB 2.0 dictated our design to implement MDB, since we really needed to use a timeout mechanism for the calling client. Client puts requests into the queue and after processing, the response object messages are put into the response queue owned by the client i.e client configured queue on the JMS server. This model works for the case where the client is a stateless session bean. Now the issue is that we having another client - web application this time, with a servlet pumping requests to the request queue . How do I retain the same model but send queued messages back to the web application? since a response queue cannot be owned by the app. or can it? is there a work around for this scenario..anyone faced a similar situation?
May be I was not clear enough in my first explanation, Let me try again to explain my scenario:
My Expectation from Multi Provider is :
IObjectA
1AAA
(From InfoObject)
Union
IObjectA IObjectB IObjectC
1AAA 2BBB 3CCC
(From Cube)
The record in the multiprovider should be :
IObjectA IObjectB IObjectC
1AAA 2BBB 3CCC
Because, this is what the Union says .. and the Definition of the multiprovider also says the same thing :
http://help.sap.com/saphelp_bw30b/helpdata/EN/ad/6b023b6069d22ee10000000a11402f/frameset.htm
Do you still think this is how the behaviour of the multiprovider.. if that is the case what would be the purpose of having an infoobject in the multiprovider.
Thank you very much in advance for your responses.
Best Regards.,
Praveen. -
Using Webservices in OAF Pages
Hi all,
Did any one try using Web services (Captcha) in the OAF Pages? Will this work, suggestions and Information related to this is very much appreciated. Please share any step by steps process to achieve this.
Thanks in advance,
Raja
Edited by: 913735 on Feb 27, 2012 10:51 AMThere is nothing in OAF to generate barcodes.
Found these helpful links to get a Barcode generator
http://www.faqts.com/knowledge_base/view.phtml/aid/769
And this topic says
What's the best way to start printing Bar Codes?
The best way to start printing Bar Codes is to use your existing laser, ink jet or dot matrix printer.
In order to do this, you require a Bar Code TrueType Font, which is very inexpensive. A Bar Code TrueType Font provides the ability to print Bar Codes directly from Word, WordPerfect, Access, FoxPro, Excel, or any other Windows program. Bar Codes can be printed on labels or directly on documents.
Top of Page
What's a Bar Code TrueType Font?
A Bar Code TrueType Font, is a font just like the ones you already have on your PC (Arial, Courier, Times New Roman). You install, select and use the Bar Code fonts just like you would any other. The only difference is that when you display or print using the Bar Code Fonts, instead of regular letters or numbers, you get bar and space patterns corresponding to the characters being typed (or displayed, or printed).
Like other TrueType fonts, the Bar Code Fonts are fully scalable (you can make them as big or small as you want).
So what i suggest is that you use a barcode generator and get the image, once you have the image, you can use either OARawTextBean or OAHTMLWebBean to put this image in the OA Page.
Thanks
Tapash -
How to use cookie in OAF?
Hi,
I want to set cookies from OAF controller.
Any thought or code snippet?
Abdul WahidThanks keerthi,
Late reply.I guess, the article is about how oaf foundations is maintaining states.
I did try search, but didn't get any direct solution to use cookies just like its used in servlets.
The requirement was to maintain session information above the user level sessions. Custom servlet cookies looked fine, but couldn't get way to set those in OAF.
However, if some body gets similar requirement, the solution found, was, "pageContext.putSessionValueDirect" method.
Thanks again brother.
Abdul Wahid -
QUESTION Re. Integrating TIBCO EMS with Weblogic 8.1 using MDB
Hi All,
I am trying to integrate TIBCO EMS 4.3.0 with Weblogic 8.1 SP6.
I have created a topic "SIMPLE.TOPIC" on the EMS. I have configured the Foreign JMS Server as follows:
Name: TIBCO JMSServer
JNDI Initial Context Factory:com.tibco.tibjms.naming.TibjmsInitialContextFactory
JNDI Connection URL:tibjmsnaming://emshost:emsport
I have configured the connection factory as follows:
Name: TIBCO JMSTopicConnectionFactory
Local JNDI Name: TopicConnectionFactory.Local
Remote JNDI Name:TopicConnectionFactory
User Name:username to connect to EMS server
Password::pssword to connect to EMS server
My JMS destination is configured as follows:
Name: Tibco JMS Destination
Local JNDI Name:SIMPLE.TOPIC.LOCAL
Remote JNDI Name:SIMPLE.TOPIC
My weblogic-ejb-jar.xml consists of the following code:
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>SimpleTopicListener</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>200</max-beans-in-free-pool>
<initial-beans-in-free-pool>20</initial-beans-in-free-pool>
</pool>
<destination-jndi-name>SIMPLE.TOPIC</destination-jndi-name>
<connection-factory-jndi-name>TopicConnectionFactory</connection-factory-jndi-name>
</message-driven-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
The problem is, when I try to deploy this mdb, I get the following error:
The Message-Driven EJB attempted to connect to the JMS destination with the JNDI name: SIMPLE.TOPIC. However, the object with the JNDI name: SIMPLE.TOPIC is not a JMS destination, or the destination found was of the wrong type (Topic or Queue).
I have checked and double checked to make sure that the topic SIMPLE.TOPIC does exist on the EMS server.
Does anyone know what is the issue here and how to resolve it?
Many thanks!
-Kinshuk
Edited by kinshukk at 05/14/2007 8:35 AM(1) Check the standard ejb jar and make sure you've specified a topic destination type (the default is queue). For details, you can reference the WebLogic 9.0 MDB developer guide (the MDB dev guide was revised in 9.0 to include more detail than the 8.1 guide). Also, you might want to take a look at our integration/interop FAQ (again for 9.0 or later).
(2) Change the weblogic-ejb-jar to reference the foreign local JNDI names - not the remote JNDI names.
(3) Be careful about using the "." and "/" characters in local JNDI names - these have side-effects in JNDI (they force creation of subcontexts).
Tom -
I have a message queue(with some XML files) and i am trying to write a mdb so that it can access that asynchronously and pass it to another java class for further processing.
My project is not using EJB and i am not so proficient in ejbs.
I DO NOT want to use any of those bmp or cmp but only mdb.I am still not able to get the exact design.Should i pass the data from mdb to servlet or from mdb directly to my model class.
Most of the info suggest/show examples of mdb along with session/entity beans.Can mdb function without other ejbs (except ejb container)?
Can someone suggest the best practices based on the above requirements? Sample code would be appreciative.
Regards,
GyanA MDB is essentially a piece of code that is automatically executed when a message is received from a JMS queue or topic. You can invoke a session bean from a MDB but you don't have to. You can do all the message processing in the MDB if you want to. You could, for example, transform the data, send another message, and write to a database, all from within the MDB.
A Servlet is essentially a piece of code that is automatically executed when a HTTP request (usually a GET or POST) is received, typically (but not necessarily) from a web browser.
You wouldn't normally invoke a servlet directly from a MDB, although it would be technically possible. More common is to do the oppsite, have a servlet that receives a HTTP request, extracts the information, and writes it to a JMS queue. A little later a MDB receives this message and processes it.
It might be worth reviewing the Java EE 5 tutorial at
http://java.sun.com/javaee/5/docs/tutorial/doc/index.html
especially the section on message-driven beans.
(there's also a tutorial for java EE 6).
Nigel
Maybe you are looking for
-
E51 address book data access via Bluetooth to Garm...
I have a new E51 but cannot access address book data via Bluetooth from a Garmin Sat Nav (model 310). Worked perfectly with old Nokia 6310, but returns a 'no can do' message when using the E51. Lack of this feature is a big problem - surely Bluetooth
-
HELP - What firewire do I buy for macbook pro?
I have a 6 year old digital camera that does not connect to my macbook with my current firewire cables (the cables has no hook up on computer end). Where can I find an updated firewall cable that connects to my older camera and newer computer? Thanks
-
Cal Day input help not calendar but list of entries in infoprovider?
Good Day, is there any setting in BEX or on the infoobject defintion that changes the behaviour of the input help? We got the requirement that for a loaddate field (referencing 0CALDAY) not the calendar as input help should be displayed (when user cl
-
What are Printing Security Best Practices for Advanced Features
In the Networking > Advanced "Enabled Features" what are the best practices settings for security. Trying to find out what all of these are. Can't find them in the documentation. Particularly eCCL & eFCL? Enabled Features IPv4 IPv6 DHCP DHCPv6 BOOTP
-
How to SELECT FOR UPDATE with CMP (Oracle)
The most common database (Oracle) by default uses a scheme that does not fit into any of those isolation levels. A SELECT statement selects data at the start of the transactions, whereas a SELECT ... FOR UPDATE does something quite different. It is e